public class OmElement extends java.lang.Object implements Element
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Attribute> |
attributes |
(package private) java.lang.String |
body |
(package private) java.util.List<Element> |
elements |
(package private) java.lang.String |
name |
private Attribute |
p_bufAtt |
Constructor and Description |
---|
OmElement() |
OmElement(java.util.ArrayList<Attribute> ala,
java.util.ArrayList<Element> ale) |
OmElement(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute att) |
void |
addAttribute(java.lang.String n,
java.lang.String v) |
void |
addElement(Element elt) |
void |
addToBody(java.lang.String s) |
void |
copyAttributes(Attribute[] atta) |
java.lang.String |
getAttribute(java.lang.String nm) |
Attribute[] |
getAttributeArray() |
java.util.List<Attribute> |
getAttributes() |
java.lang.String |
getBody() |
Element |
getElement(java.lang.String s) |
Element[] |
getElementArray() |
java.util.List<Element> |
getElements() |
java.lang.String |
getName() |
OmAttribute |
getOmAttribute(java.lang.String nm) |
java.lang.String |
getText() |
boolean |
hasAttribute(java.lang.String nm) |
boolean |
hasAttributes() |
boolean |
hasBody() |
boolean |
hasElements() |
boolean |
hasText() |
java.lang.String |
serialize() |
void |
setAttribute(java.lang.String nm,
java.lang.String val) |
void |
setAttributes(java.util.ArrayList<Attribute> ala) |
void |
setBody(java.lang.String s) |
void |
setElements(java.util.ArrayList<Element> ale) |
void |
setName(java.lang.String s) |
java.lang.String |
toString() |
java.lang.String name
java.lang.String body
java.util.List<Attribute> attributes
java.util.List<Element> elements
private Attribute p_bufAtt
public java.lang.String toString()
toString
in class java.lang.Object
public void addToBody(java.lang.String s)
public void setName(java.lang.String s)
public void setBody(java.lang.String s)
public java.lang.String getBody()
public boolean hasBody()
public void copyAttributes(Attribute[] atta)
public Attribute[] getAttributeArray()
getAttributeArray
in interface Attributed
public boolean hasAttribute(java.lang.String nm)
hasAttribute
in interface Attributed
public void setAttribute(java.lang.String nm, java.lang.String val)
public OmAttribute getOmAttribute(java.lang.String nm)
public java.lang.String getAttribute(java.lang.String nm)
getAttribute
in interface Attributed
public boolean hasAttributes()
hasAttributes
in interface Attributed
public boolean hasElements()
hasElements
in interface Elemented
public Element[] getElementArray()
getElementArray
in interface Elemented
public Element getElement(java.lang.String s)
getElement
in interface Elemented
public void addElement(Element elt)
public void addAttribute(java.lang.String n, java.lang.String v)
public void addAttribute(Attribute att)
public void setAttributes(java.util.ArrayList<Attribute> ala)
public void setElements(java.util.ArrayList<Element> ale)
public java.util.List<Attribute> getAttributes()
getAttributes
in interface Attributed
public java.util.List<Element> getElements()
getElements
in interface Elemented
Copyright © 2013. All Rights Reserved.