Package org.geotools.feature.type
Class PropertyDescriptorImpl
- Object
-
- PropertyDescriptorImpl
-
- All Implemented Interfaces:
PropertyDescriptor
- Direct Known Subclasses:
AssociationDescriptorImpl
,AttributeDescriptorImpl
public class PropertyDescriptorImpl extends Object implements PropertyDescriptor
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isNillable
protected int
maxOccurs
protected int
minOccurs
protected Name
name
protected PropertyType
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyDescriptorImpl(PropertyType type, Name name, int min, int max, boolean isNillable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.Name
getName()
The name of the property defined by the descriptor, with respect to its containing type or entity..PropertyType
getType()
The type of the property defined by the descriptor.Map<Object,Object>
getUserData()
A map of "user data" which enables applications to store "application-specific" information against a property descriptor.int
hashCode()
boolean
isNillable()
Flag indicating ifnull
is an allowable value for the property.String
toString()
-
-
-
Field Detail
-
type
protected final PropertyType type
-
name
protected final Name name
-
minOccurs
protected final int minOccurs
-
maxOccurs
protected final int maxOccurs
-
isNillable
protected final boolean isNillable
-
-
Constructor Detail
-
PropertyDescriptorImpl
protected PropertyDescriptorImpl(PropertyType type, Name name, int min, int max, boolean isNillable)
-
-
Method Detail
-
getType
public PropertyType 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
public Name 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
public Map<Object,Object> 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.
-
-