public class PropertyDescriptorImpl extends Object implements PropertyDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isNillable |
protected int |
maxOccurs |
protected int |
minOccurs |
protected Name |
name |
protected PropertyType |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyDescriptorImpl(PropertyType type,
Name name,
int min,
int max,
boolean isNillable) |
| Modifier and Type | Method and 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 if
null is an allowable value for the property. |
String |
toString() |
protected final PropertyType type
protected final Name name
protected final int minOccurs
protected final int maxOccurs
protected final boolean isNillable
protected PropertyDescriptorImpl(PropertyType type, Name name, int min, int max, boolean isNillable)
public PropertyType getType()
PropertyDescriptorThis value should never be null. The type contains information about the
value of the property such as its java class.
getType in interface PropertyDescriptorpublic Name getName()
PropertyDescriptorThis value may be null in some instances. Also note that this is not the same
name as getType().getName(). The former is the name of the instance, the latter
is the name of the type of the instance.
getName in interface PropertyDescriptorpublic int getMinOccurs()
PropertyDescriptorThis value is always an integer greater than or equal to zero.
getMinOccurs in interface PropertyDescriptorpublic int getMaxOccurs()
PropertyDescriptorThis value is a positive integer. A value of -1 means that the max number of
occurrences is unbounded.
getMaxOccurs in interface PropertyDescriptorpublic boolean isNillable()
PropertyDescriptornull is an allowable value for the property.isNillable in interface PropertyDescriptortrue if the property is allowed to be null, otherwise
false.public Map<Object,Object> getUserData()
PropertyDescriptorgetUserData in interface PropertyDescriptorCopyright © 1996–2021 Geotools. All rights reserved.