|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.woden.xpointer.ElementPointerPart
public class ElementPointerPart
ElementPointerPart is a class which represents the element() scheme for the XPointer Framework. The specification is defined at http://www.w3.org/TR/xptr-element/ This class is immutable.
Constructor Summary | |
---|---|
ElementPointerPart(java.util.List childSequence)
Constructs an ElementPointerPart with only a childSequence. |
|
ElementPointerPart(NCName elementID)
Constructs an ElementPointerPart with only an elementID NCName. |
|
ElementPointerPart(NCName elementID,
java.util.List childSequence)
Constructs an ElementPointerPart with both an NCName and a childSequence. |
Method Summary | |
---|---|
java.lang.Integer[] |
getChildSequence()
Returns the child sequence of this Element PointerPart. |
NCName |
getNCName()
Returns the NCName for this Element PointerPart. |
boolean |
hasChildSequence()
Checks if this Element PointerPart has a childSequence or not. |
boolean |
hasNCName()
Checks if this Element PointerPart has a NCName or not. |
static ElementPointerPart |
parseFromString(java.lang.String schemeData)
Deserialises the schemaData for an ElementPointerPart and constructs a new ElementPointerPart from it. |
java.lang.String |
toString()
Returns a String serialisation of this xpointer PointerPart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ElementPointerPart(NCName elementID)
elementID
- an NCName of the elementID to reference.
java.lang.NullPointerException
- is a null elementID is given.public ElementPointerPart(java.util.List childSequence)
childSequence
- a List of Integers representing the child sequence.
java.lang.NullPointerException
- if childSequence is null.
java.lang.IllegalArgumentException
- if childSequence is empty or contains elements other than Integers.public ElementPointerPart(NCName elementID, java.util.List childSequence)
elementID
- an NCName of the elementID to reference.childSequence
- a List of Integers representing the child sequence.
java.lang.NullPointerException
- if elementID or childSequence are null.
java.lang.IllegalArgumentException
- if childSequence is empty or contains elements other than Integers.Method Detail |
---|
public NCName getNCName()
public java.lang.Integer[] getChildSequence()
public boolean hasNCName()
public boolean hasChildSequence()
public java.lang.String toString()
PointerPart
toString
in interface PointerPart
toString
in class java.lang.Object
public static ElementPointerPart parseFromString(java.lang.String schemeData) throws InvalidXPointerException
schemeData
- a String of the schemeaData parsed from the string XPointer.
java.lang.IllegalArgumentException
- if the schemeData has invalid scheme syntax.
InvalidXPointerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |