|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemaProperty
Represents a summary of similar SchemaFields in a complex type.
In a schema type, every element with the same name must have the same type. Therefore, all together, elements with the same name form a coherent collection of similar elements. Similarly, attributes can only be defined once, so each attribute obviously is a coherent group on its own.
A SchemaProperty represents a summary of the the elements with a given name or the attribute with a given name. It represents the summary cardinality of the fields, the summary default and fixed values, and so on. When inferring information about an element or attribute, it is typically easier to consult then SchemaProperty than to hunt for the exact SchemaField in the particle tree or attribute model.
SchemaType.getProperties()
,
SchemaType.getAttributeProperties()
,
SchemaType.getElementProperties()
,
SchemaType.getAttributeProperty(javax.xml.namespace.QName)
,
SchemaType.getElementProperty(javax.xml.namespace.QName)
Field Summary | |
---|---|
static int |
CONSISTENTLY
Applies to all elements for this property. |
static int |
JAVA_BIG_DECIMAL
A BigDecimal . |
static int |
JAVA_BIG_INTEGER
A BigInteger . |
static int |
JAVA_BOOLEAN
A Java boolean. |
static int |
JAVA_BYTE
A Java byte. |
static int |
JAVA_BYTE_ARRAY
A byte[]. |
static int |
JAVA_CALENDAR
A Calendar . |
static int |
JAVA_DATE
A Date . |
static int |
JAVA_DOUBLE
A Java double. |
static int |
JAVA_ENUM
A generated StringEnumAbstractBase subclass. |
static int |
JAVA_FIRST_PRIMITIVE
Java primitive type codes (for non-nullable Java types) are between JAVA_FIRST_PRIMITIVE and JAVA_LAST_PRIMITIVE, inclusive. |
static int |
JAVA_FLOAT
A Java float. |
static int |
JAVA_GDATE
A GDate . |
static int |
JAVA_GDURATION
A GDuration . |
static int |
JAVA_INT
A Java int. |
static int |
JAVA_LAST_PRIMITIVE
Java primitive type codes (for non-nullable Java types) are between JAVA_FIRST_PRIMITIVE and JAVA_LAST_PRIMITIVE, inclusive. |
static int |
JAVA_LIST
A List . |
static int |
JAVA_LONG
A Java long. |
static int |
JAVA_OBJECT
A Object , used for some simple type unions. |
static int |
JAVA_QNAME
A QName . |
static int |
JAVA_SHORT
A Java short. |
static int |
JAVA_STRING
A String . |
static int |
NEVER
Applies to no elements for this property. |
static int |
VARIABLE
Applies to some, but not other elements for this property. |
static int |
XML_OBJECT
An XML Bean type that inherits from XmlObject . |
Method Summary | |
---|---|
QName[] |
acceptedNames()
For element properties the set of names that are accepted for this property if this element is the head of a substitution group. |
boolean |
extendsJavaArray()
True if there is a Java getter that returns an array. |
boolean |
extendsJavaOption()
True if there is an Java isSet method that tests for presence. |
boolean |
extendsJavaSingleton()
True if there is a Java getter that returns a singleton. |
SchemaType |
getContainerType()
The type within which this property appears |
String |
getDefaultText()
Returns the default or fixed value, if it is consistent. |
XmlAnySimpleType |
getDefaultValue()
Returns the default or fixed value as a strongly-typed value, if it is consistent. |
String |
getJavaPropertyName()
The Java name for this property. |
QNameSet |
getJavaSetterDelimiter()
Returns the set of element names which should appear strictly after all occurences of the elements described by this property. |
int |
getJavaTypeCode()
Returns the natural Java type for this property. |
BigInteger |
getMaxOccurs()
Returns a summarized minimum occurrance number. |
BigInteger |
getMinOccurs()
Returns a summarized minimum occurrance number. |
QName |
getName()
The name of this element or attribute |
SchemaType |
getType()
The schema type for the property. |
int |
hasDefault()
Returns NEVER , VARIABLE , or CONSISTENTLY defaulted, depending on the
defaults present in the elements in this property. |
int |
hasFixed()
Returns NEVER , VARIABLE , or CONSISTENTLY fixed, depending on the
fixed constraints present in the elements in this property. |
int |
hasNillable()
Returns NEVER , VARIABLE , or CONSISTENTLY nillable, depending on the
nillability of the elements in this property. |
boolean |
isAttribute()
True for attributes. |
boolean |
isReadOnly()
True for read-only properties. |
SchemaType |
javaBasedOnType()
The schema type returned from the Java getter for this property. |
Field Detail |
---|
static final int NEVER
hasNillable()
, hasDefault()
, hasFixed()
static final int VARIABLE
hasNillable()
, hasDefault()
, hasFixed()
static final int CONSISTENTLY
hasNillable()
, hasDefault()
, hasFixed()
static final int XML_OBJECT
XmlObject
. See getJavaTypeCode()
.
static final int JAVA_FIRST_PRIMITIVE
static final int JAVA_BOOLEAN
getJavaTypeCode()
.
static final int JAVA_FLOAT
getJavaTypeCode()
.
static final int JAVA_DOUBLE
getJavaTypeCode()
.
static final int JAVA_BYTE
getJavaTypeCode()
.
static final int JAVA_SHORT
getJavaTypeCode()
.
static final int JAVA_INT
getJavaTypeCode()
.
static final int JAVA_LONG
getJavaTypeCode()
.
static final int JAVA_LAST_PRIMITIVE
static final int JAVA_BIG_DECIMAL
BigDecimal
. See getJavaTypeCode()
.
static final int JAVA_BIG_INTEGER
BigInteger
. See getJavaTypeCode()
.
static final int JAVA_STRING
String
. See getJavaTypeCode()
.
static final int JAVA_BYTE_ARRAY
getJavaTypeCode()
.
static final int JAVA_GDATE
GDate
. See getJavaTypeCode()
.
static final int JAVA_GDURATION
GDuration
. See getJavaTypeCode()
.
static final int JAVA_DATE
Date
. See getJavaTypeCode()
.
static final int JAVA_QNAME
QName
. See getJavaTypeCode()
.
static final int JAVA_LIST
List
. See getJavaTypeCode()
.
static final int JAVA_CALENDAR
Calendar
. See getJavaTypeCode()
.
static final int JAVA_ENUM
StringEnumAbstractBase
subclass. See getJavaTypeCode()
.
static final int JAVA_OBJECT
Object
, used for some simple type unions. See getJavaTypeCode()
.
Method Detail |
---|
SchemaType getContainerType()
QName getName()
QName[] acceptedNames()
String getJavaPropertyName()
boolean isReadOnly()
boolean isAttribute()
SchemaType getType()
SchemaType javaBasedOnType()
boolean extendsJavaSingleton()
boolean extendsJavaOption()
boolean extendsJavaArray()
int getJavaTypeCode()
QNameSet getJavaSetterDelimiter()
BigInteger getMinOccurs()
BigInteger getMaxOccurs()
int hasNillable()
NEVER
, VARIABLE
, or CONSISTENTLY
nillable, depending on the
nillability of the elements in this property.
int hasDefault()
NEVER
, VARIABLE
, or CONSISTENTLY
defaulted, depending on the
defaults present in the elements in this property.
int hasFixed()
NEVER
, VARIABLE
, or CONSISTENTLY
fixed, depending on the
fixed constraints present in the elements in this property.
String getDefaultText()
hasDefault()
and hasFixed()
.
XmlAnySimpleType getDefaultValue()
hasDefault()
and hasFixed()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |