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()
PropertyDescriptor
This value should never be null
. The type contains information about the
value of the property such as its java class.
getType
in interface PropertyDescriptor
public Name getName()
PropertyDescriptor
This 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 PropertyDescriptor
public int getMinOccurs()
PropertyDescriptor
This value is always an integer greater than or equal to zero.
getMinOccurs
in interface PropertyDescriptor
public int getMaxOccurs()
PropertyDescriptor
This value is a positive integer. A value of -1
means that the max number of
occurrences is unbounded.
getMaxOccurs
in interface PropertyDescriptor
public boolean isNillable()
PropertyDescriptor
null
is an allowable value for the property.isNillable
in interface PropertyDescriptor
true
if the property is allowed to be null
, otherwise
false
.public Map<Object,Object> getUserData()
PropertyDescriptor
getUserData
in interface PropertyDescriptor
Copyright © 1996–2019 Geotools. All rights reserved.