|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.schema.SchemaPropertyImpl
public class SchemaPropertyImpl
Field Summary |
---|
Fields inherited from interface org.apache.xmlbeans.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 Summary | |
---|---|
SchemaPropertyImpl()
|
Method Summary | |
---|---|
javax.xml.namespace.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 |
java.lang.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. |
java.lang.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. |
java.math.BigInteger |
getMaxOccurs()
Returns a summarized minimum occurrance number. |
java.math.BigInteger |
getMinOccurs()
Returns a summarized minimum occurrance number. |
javax.xml.namespace.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(java.util.Set set)
|
void |
setAttribute(boolean isAttribute)
|
void |
setContainerTypeRef(SchemaType.Ref typeref)
|
void |
setDefault(int when)
|
void |
setDefaultText(java.lang.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(java.lang.String name)
|
void |
setJavaTypeCode(int code)
|
void |
setMaxOccurs(java.math.BigInteger max)
|
void |
setMinOccurs(java.math.BigInteger min)
|
void |
setName(javax.xml.namespace.QName name)
|
void |
setNillable(int when)
|
void |
setTypeRef(SchemaType.Ref typeref)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaPropertyImpl()
Method Detail |
---|
public void setImmutable()
public SchemaType getContainerType()
SchemaProperty
getContainerType
in interface SchemaProperty
public void setContainerTypeRef(SchemaType.Ref typeref)
public javax.xml.namespace.QName getName()
SchemaProperty
getName
in interface SchemaProperty
public void setName(javax.xml.namespace.QName name)
public java.lang.String getJavaPropertyName()
SchemaProperty
getJavaPropertyName
in interface SchemaProperty
public void setJavaPropertyName(java.lang.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 javax.xml.namespace.QName[] acceptedNames()
SchemaProperty
acceptedNames
in interface SchemaProperty
public void setAcceptedNames(java.util.Set set)
public void setAcceptedNames(QNameSet set)
public java.math.BigInteger getMinOccurs()
SchemaProperty
getMinOccurs
in interface SchemaProperty
public void setMinOccurs(java.math.BigInteger min)
public java.math.BigInteger getMaxOccurs()
SchemaProperty
getMaxOccurs
in interface SchemaProperty
public void setMaxOccurs(java.math.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 java.lang.String getDefaultText()
SchemaProperty
SchemaProperty.hasDefault()
and SchemaProperty.hasFixed()
.
getDefaultText
in interface SchemaProperty
public void setDefaultText(java.lang.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |