Package org.geotools.feature.type
Class PropertyDescriptorImpl
Object
PropertyDescriptorImpl
- All Implemented Interfaces:
PropertyDescriptor
- Direct Known Subclasses:
AssociationDescriptorImpl,AttributeDescriptorImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final intprotected final intprotected final Nameprotected final PropertyType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPropertyDescriptorImpl(PropertyType type, Name name, int min, int max, boolean isNillable) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintThe maximum number of occurrences of the property within its containing entity.intThe minimum number of occurrences of the property within its containing entity.getName()The name of the property defined by the descriptor, with respect to its containing type or entity..getType()The type of the property defined by the descriptor.A map of "user data" which enables applications to store "application-specific" information against a property descriptor.inthashCode()booleanFlag indicating ifnullis an allowable value for the property.toString()
-
Field Details
-
type
-
name
-
minOccurs
protected final int minOccurs -
maxOccurs
protected final int maxOccurs -
isNillable
protected final boolean isNillable
-
-
Constructor Details
-
PropertyDescriptorImpl
protected PropertyDescriptorImpl(PropertyType type, Name name, int min, int max, boolean isNillable)
-
-
Method Details
-
getType
Description copied from interface:PropertyDescriptorThe type of the property defined by the descriptor.This value should never be
null. The type contains information about the value of the property such as its java class.- Specified by:
getTypein interfacePropertyDescriptor
-
getName
Description copied from interface:PropertyDescriptorThe name of the property defined by the descriptor, with respect to its containing type or entity..This value may be
nullin some instances. Also note that this is not the same name asgetType().getName(). The former is the name of the instance, the latter is the name of the type of the instance.- Specified by:
getNamein interfacePropertyDescriptor
-
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
-
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.
-
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.
-
getUserData
Description copied from interface:PropertyDescriptorA map of "user data" which enables applications to store "application-specific" information against a property descriptor.- Specified by:
getUserDatain interfacePropertyDescriptor- Returns:
- A map of user data.
-
equals
-
hashCode
public int hashCode() -
toString
-