|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPropertyTypeImpl
AttributeTypeImpl
ChoiceGeometryTypeImpl
public class ChoiceGeometryTypeImpl
Created for GML generated FeatureTypes. Represents a Choice type. This is temporary and only for use by the parser. It should never be public or in common use.
Field Summary | |
---|---|
protected Class[] |
types
|
Fields inherited from class AttributeTypeImpl |
---|
identified |
Fields inherited from class PropertyTypeImpl |
---|
binding, description, isAbstract, name, restrictions, superType, userData |
Constructor Summary | |
---|---|
ChoiceGeometryTypeImpl(Name name,
Class[] types,
Class defaultType,
boolean nillable,
int min,
int max,
Object defaultValue,
CoordinateReferenceSystem crs,
List<Filter> filter)
|
Method Summary | |
---|---|
Object |
convert(Object obj)
Yet another hack in order to use our FeatureType. |
Class[] |
getChoices()
Gets the choices |
Class[] |
getChoices()
Gets the choices |
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
The coordinate reference system in which geometries are defined. |
Object |
getDefaultValue()
The default value for the attribute. |
String |
getLocalName()
The local name for this AttributeDescriptor. |
int |
getMaxOccurs()
The maximum number of occurrences of the property within its containing entity. |
int |
getMinOccurs()
The minimum number of occurrences of the property within its containing entity. |
GeometryType |
getType()
Override of PropertyDescriptor.getType() which type narrows to
AttributeType . |
boolean |
isNillable()
Flag indicating if null is an allowable value for the
property. |
Methods inherited from class AttributeTypeImpl |
---|
createDefaultValue, equals, getSuper, hashCode, isIdentified, parse, toString |
Methods inherited from class PropertyTypeImpl |
---|
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface AttributeType |
---|
getSuper, isIdentified |
Methods inherited from interface PropertyType |
---|
equals, getBinding, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract |
Methods inherited from interface AttributeDescriptor |
---|
getDefaultValue, getLocalName |
Methods inherited from interface PropertyDescriptor |
---|
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable |
Field Detail |
---|
protected Class[] types
Constructor Detail |
---|
public ChoiceGeometryTypeImpl(Name name, Class[] types, Class defaultType, boolean nillable, int min, int max, Object defaultValue, CoordinateReferenceSystem crs, List<Filter> filter)
Method Detail |
---|
public Object convert(Object obj)
Consider a choice between Polygon and MultiPolygon. It doesn't make sense to be a Geometry Attribute Type since normal attribute type inspection will allow users/clients to set Points and lines as legal attribute. For parsing purposes, this make the FeatureType a little more accurate. It is not perfect of course since The choice Line, Polygon and MultiPolygon still has to be of Type Geometry but it is a little better.
public GeometryType getType()
AttributeDescriptor
PropertyDescriptor.getType()
which type narrows to
AttributeType
.
getType
in interface AttributeDescriptor
getType
in interface GeometryDescriptor
getType
in interface PropertyDescriptor
PropertyDescriptor.getType()
public CoordinateReferenceSystem getCoordinateReferenceSystem()
GeometryType
This method may return null
, but this should only occur in
cases where the actual crs is not known. A common case is when a shapefile
does not have an accompanied .prj file.
getCoordinateReferenceSystem
in interface GeometryDescriptor
getCoordinateReferenceSystem
in interface GeometryType
public Class[] getChoices()
public Class[] getChoices()
public Object getDefaultValue()
AttributeDescriptor
This value is used when an attribute is created and no value for it is specified.
This value may be null
. If it is non-null it should be an
instance of of the class specified by getType().getBinding()
.
public String getLocalName()
AttributeDescriptor
getName().getLocalPart
().
public int getMaxOccurs()
PropertyDescriptor
This value is a positive integer. A value of -1
means that
the max number of occurrences is unbounded.
public int getMinOccurs()
PropertyDescriptor
This value is always an integer greater than or equal to zero.
public boolean isNillable()
PropertyDescriptor
null
is an allowable value for the
property.
true
if the property is allowed to be null
,
otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |