|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ccil.cowan.tagsoup.Element
The internal representation of an actual element (not an element type). An Element has an element type, attributes, and a successor Element for use in constructing stacks and queues of Elements.
ElementType
,
AttributesImpl
Constructor Summary | |
Element(ElementType type,
boolean defaultAttributes)
Return an Element from a specified ElementType. |
Method Summary | |
void |
anonymize()
Make this element anonymous. |
AttributesImpl |
atts()
Return the attributes as an AttributesImpl object. |
boolean |
canContain(Element other)
Return true if the type of this element can contain the type of another element. |
void |
clean()
Clean the attributes of this element. |
int |
flags()
Return the flags vector of the element's type. |
boolean |
isPreclosed()
Return true if this element has been preclosed. |
java.lang.String |
localName()
Return the local name of the element's type. |
int |
memberOf()
Return the member-of vector of the element's type. |
int |
model()
Return the content model vector of the element's type. |
java.lang.String |
name()
Return the name of the element's type. |
java.lang.String |
namespace()
Return the namespace name of the element's type. |
Element |
next()
Return the next element in an element stack or queue. |
ElementType |
parent()
Return the parent element type of the element's type. |
void |
preclose()
Force this element to preclosed status, meaning that an end-tag has been seen but the element cannot yet be closed for structural reasons. |
void |
setAttribute(java.lang.String name,
java.lang.String type,
java.lang.String value)
Set an attribute and its value into this element. |
void |
setNext(Element next)
Change the next element in an element stack or queue. |
ElementType |
type()
Return the element type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Element(ElementType type, boolean defaultAttributes)
type
- The element type of the newly constructed elementdefaultAttributes
- True if default attributes are wantedMethod Detail |
public ElementType type()
public AttributesImpl atts()
AttributesImpl
public Element next()
public void setNext(Element next)
next
- The new next elementpublic java.lang.String name()
public java.lang.String namespace()
public java.lang.String localName()
public int model()
public int memberOf()
public int flags()
public ElementType parent()
public boolean canContain(Element other)
other
- The other elementpublic void setAttribute(java.lang.String name, java.lang.String type, java.lang.String value)
name
- The attribute name (Qname)type
- The attribute typevalue
- The attribute valuepublic void anonymize()
public void clean()
public void preclose()
public boolean isPreclosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |