org.deegree.tools.binding
Class FeatureClass

java.lang.Object
  extended by org.deegree.tools.binding.ModelClass
      extended by org.deegree.tools.binding.FeatureClass
Direct Known Subclasses:
RootFeature

public class FeatureClass
extends ModelClass

TODO add class documentation here

Version:
$Revision: 31572 $, $Date: 2011-08-18 11:11:21 +0200 (Thu, 18 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
protected static String FIELD_NS
           
protected static String QNAME
           
 
Fields inherited from class org.deegree.tools.binding.ModelClass
SP, SP2, SP3, SP4
 
Constructor Summary
FeatureClass(FeatureType ft, FeatureClass parent)
           
 
Method Summary
 boolean equals(Object other)
           
 FeatureClass findCommonBaseType(FeatureClass other)
          Find the common base type of this geometry type and another geometry type
 FeatureClass getBaseType()
           
 FeatureType getFeatureType()
           
 List<String> getImports(Map<QName,FeatureClass> featClasses)
           
 int hashCode()
           
 String toString()
           
 void writeClassDoc(Writer out)
           
 void writeClassStart(Writer out)
           
 void writeFields(Writer out)
           
 void writeMethods(Writer out, HashMap<QName,FeatureClass> featClasses)
           
 
Methods inherited from class org.deegree.tools.binding.ModelClass
addField, arlist, arlist, closeMethod, createBetterClassName, createBetterMethodName, createFieldName, generateGetter, generateGettersSetters, generateMethodDoc, generateSetter, getClassLocation, getClassName, getClassQName, getPackageDir, getPackageName, hasField, hashMap, hashSet, isAbstract, isInterface, linkedHashMap, list, map, newList, newMap, newSet, oif, openMethod, openPublic, set, writeField, writeHeader, writeImports, writePackage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FIELD_NS

protected static final String FIELD_NS
See Also:
Constant Field Values

QNAME

protected static final String QNAME
Constructor Detail

FeatureClass

public FeatureClass(FeatureType ft,
                    FeatureClass parent)
Method Detail

getFeatureType

public final FeatureType getFeatureType()
Returns:
the ft

getBaseType

public final FeatureClass getBaseType()
Returns:
the baseType

findCommonBaseType

public FeatureClass findCommonBaseType(FeatureClass other)
Find the common base type of this geometry type and another geometry type

Parameters:
other - to get the base type for.
Returns:
the common base

equals

public boolean equals(Object other)
Overrides:
equals in class ModelClass

hashCode

public int hashCode()
Overrides:
hashCode in class ModelClass

toString

public String toString()
Overrides:
toString in class ModelClass

getImports

public List<String> getImports(Map<QName,FeatureClass> featClasses)
Specified by:
getImports in class ModelClass
Parameters:
featClasses -
Returns:
a list of imports needed for this feature class.

writeClassDoc

public void writeClassDoc(Writer out)
                   throws IOException
Overrides:
writeClassDoc in class ModelClass
Parameters:
out -
Throws:
IOException

writeClassStart

public void writeClassStart(Writer out)
                     throws IOException
Overrides:
writeClassStart in class ModelClass
Throws:
IOException

writeFields

public void writeFields(Writer out)
                 throws IOException
Overrides:
writeFields in class ModelClass
Parameters:
out -
Throws:
IOException

writeMethods

public void writeMethods(Writer out,
                         HashMap<QName,FeatureClass> featClasses)
                  throws IOException
Overrides:
writeMethods in class ModelClass
Parameters:
out -
Throws:
IOException


Copyright © 2011. All Rights Reserved.