|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.xml.schema.ElementPathData
public class ElementPathData
ElementPathData provides a schema element data abstraction layer over an underlying schema manipulation library, to protect the developer from the details of the particular schema support library in use. An ElementPathData object may be retrieved from a schema, via the Schema.getElementPathData(String xPathRef) method.
Field Summary | |
---|---|
static java.lang.String |
COMPOSITOR_ALL
|
static java.lang.String |
COMPOSITOR_CHOICE
|
static java.lang.String |
COMPOSITOR_SEQUENCE
|
static int |
UNBOUNDED
|
static java.lang.String |
VALUE_TYPE_BINARY
|
static java.lang.String |
VALUE_TYPE_BOOLEAN
|
static java.lang.String |
VALUE_TYPE_CENTURY
|
static java.lang.String |
VALUE_TYPE_CHAR
|
static java.lang.String |
VALUE_TYPE_COMPLEX
|
static java.lang.String |
VALUE_TYPE_DATE
|
static java.lang.String |
VALUE_TYPE_DATETIMEAR
|
static java.lang.String |
VALUE_TYPE_DATETIMETZ
|
static java.lang.String |
VALUE_TYPE_DECIMAL
|
static java.lang.String |
VALUE_TYPE_DOUBLE
|
static java.lang.String |
VALUE_TYPE_DURATION
|
static java.lang.String |
VALUE_TYPE_FIXED144
|
static java.lang.String |
VALUE_TYPE_FLOAT
|
static java.lang.String |
VALUE_TYPE_ID
|
static java.lang.String |
VALUE_TYPE_INTEGER
|
static java.lang.String |
VALUE_TYPE_LIST
|
static java.lang.String |
VALUE_TYPE_MONTH
|
static java.lang.String |
VALUE_TYPE_NMTOKEN
|
static java.lang.String |
VALUE_TYPE_QNAME
|
static java.lang.String |
VALUE_TYPE_RECUR_DATE
|
static java.lang.String |
VALUE_TYPE_RECUR_DAY
|
static java.lang.String |
VALUE_TYPE_RECURRING_DURATION
|
static java.lang.String |
VALUE_TYPE_STRING
|
static java.lang.String |
VALUE_TYPE_TIME
|
static java.lang.String |
VALUE_TYPE_TIME_INSTANCE
|
static java.lang.String |
VALUE_TYPE_TIME_PERIOD
|
static java.lang.String |
VALUE_TYPE_TIMETZ
|
static java.lang.String |
VALUE_TYPE_UNION
|
static java.lang.String |
VALUE_TYPE_URI
|
static java.lang.String |
VALUE_TYPE_YEAR
|
Method Summary | |
---|---|
java.lang.String |
getAnnotation()
Return a string representation of annotation information for this particular ElementPathData, or null if not found. |
AttributePathData |
getAttributePathData(java.lang.String attributeXPathRef)
Return AttributePathData for the attribute specified by XPath reference. |
java.util.List |
getAttributes()
Return a List of attributes defined for this ElementPathData. |
java.util.List |
getAttributeXPathRefs()
Return a list of XPath references to AttributePathData available for this ElementPathData. |
java.lang.String |
getBaseTypeName()
|
java.lang.String |
getBaseTypeNamespace()
|
java.util.List |
getChildElementPathDataList()
Return a List of ElementPathData for children of this ElementPathData |
java.lang.String |
getChildElementsConstraintType()
Return the constraints type of the first child element if available, otherwise return null. |
java.lang.String |
getCompositor()
Return String representation of the compositor type of this particular ElementPathData. |
java.lang.String |
getDefault()
|
org.apache.xerces.xs.XSElementDeclaration |
getElementDeclaration()
|
java.util.List |
getEnumeratedValues()
Return a List of Strings, possibly empty, of enumeration values for this particular ElementPathData. |
int |
getMaxOccurs()
Return the maximum number of times this Element may occur within its parent element. |
int |
getMinOccurs()
Return the minimum number of times this Element must occur within its parent element. |
java.lang.String |
getName()
Return the name associated with this particular ElementPathData as specified in the schema. |
java.lang.String |
getNamespace()
|
ElementPathData |
getParent()
Return ElementPathData for the parent of this ElementPathData if available, otherwise return null. |
org.apache.xerces.xs.XSTypeDefinition |
getTypeDefinition()
|
java.lang.String |
getTypeName()
|
java.lang.String |
getTypeNamespace()
|
java.lang.String |
getValueType()
Return the type associated with this element's child value, such as VALUE_TYPE_COMPLEX, VALUE_TYPE_DECIMAL or one of the other field value constants specified in this class starting with VALUE_TYPE_ |
java.lang.String |
getXPathRef()
Return the XPath reference for this particular ElementPathData. |
boolean |
hasChildElements()
Return a boolean specifying whether this ElementPathData has any child elements. |
boolean |
hasDefault()
|
boolean |
hasDeferredChildren()
Determine whether or not this instance has children whose construction was deferred. |
boolean |
isAType()
|
boolean |
isEmptyContent()
Return a boolean specifying whether this ElementPathData contains no content. |
boolean |
isTextOnlyContent()
Return a boolean specifying whether this ElementPathData contains only text content. |
void |
setHasDeferredChildren(boolean hasDeferredChildren)
Set whether or not this instance has children whose construction was deferred. |
java.lang.String |
toString()
Return a string representation of this ElementPathData for debugging. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String COMPOSITOR_ALL
public static java.lang.String COMPOSITOR_CHOICE
public static java.lang.String COMPOSITOR_SEQUENCE
public static final int UNBOUNDED
public static final java.lang.String VALUE_TYPE_BINARY
public static final java.lang.String VALUE_TYPE_BOOLEAN
public static final java.lang.String VALUE_TYPE_CENTURY
public static final java.lang.String VALUE_TYPE_CHAR
public static final java.lang.String VALUE_TYPE_COMPLEX
public static final java.lang.String VALUE_TYPE_DATE
public static final java.lang.String VALUE_TYPE_DATETIMEAR
public static final java.lang.String VALUE_TYPE_DATETIMETZ
public static final java.lang.String VALUE_TYPE_DECIMAL
public static final java.lang.String VALUE_TYPE_DOUBLE
public static final java.lang.String VALUE_TYPE_DURATION
public static final java.lang.String VALUE_TYPE_FIXED144
public static final java.lang.String VALUE_TYPE_FLOAT
public static final java.lang.String VALUE_TYPE_ID
public static final java.lang.String VALUE_TYPE_INTEGER
public static final java.lang.String VALUE_TYPE_LIST
public static final java.lang.String VALUE_TYPE_MONTH
public static final java.lang.String VALUE_TYPE_NMTOKEN
public static final java.lang.String VALUE_TYPE_QNAME
public static final java.lang.String VALUE_TYPE_RECUR_DATE
public static final java.lang.String VALUE_TYPE_RECUR_DAY
public static final java.lang.String VALUE_TYPE_RECURRING_DURATION
public static final java.lang.String VALUE_TYPE_STRING
public static final java.lang.String VALUE_TYPE_TIME
public static final java.lang.String VALUE_TYPE_TIME_INSTANCE
public static final java.lang.String VALUE_TYPE_TIME_PERIOD
public static final java.lang.String VALUE_TYPE_TIMETZ
public static final java.lang.String VALUE_TYPE_UNION
public static final java.lang.String VALUE_TYPE_URI
public static final java.lang.String VALUE_TYPE_YEAR
Method Detail |
---|
public java.lang.String getAnnotation()
public AttributePathData getAttributePathData(java.lang.String attributeXPathRef)
public java.util.List getAttributes()
public java.util.List getAttributeXPathRefs()
public java.lang.String getBaseTypeName()
public java.lang.String getBaseTypeNamespace()
public java.util.List getChildElementPathDataList()
public java.lang.String getChildElementsConstraintType()
public java.lang.String getCompositor()
public java.lang.String getDefault()
public org.apache.xerces.xs.XSElementDeclaration getElementDeclaration()
public java.util.List getEnumeratedValues()
public int getMaxOccurs()
public int getMinOccurs()
public java.lang.String getName()
public java.lang.String getNamespace()
public ElementPathData getParent()
public org.apache.xerces.xs.XSTypeDefinition getTypeDefinition()
public java.lang.String getTypeName()
public java.lang.String getTypeNamespace()
public java.lang.String getValueType()
public java.lang.String getXPathRef()
public boolean hasChildElements()
public boolean hasDefault()
public boolean hasDeferredChildren()
public boolean isAType()
public boolean isEmptyContent() throws java.lang.Exception
java.lang.Exception
- if no type information is available for this element.public boolean isTextOnlyContent() throws java.lang.Exception
java.lang.Exception
- if no type information is available for this element.public void setHasDeferredChildren(boolean hasDeferredChildren)
hasDeferredChildren
- TRUE if child construction was deferred.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |