Class AbstractType<T extends AbstractType<T>>
- java.lang.Object
-
- org.citydb.database.schema.mapping.AbstractPathElement
-
- org.citydb.database.schema.mapping.AbstractType<T>
-
- Direct Known Subclasses:
AbstractObjectType
,ComplexType
public abstract class AbstractType<T extends AbstractType<T>> extends AbstractPathElement
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean
_abstract
protected java.util.List<AbstractProperty>
properties
protected SchemaMapping
schemaMapping
-
Fields inherited from class org.citydb.database.schema.mapping.AbstractPathElement
path, queryable, schema
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractType()
AbstractType(java.lang.String path, AppSchema schema, SchemaMapping schemaMapping)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addProperty(AbstractProperty property)
abstract AbstractExtension<T>
getExtension()
FeatureProperty
getFeatureProperty(java.lang.String name, java.lang.String namespaceURI, boolean includeInherited)
abstract java.lang.String
getId()
abstract int
getObjectClassId()
java.util.List<AbstractProperty>
getProperties()
AbstractProperty
getProperty(java.lang.String name, java.lang.String namespaceURI, boolean includeInherited)
abstract java.lang.String
getTable()
boolean
isAbstract()
boolean
isEqualToOrSubTypeOf(AbstractType<?> superType)
boolean
isSetAbstract()
abstract boolean
isSetExtension()
abstract boolean
isSetId()
abstract boolean
isSetObjectClass()
boolean
isSetProperties()
abstract boolean
isSetTable()
boolean
isSubTypeOf(AbstractType<?> superType)
java.util.List<AbstractProperty>
listProperties(boolean onlyQueryable, boolean includeInherited)
abstract java.util.List<T>
listSubTypes(boolean skipAbstractTypes)
protected java.util.List<T>
listSubTypes(java.util.List<T> candidates, boolean skipAbstractTypes)
java.util.List<T>
listSuperTypes(boolean includeType)
void
setAbstract(boolean _abstract)
abstract void
setExtension(AbstractExtension<T> extension)
abstract void
setId(java.lang.String id)
abstract void
setObjectClassId(int objectClassId)
abstract void
setTable(java.lang.String table)
protected void
validate(SchemaMapping schemaMapping, java.lang.Object parent)
-
Methods inherited from class org.citydb.database.schema.mapping.AbstractPathElement
getElementType, getLocalProperty, getPath, getSchema, hasLocalProperty, isAvailableForCityGML, isQueryable, isSetPath, isSetQueryable, isSetSchema, matchesName, matchesName, setLocalProperty, setPath, setQueryable, setSchema, toString, unsetLocalProperty
-
-
-
-
Field Detail
-
_abstract
protected java.lang.Boolean _abstract
-
properties
protected java.util.List<AbstractProperty> properties
-
schemaMapping
protected SchemaMapping schemaMapping
-
-
Constructor Detail
-
AbstractType
protected AbstractType()
-
AbstractType
public AbstractType(java.lang.String path, AppSchema schema, SchemaMapping schemaMapping)
-
-
Method Detail
-
isAbstract
public boolean isAbstract()
-
isSetAbstract
public boolean isSetAbstract()
-
setAbstract
public void setAbstract(boolean _abstract)
-
getId
public abstract java.lang.String getId()
-
isSetId
public abstract boolean isSetId()
-
setId
public abstract void setId(java.lang.String id)
-
getTable
public abstract java.lang.String getTable()
-
isSetTable
public abstract boolean isSetTable()
-
setTable
public abstract void setTable(java.lang.String table)
-
getObjectClassId
public abstract int getObjectClassId()
-
isSetObjectClass
public abstract boolean isSetObjectClass()
-
setObjectClassId
public abstract void setObjectClassId(int objectClassId)
-
getExtension
public abstract AbstractExtension<T> getExtension()
-
isSetExtension
public abstract boolean isSetExtension()
-
setExtension
public abstract void setExtension(AbstractExtension<T> extension)
-
listSubTypes
public abstract java.util.List<T> listSubTypes(boolean skipAbstractTypes)
-
listSuperTypes
public java.util.List<T> listSuperTypes(boolean includeType)
-
isSubTypeOf
public boolean isSubTypeOf(AbstractType<?> superType)
-
isEqualToOrSubTypeOf
public boolean isEqualToOrSubTypeOf(AbstractType<?> superType)
-
listSubTypes
protected java.util.List<T> listSubTypes(java.util.List<T> candidates, boolean skipAbstractTypes)
-
getProperties
public java.util.List<AbstractProperty> getProperties()
-
listProperties
public java.util.List<AbstractProperty> listProperties(boolean onlyQueryable, boolean includeInherited)
-
getProperty
public AbstractProperty getProperty(java.lang.String name, java.lang.String namespaceURI, boolean includeInherited)
-
getFeatureProperty
public FeatureProperty getFeatureProperty(java.lang.String name, java.lang.String namespaceURI, boolean includeInherited)
-
isSetProperties
public boolean isSetProperties()
-
addProperty
public void addProperty(AbstractProperty property)
-
validate
protected void validate(SchemaMapping schemaMapping, java.lang.Object parent) throws SchemaMappingException
- Overrides:
validate
in classAbstractPathElement
- Throws:
SchemaMappingException
-
-