public class JBerdTagPath
extends java.lang.Object
| Constructor and Description |
|---|
JBerdTagPath(int tag)
create with a single tag
|
JBerdTagPath(JBerdTagPath parent,
int tag)
Create a tagpath from a given parent path with a given tag appended
|
JBerdTagPath(java.lang.String stringRep)
Create from a string representation (eg 0.1.2
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(JBerdTagPath otherOne)
compares a tagpath with another
|
JBerdTagPath |
getParent()
returns a tag path's parent
|
boolean |
isParent(JBerdTagPath possParent)
Returns whether a given tagpath is this tagpath's parent
|
java.util.Iterator<java.lang.Integer> |
iterator()
Returns an iterator enabling the integer elements of a tagpath to be enumerated
|
java.lang.String |
toString() |
public JBerdTagPath(int tag)
tag - public JBerdTagPath(JBerdTagPath parent, int tag)
parent - the given parenttag - the tag to appendpublic JBerdTagPath(java.lang.String stringRep)
throws BERException
stringRep - the string representationBERException - thrown if string is not valid, eg does not start 0. or does not consist of period separated numberspublic JBerdTagPath getParent()
public boolean compare(JBerdTagPath otherOne)
otherOne - the tag path to compare withpublic boolean isParent(JBerdTagPath possParent)
possParent - the putative parentpublic java.util.Iterator<java.lang.Integer> iterator()
public java.lang.String toString()
toString in class java.lang.Object