|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPropertyDescriptorImpl
public class PropertyDescriptorImpl
Field Summary | |
---|---|
protected boolean |
isNillable
|
protected int |
maxOccurs
|
protected int |
minOccurs
|
protected Name |
name
|
protected PropertyType |
type
|
Constructor Summary | |
---|---|
protected |
PropertyDescriptorImpl(PropertyType type,
Name name,
int min,
int max,
boolean isNillable)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final PropertyType type
protected final Name name
protected final int minOccurs
protected final int maxOccurs
protected final boolean isNillable
Constructor Detail |
---|
protected PropertyDescriptorImpl(PropertyType type, Name name, int min, int max, boolean isNillable)
Method Detail |
---|
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
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |