Class SimpleAttribute
- java.lang.Object
-
- org.citydb.database.schema.mapping.AbstractPathElement
-
- org.citydb.database.schema.mapping.AbstractProperty
-
- org.citydb.database.schema.mapping.AbstractAttribute
-
- org.citydb.database.schema.mapping.SimpleAttribute
-
- All Implemented Interfaces:
Joinable
- Direct Known Subclasses:
InjectedSimpleAttribute
public class SimpleAttribute extends AbstractAttribute
-
-
Field Summary
Fields Modifier and Type Field Description protected ComplexAttributeType
attributeType
protected java.lang.String
column
protected AbstractType<?>
complexType
protected AbstractJoin
join
protected java.lang.String
name
protected java.lang.Boolean
requiresPrefix
protected SimpleType
type
-
Fields inherited from class org.citydb.database.schema.mapping.AbstractProperty
maxOccurs, minOccurs
-
Fields inherited from class org.citydb.database.schema.mapping.AbstractPathElement
path, queryable, schema
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleAttribute()
SimpleAttribute(java.lang.String path, java.lang.String column, SimpleType type, AppSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getColumn()
PathElementType
getElementType()
AbstractJoin
getJoin()
java.lang.String
getName()
ComplexAttributeType
getParentAttributeType()
AbstractType<?>
getParentType()
SimpleType
getType()
boolean
hasParentAttributeType()
boolean
hasParentType()
boolean
isSetColumn()
boolean
isSetJoin()
boolean
isSetRequiresPrefix()
boolean
isSetType()
boolean
requiresPrefix()
void
setColumn(java.lang.String column)
void
setJoin(Join join)
void
setJoin(ReverseJoin join)
protected void
setParentAttributeType(ComplexAttributeType attributeType)
protected void
setParentType(AbstractType<?> complexType)
void
setRequiresPrefix(boolean requiresPrefix)
void
setType(SimpleType type)
protected void
validate(SchemaMapping schemaMapping, java.lang.Object parent)
-
Methods inherited from class org.citydb.database.schema.mapping.AbstractProperty
getMaxOccurs, getMinOccurs, isSetMaxOccurs, isSetMinOccurs, setMaxOccurs, setMinOccurs
-
Methods inherited from class org.citydb.database.schema.mapping.AbstractPathElement
getLocalProperty, getPath, getSchema, hasLocalProperty, isAvailableForCityGML, isQueryable, isSetPath, isSetQueryable, isSetSchema, matchesName, matchesName, setLocalProperty, setPath, setQueryable, setSchema, toString, unsetLocalProperty
-
-
-
-
Field Detail
-
join
protected AbstractJoin join
-
column
protected java.lang.String column
-
type
protected SimpleType type
-
requiresPrefix
protected java.lang.Boolean requiresPrefix
-
complexType
protected AbstractType<?> complexType
-
attributeType
protected ComplexAttributeType attributeType
-
name
protected java.lang.String name
-
-
Constructor Detail
-
SimpleAttribute
protected SimpleAttribute()
-
SimpleAttribute
public SimpleAttribute(java.lang.String path, java.lang.String column, SimpleType type, AppSchema schema)
-
-
Method Detail
-
hasParentType
public boolean hasParentType()
-
getParentType
public AbstractType<?> getParentType()
-
hasParentAttributeType
public boolean hasParentAttributeType()
-
getParentAttributeType
public ComplexAttributeType getParentAttributeType()
-
setParentType
protected void setParentType(AbstractType<?> complexType)
-
setParentAttributeType
protected void setParentAttributeType(ComplexAttributeType attributeType)
-
getJoin
public AbstractJoin getJoin()
-
isSetJoin
public boolean isSetJoin()
-
setJoin
public void setJoin(Join join)
-
setJoin
public void setJoin(ReverseJoin join)
-
getColumn
public java.lang.String getColumn()
-
isSetColumn
public boolean isSetColumn()
-
setColumn
public void setColumn(java.lang.String column)
-
getType
public SimpleType getType()
-
isSetType
public boolean isSetType()
-
setType
public void setType(SimpleType type)
-
requiresPrefix
public boolean requiresPrefix()
-
isSetRequiresPrefix
public boolean isSetRequiresPrefix()
-
setRequiresPrefix
public void setRequiresPrefix(boolean requiresPrefix)
-
getName
public java.lang.String getName()
-
getElementType
public PathElementType getElementType()
- Specified by:
getElementType
in classAbstractPathElement
-
validate
protected void validate(SchemaMapping schemaMapping, java.lang.Object parent) throws SchemaMappingException
- Overrides:
validate
in classAbstractProperty
- Throws:
SchemaMappingException
-
-