public class SchemaPropertyImpl extends Object implements SchemaProperty
CONSISTENTLY, JAVA_BIG_DECIMAL, JAVA_BIG_INTEGER, JAVA_BOOLEAN, JAVA_BYTE, JAVA_BYTE_ARRAY, JAVA_CALENDAR, JAVA_DATE, JAVA_DOUBLE, JAVA_ENUM, JAVA_FIRST_PRIMITIVE, JAVA_FLOAT, JAVA_GDATE, JAVA_GDURATION, JAVA_INT, JAVA_LAST_PRIMITIVE, JAVA_LIST, JAVA_LONG, JAVA_OBJECT, JAVA_QNAME, JAVA_SHORT, JAVA_STRING, JAVA_USER, NEVER, VARIABLE, XML_OBJECT
Constructor and Description |
---|
SchemaPropertyImpl() |
Modifier and Type | Method and Description |
---|---|
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
SchemaProperty.NEVER , SchemaProperty.VARIABLE , or SchemaProperty.CONSISTENTLY defaulted, depending on the
defaults present in the elements in this property. |
int |
hasFixed()
Returns
SchemaProperty.NEVER , SchemaProperty.VARIABLE , or SchemaProperty.CONSISTENTLY fixed, depending on the
fixed constraints present in the elements in this property. |
int |
hasNillable()
Returns
SchemaProperty.NEVER , SchemaProperty.VARIABLE , or SchemaProperty.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.
|
void |
setAcceptedNames(QNameSet set) |
void |
setAcceptedNames(Set set) |
void |
setAttribute(boolean isAttribute) |
void |
setContainerTypeRef(SchemaType.Ref typeref) |
void |
setDefault(int when) |
void |
setDefaultText(String val) |
void |
setDefaultValue(XmlValueRef defaultRef) |
void |
setExtendsJava(SchemaType.Ref javaBasedOnTypeRef,
boolean singleton,
boolean option,
boolean array) |
void |
setFixed(int when) |
void |
setImmutable() |
void |
setJavaPropertyName(String name) |
void |
setJavaTypeCode(int code) |
void |
setMaxOccurs(BigInteger max) |
void |
setMinOccurs(BigInteger min) |
void |
setName(QName name) |
void |
setNillable(int when) |
void |
setTypeRef(SchemaType.Ref typeref) |
public void setImmutable()
public SchemaType getContainerType()
SchemaProperty
getContainerType
in interface SchemaProperty
public void setContainerTypeRef(SchemaType.Ref typeref)
public QName getName()
SchemaProperty
getName
in interface SchemaProperty
public void setName(QName name)
public String getJavaPropertyName()
SchemaProperty
getJavaPropertyName
in interface SchemaProperty
public void setJavaPropertyName(String name)
public boolean isAttribute()
SchemaProperty
isAttribute
in interface SchemaProperty
public void setAttribute(boolean isAttribute)
public boolean isReadOnly()
SchemaProperty
isReadOnly
in interface SchemaProperty
public SchemaType getType()
SchemaProperty
getType
in interface SchemaProperty
public void setTypeRef(SchemaType.Ref typeref)
public SchemaType javaBasedOnType()
SchemaProperty
javaBasedOnType
in interface SchemaProperty
public boolean extendsJavaSingleton()
SchemaProperty
extendsJavaSingleton
in interface SchemaProperty
public boolean extendsJavaArray()
SchemaProperty
extendsJavaArray
in interface SchemaProperty
public boolean extendsJavaOption()
SchemaProperty
extendsJavaOption
in interface SchemaProperty
public void setExtendsJava(SchemaType.Ref javaBasedOnTypeRef, boolean singleton, boolean option, boolean array)
public QNameSet getJavaSetterDelimiter()
SchemaProperty
getJavaSetterDelimiter
in interface SchemaProperty
public QName[] acceptedNames()
SchemaProperty
acceptedNames
in interface SchemaProperty
public void setAcceptedNames(Set set)
public void setAcceptedNames(QNameSet set)
public BigInteger getMinOccurs()
SchemaProperty
getMinOccurs
in interface SchemaProperty
public void setMinOccurs(BigInteger min)
public BigInteger getMaxOccurs()
SchemaProperty
getMaxOccurs
in interface SchemaProperty
public void setMaxOccurs(BigInteger max)
public int hasNillable()
SchemaProperty
SchemaProperty.NEVER
, SchemaProperty.VARIABLE
, or SchemaProperty.CONSISTENTLY
nillable, depending on the
nillability of the elements in this property.hasNillable
in interface SchemaProperty
public void setNillable(int when)
public int hasDefault()
SchemaProperty
SchemaProperty.NEVER
, SchemaProperty.VARIABLE
, or SchemaProperty.CONSISTENTLY
defaulted, depending on the
defaults present in the elements in this property.hasDefault
in interface SchemaProperty
public void setDefault(int when)
public int hasFixed()
SchemaProperty
SchemaProperty.NEVER
, SchemaProperty.VARIABLE
, or SchemaProperty.CONSISTENTLY
fixed, depending on the
fixed constraints present in the elements in this property.hasFixed
in interface SchemaProperty
public void setFixed(int when)
public String getDefaultText()
SchemaProperty
SchemaProperty.hasDefault()
and SchemaProperty.hasFixed()
.getDefaultText
in interface SchemaProperty
public void setDefaultText(String val)
public XmlAnySimpleType getDefaultValue()
SchemaProperty
SchemaProperty.hasDefault()
and SchemaProperty.hasFixed()
.getDefaultValue
in interface SchemaProperty
public void setDefaultValue(XmlValueRef defaultRef)
public int getJavaTypeCode()
SchemaProperty
getJavaTypeCode
in interface SchemaProperty
public void setJavaTypeCode(int code)