Package org.geotools.xml.gml
Class ChoiceGeometryTypeImpl
Object
PropertyTypeImpl
AttributeTypeImpl
ChoiceGeometryTypeImpl
- All Implemented Interfaces:
AttributeDescriptor,AttributeType,GeometryDescriptor,GeometryType,PropertyDescriptor,PropertyType,ChoiceGeometryType
public class ChoiceGeometryTypeImpl
extends AttributeTypeImpl
implements ChoiceGeometryType, GeometryType
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.
- Author:
- Jesse
-
Field Summary
FieldsFields inherited from class AttributeTypeImpl
identifiedFields inherited from class PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData -
Constructor Summary
ConstructorsConstructorDescriptionChoiceGeometryTypeImpl(Name name, Class[] types, Class defaultType, boolean nillable, int min, int max, Object defaultValue, CoordinateReferenceSystem crs, List<Filter> filter) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]Gets the choicesClass[]The coordinate reference system in which geometries are defined.The default value for the attribute.The local name for this AttributeDescriptor.intThe maximum number of occurrences of the property within its containing entity.intThe minimum number of occurrences of the property within its containing entity.getType()Override ofPropertyDescriptor.getType()which type narrows toAttributeType.booleanFlag indicating ifnullis an allowable value for the property.Methods inherited from class AttributeTypeImpl
createDefaultValue, equals, getSuper, hashCode, isIdentified, parse, toStringMethods inherited from class PropertyTypeImpl
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstractMethods inherited from interface AttributeDescriptor
getDefaultValue, getLocalNameMethods inherited from interface AttributeType
getSuper, isIdentifiedMethods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillableMethods inherited from interface PropertyType
equals, getBinding, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
-
Field Details
-
types
-
-
Constructor Details
-
ChoiceGeometryTypeImpl
-
-
Method Details
-
convert
-
getType
Description copied from interface:AttributeDescriptorOverride ofPropertyDescriptor.getType()which type narrows toAttributeType.- Specified by:
getTypein interfaceAttributeDescriptor- Specified by:
getTypein interfaceGeometryDescriptor- Specified by:
getTypein interfacePropertyDescriptor- See Also:
-
getCoordinateReferenceSystem
Description copied from interface:GeometryTypeThe coordinate reference system in which geometries are defined.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.- Specified by:
getCoordinateReferenceSystemin interfaceGeometryDescriptor- Specified by:
getCoordinateReferenceSystemin interfaceGeometryType
-
getChoices
Class<?>[] getChoices()Gets the choices- Returns:
- the potential types
-
getChoices
-
getDefaultValue
Description copied from interface:AttributeDescriptorThe default value for the attribute.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 bygetType().getBinding().- Specified by:
getDefaultValuein interfaceAttributeDescriptor
-
getLocalName
Description copied from interface:AttributeDescriptorThe local name for this AttributeDescriptor. Specifically this returnsgetName().getLocalPart().- Specified by:
getLocalNamein interfaceAttributeDescriptor- Returns:
- The local name for this attribute descriptor.
-
getMaxOccurs
public int getMaxOccurs()Description copied from interface:PropertyDescriptorThe maximum number of occurrences of the property within its containing entity.This value is a positive integer. A value of
-1means that the max number of occurrences is unbounded.- Specified by:
getMaxOccursin interfacePropertyDescriptor- Returns:
- An integer >= 0, or -1.
-
getMinOccurs
public int getMinOccurs()Description copied from interface:PropertyDescriptorThe minimum number of occurrences of the property within its containing entity.This value is always an integer greater than or equal to zero.
- Specified by:
getMinOccursin interfacePropertyDescriptor- Returns:
- An integer >= 0
-
isNillable
public boolean isNillable()Description copied from interface:PropertyDescriptorFlag indicating ifnullis an allowable value for the property.- Specified by:
isNillablein interfacePropertyDescriptor- Returns:
trueif the property is allowed to benull, otherwisefalse.
-