org.ccil.cowan.tagsoup
public class Element extends Object
See Also: 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. |
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.
|
String | name()
Return the name of the element's type.
|
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(String name, String type, 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. |
Parameters: type The element type of the newly constructed element defaultAttributes True if default attributes are wanted
Returns: The attributes
See Also: AttributesImpl
Parameters: other The other element
Returns: The flags vector
Returns: The element type local name
Returns: The member-of vector
Returns: The content model vector
Returns: The element type name
Returns: The element type namespace name
Returns: The next element
Returns: The parent element type
Parameters: name The attribute name (Qname) type The attribute type value The attribute value
Parameters: next The new next element
Returns: The element type.