public abstract class OMANode extends Object
Modifier | Constructor and Description |
---|---|
protected |
OMANode(OMAConstructed parent,
String name,
String context,
Map<String,String> avps) |
public OMAConstructed getParent()
public String getName()
public String getContext()
public String getPathString()
public static String escape(String s)
s
- the raw stringpublic abstract OMANode reparent(OMAConstructed parent)
public abstract String getScalarValue(Iterator<String> path) throws OMAException
OMAException
public abstract OMANode getListValue(Iterator<String> path) throws OMAException
OMAException
public abstract boolean isLeaf()
public abstract Collection<OMANode> getChildren()
public abstract OMANode getChild(String name) throws OMAException
OMAException
public abstract String getValue()
public abstract OMANode addChild(String name, String context, String value, String path) throws IOException
IOException
public abstract void marshal(OutputStream out, int level) throws IOException
IOException
public abstract void toString(StringBuilder sb, int level)
public abstract void fillPayload(StringBuilder sb)
public void toXml(StringBuilder sb)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public static OMAConstructed unmarshal(InputStream in) throws IOException
IOException