|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.XArchPropertyMetadata
| Field Summary | |
static int |
ATTRIBUTE
ATTRIBUTE indicates that this property is an attribute. |
static int |
ELEMENT
ELEMENT indicates that this property is an element that can contain only one value. |
static int |
ELEMENT_MANY
ELEMENT_MANY indicates that this property is an element that can contain multiple values. |
static int |
UNBOUNDED
Comment for UNBOUNDED |
| Constructor Summary | |
XArchPropertyMetadata(int type,
String name,
String typePackage,
String typeName,
int minOccurs,
int maxOccurs,
String fixedValue,
String[] enumeratedValues)
|
|
| Method Summary | |
static XArchPropertyMetadata |
createAttribute(String name,
String typePackage,
String typeName,
String fixedValue,
String[] enumeratedValues)
|
static XArchPropertyMetadata |
createElement(String name,
String typePackage,
String typeName,
int minOccurs,
int maxOccurs)
|
List |
getEnumeratedValues()
Returns a list of values for this property, or an empty list if the element is not restricted to a set of values. |
String |
getFixedValue()
Returns the fixed value of this property, or null if it is not fixed. |
int |
getMaxOccurs()
Returns the maximum cardinality of this property, or UNBOUNDED if it is unbounded. |
int |
getMinOccurs()
Returns the minimum cardinality of this property. |
String |
getName()
Returns the element property name used to store a value of this type. |
int |
getType()
Returns the type of this property. |
String |
getTypeName()
Returns the base type name for expected property value types. |
String |
getTypePackage()
Returns the abbreviated package name (context name) for expected property value types, or null in the event that the expected property value type has no package name. |
boolean |
isEnumerated()
Returns true if the element has enumerated values, false otherwise |
boolean |
isFixed()
Returns true if the value of this property is fixed, false otherwise. |
boolean |
isId()
Returns true if this is an id attribute, false otherwise. |
boolean |
isMany()
Returns true if a property of this name may have more than one value, false otherwise. |
boolean |
isOptional()
Returns true if this is an optional property, false otherwise. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ATTRIBUTE
ATTRIBUTE indicates that this property is an attribute.
public static final int ELEMENT
ELEMENT indicates that this property is an element that can contain only one value.
public static final int ELEMENT_MANY
ELEMENT_MANY indicates that this property is an element that can contain multiple values.
public static final int UNBOUNDED
UNBOUNDED
| Constructor Detail |
public XArchPropertyMetadata(int type,
String name,
String typePackage,
String typeName,
int minOccurs,
int maxOccurs,
String fixedValue,
String[] enumeratedValues)
| Method Detail |
public static XArchPropertyMetadata createAttribute(String name,
String typePackage,
String typeName,
String fixedValue,
String[] enumeratedValues)
public static XArchPropertyMetadata createElement(String name,
String typePackage,
String typeName,
int minOccurs,
int maxOccurs)
public int getType()
ATTRIBUTE,
ELEMENT,
ELEMENT_MANYpublic String getName()
public String getTypePackage()
null in the event that the expected property value type has no package name.
null.public String getTypeName()
public int getMinOccurs()
UNBOUNDEDpublic int getMaxOccurs()
UNBOUNDED if it is unbounded.
UNBOUNDEDUNBOUNDEDpublic String getFixedValue()
null if it is not fixed.
nullpublic List getEnumeratedValues()
public boolean isId()
true if this is an id attribute, false otherwise.
true if this is an id attribute, false otherwisepublic boolean isOptional()
true if this is an optional property, false otherwise.
true if this is an optional property, false otherwisepublic boolean isMany()
true if a property of this name may have more than one value, false otherwise.
true if a property of this name may have more than one value, false otherwisepublic boolean isFixed()
true if the value of this property is fixed, false otherwise.
true if the value of this property is fixed, false otherwise.public boolean isEnumerated()
true if the element has enumerated values, false otherwise
true if the element has enumerated values, false otherwisepublic String toString()
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||