|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.fg.xmleditor.XSRef
XSRef objects are assiciated with FToggleNode
nodes
(see FToggleNode.setAssociate(Object)
and FToggleNode.getAssociate().
An XSRef object keeps an integer identifier of the node type and
an associated object of type, derived from org.apache.xerces.impl.xs.psvi.XSObject
| Constructor Summary | |
XSRef(int type,
org.apache.xerces.impl.xs.psvi.XSObject xsNode)
Creates new XSRef object. |
|
| Method Summary | |
org.apache.xerces.impl.xs.psvi.XSParticle |
getParticle()
Method typecasts an associated object to org.apache.xerces.impl.xs.psvi.XSParticle and returns it. |
int |
getType()
Method returns one of the "basic" constants, declared in XSRef class (a constant which is not not a "bitwise OR" combination of other constants). |
org.apache.xerces.impl.xs.psvi.XSAttributeDeclaration |
getXSAttr()
Method typecasts an associated object to org.apache.xerces.impl.xs.psvi.XSAttributeDeclaration and returns it. |
org.apache.xerces.impl.xs.psvi.XSElementDeclaration |
getXSElement()
Method typecasts an associated object to org.apache.xerces.impl.xs.psvi.XSElementDeclaration and returns it. |
org.apache.xerces.impl.xs.psvi.XSModelGroup |
getXSGroup()
Method typecasts an associated object to org.apache.xerces.impl.xs.psvi.XSModelGroup and returns it. |
org.apache.xerces.impl.xs.psvi.XSObject |
getXSNode()
Method returns an associated object of some type, derived from org.apache.xerces.impl.xs.psvi.XSObject |
boolean |
hasValue()
Method returns result of in(int) method call
with ANY_NODE_WITH_VALUE parameter passed. |
boolean |
in(int types)
Method returns true when bitwise operation
getType() & types > 0 and false
otherwise. |
boolean |
isArray()
Method returns result of in(int) method call
with ANY_ARRAY parameter passed. |
boolean |
isAttribute()
Method returns result of in(int) method call
with ATTRIBUTE parameter passed. |
boolean |
isElement()
Method returns result of in(int) method call
with ANY_ELEMENT parameter passed. |
boolean |
isElementWithAttributes()
Method returns result of in(int) method call
with ANY_ELEMENT_WITH_ATTRIBUTES parameter passed. |
boolean |
isElementWithChildNodes()
Method returns result of in(int) method call
with ANY_ELEMENT_WITH_CHILD_NODES parameter passed. |
boolean |
isGroup()
Method returns result of in(int) method call
with ANY_GROUP parameter passed. |
java.lang.String |
validate(java.lang.Object value)
Validates a value against restrictions retrieved from the associated object(see getXSElement() and
getXSAttr()). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ARRAY_ELEMENTS
Ord._ARRAY_ELEMENTS
public static final int ARRAY_GROUPS
Ord._ARRAY_GROUPS
public static final int GROUP_SEQUENCE
Ord._GROUP_SEQUENCE
public static final int GROUP_CHOICE
Ord._GROUP_CHOICE
public static final int GROUP_ALL
Ord._GROUP_ALL
public static final int SUBSTITUTION
Ord._SUBSTITUTION
public static final int ELEMENT_COMPLEX
Ord._ELEMENT_COMPLEX
public static final int ELEMENT_SIMPLE
Ord._ELEMENT_SIMPLE
public static final int ELEMENT_EXT_SIMPLE
Ord._ELEMENT_EXT_SIMPLE
public static final int ELEMENT_EMPTY
Ord._ELEMENT_EMPTY
public static final int ELEMENT_EXT_EMPTY
Ord._ELEMENT_EXT_EMPTY
public static final int ATTRIBUTE
Ord._ATTRIBUTE
public static final int ANY_ARRAY
ARRAY_ELEMENTS | ARRAY_GROUPS
public static final int ANY_ELEMENT
ELEMENT_COMPLEX | ELEMENT_SIMPLE
| ELEMENT_EXT_SIMPLE | ELEMENT_EMPTY
| ELEMENT_EXT_EMPTY
public static final int ANY_GROUP
GROUP_SEQUENCE | GROUP_CHOICE
| GROUP_ALL
public static final int ANY_NODE_WITH_VALUE
ATTRIBUTE | ELEMENT_SIMPLE
| ELEMENT_EXT_SIMPLE
public static final int ANY_ELEMENT_WITH_CHILD_NODES
ELEMENT_COMPLEX
| ELEMENT_EXT_SIMPLE | ELEMENT_EXT_EMPTY
public static final int ANY_ELEMENT_WITH_ATTRIBUTES
ELEMENT_EXT_SIMPLE
| ELEMENT_EXT_EMPTY
| Constructor Detail |
public XSRef(int type,
org.apache.xerces.impl.xs.psvi.XSObject xsNode)
type - one of the "basic" constants, declared in XSRef class
(a constant which is not not a bitwise OR combination of other
constants).xsNode - an object of type, derived from
org.apache.xerces.impl.xs.psvi.XSObject| Method Detail |
public int getType()
public boolean in(int types)
true when bitwise operation
getType() & types > 0 and false
otherwise.
types - a value of a constant, declared in XSRef class or
"bitwise OR" combination of some of these constants.
true when bitwise operation
getType() & types > 0 and false
otherwise.public org.apache.xerces.impl.xs.psvi.XSObject getXSNode()
public org.apache.xerces.impl.xs.psvi.XSParticle getParticle()
isArray()
method call returns true.
- Returns:
- an associated object typecast to
org.apache.xerces.impl.xs.psvi.XSParticle
public org.apache.xerces.impl.xs.psvi.XSElementDeclaration getXSElement()
isElement()
method call returns true.
- Returns:
- an associated object typecast to
org.apache.xerces.impl.xs.psvi.XSElementDeclaration
public org.apache.xerces.impl.xs.psvi.XSModelGroup getXSGroup()
isGroup()
method call returns true.
- Returns:
- an associated object typecast to
org.apache.xerces.impl.xs.psvi.XSModelGroup
public org.apache.xerces.impl.xs.psvi.XSAttributeDeclaration getXSAttr()
isAttribute()
method call returns true.
- Returns:
- an associated object typecast to
org.apache.xerces.impl.xs.psvi.XSAttributeDeclaration
public boolean isArray()
in(int) method call
with ANY_ARRAY parameter passed.
in(int) method call
with ANY_ARRAY parameter passed.public boolean isGroup()
in(int) method call
with ANY_GROUP parameter passed.
in(int) method call
with ANY_GROUP parameter passed.public boolean isElement()
in(int) method call
with ANY_ELEMENT parameter passed.
in(int) method call
with ANY_ELEMENT parameter passed.public boolean isElementWithChildNodes()
in(int) method call
with ANY_ELEMENT_WITH_CHILD_NODES parameter passed.
in(int) method call
with ANY_ELEMENT_WITH_CHILD_NODES parameter passed.public boolean isElementWithAttributes()
in(int) method call
with ANY_ELEMENT_WITH_ATTRIBUTES parameter passed.
in(int) method call
with ANY_ELEMENT_WITH_ATTRIBUTES parameter passed.public boolean isAttribute()
in(int) method call
with ATTRIBUTE parameter passed.
in(int) method call
with ATTRIBUTE parameter passed.public boolean hasValue()
in(int) method call
with ANY_NODE_WITH_VALUE parameter passed.
in(int) method call
with ANY_NODE_WITH_VALUE parameter passed.public java.lang.String validate(java.lang.Object value)
getXSElement() and
getXSAttr()).
null when value is valid and an error message
oterwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||