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 |
getDocumentation()
return user specified documentation
|
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<QName> set) |
void |
setAttribute(boolean isAttribute) |
void |
setContainerTypeRef(SchemaType.Ref typeref) |
void |
setDefault(int when) |
void |
setDefaultText(String val) |
void |
setDefaultValue(XmlValueRef defaultRef) |
void |
setDocumentation(String documentation) |
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()
SchemaPropertygetContainerType in interface SchemaPropertypublic void setContainerTypeRef(SchemaType.Ref typeref)
public QName getName()
SchemaPropertygetName in interface SchemaPropertypublic void setName(QName name)
public String getJavaPropertyName()
SchemaPropertygetJavaPropertyName in interface SchemaPropertypublic void setJavaPropertyName(String name)
public boolean isAttribute()
SchemaPropertyisAttribute in interface SchemaPropertypublic void setAttribute(boolean isAttribute)
public boolean isReadOnly()
SchemaPropertyisReadOnly in interface SchemaPropertypublic SchemaType getType()
SchemaPropertygetType in interface SchemaPropertypublic void setTypeRef(SchemaType.Ref typeref)
public SchemaType javaBasedOnType()
SchemaPropertyjavaBasedOnType in interface SchemaPropertypublic boolean extendsJavaSingleton()
SchemaPropertyextendsJavaSingleton in interface SchemaPropertypublic boolean extendsJavaArray()
SchemaPropertyextendsJavaArray in interface SchemaPropertypublic boolean extendsJavaOption()
SchemaPropertyextendsJavaOption in interface SchemaPropertypublic void setExtendsJava(SchemaType.Ref javaBasedOnTypeRef, boolean singleton, boolean option, boolean array)
public QNameSet getJavaSetterDelimiter()
SchemaPropertygetJavaSetterDelimiter in interface SchemaPropertypublic QName[] acceptedNames()
SchemaPropertyacceptedNames in interface SchemaPropertypublic void setAcceptedNames(QNameSet set)
public BigInteger getMinOccurs()
SchemaPropertygetMinOccurs in interface SchemaPropertypublic void setMinOccurs(BigInteger min)
public BigInteger getMaxOccurs()
SchemaPropertygetMaxOccurs in interface SchemaPropertypublic void setMaxOccurs(BigInteger max)
public int hasNillable()
SchemaPropertySchemaProperty.NEVER, SchemaProperty.VARIABLE, or SchemaProperty.CONSISTENTLY nillable, depending on the
nillability of the elements in this property.hasNillable in interface SchemaPropertypublic void setNillable(int when)
public int hasDefault()
SchemaPropertySchemaProperty.NEVER, SchemaProperty.VARIABLE, or SchemaProperty.CONSISTENTLY defaulted, depending on the
defaults present in the elements in this property.hasDefault in interface SchemaPropertypublic void setDefault(int when)
public int hasFixed()
SchemaPropertySchemaProperty.NEVER, SchemaProperty.VARIABLE, or SchemaProperty.CONSISTENTLY fixed, depending on the
fixed constraints present in the elements in this property.hasFixed in interface SchemaPropertypublic void setFixed(int when)
public String getDefaultText()
SchemaPropertySchemaProperty.hasDefault() and SchemaProperty.hasFixed().getDefaultText in interface SchemaPropertypublic void setDefaultText(String val)
public XmlAnySimpleType getDefaultValue()
SchemaPropertySchemaProperty.hasDefault() and SchemaProperty.hasFixed().getDefaultValue in interface SchemaPropertypublic void setDefaultValue(XmlValueRef defaultRef)
public int getJavaTypeCode()
SchemaPropertygetJavaTypeCode in interface SchemaPropertypublic void setJavaTypeCode(int code)
public String getDocumentation()
SchemaPropertygetDocumentation in interface SchemaPropertypublic void setDocumentation(String documentation)
setDocumentation in interface SchemaProperty