Package org.geotools.feature.type
Class PropertyDescriptorImpl
Object
PropertyDescriptorImpl
- All Implemented Interfaces:
PropertyDescriptor
- Direct Known Subclasses:
AssociationDescriptorImpl
,AttributeDescriptorImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final int
protected final int
protected final Name
protected final PropertyType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PropertyDescriptorImpl
(PropertyType type, Name name, int min, int max, boolean isNillable) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
The maximum number of occurrences of the property within its containing entity.int
The 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.int
hashCode()
boolean
Flag indicating ifnull
is 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:PropertyDescriptor
The 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:
getType
in interfacePropertyDescriptor
-
getName
Description copied from interface:PropertyDescriptor
The name of the property defined by the descriptor, with respect to its containing type or entity..This value may be
null
in 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:
getName
in interfacePropertyDescriptor
-
getMinOccurs
public int getMinOccurs()Description copied from interface:PropertyDescriptor
The 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:
getMinOccurs
in interfacePropertyDescriptor
- Returns:
- An integer >= 0
-
getMaxOccurs
public int getMaxOccurs()Description copied from interface:PropertyDescriptor
The maximum number of occurrences of the property within its containing entity.This value is a positive integer. A value of
-1
means that the max number of occurrences is unbounded.- Specified by:
getMaxOccurs
in interfacePropertyDescriptor
- Returns:
- An integer >= 0, or -1.
-
isNillable
public boolean isNillable()Description copied from interface:PropertyDescriptor
Flag indicating ifnull
is an allowable value for the property.- Specified by:
isNillable
in interfacePropertyDescriptor
- Returns:
true
if the property is allowed to benull
, otherwisefalse
.
-
getUserData
Description copied from interface:PropertyDescriptor
A map of "user data" which enables applications to store "application-specific" information against a property descriptor.- Specified by:
getUserData
in interfacePropertyDescriptor
- Returns:
- A map of user data.
-
equals
-
hashCode
public int hashCode() -
toString
-