public class Element
extends java.lang.Object
ElementType
,
AttributesImpl
Constructor and Description |
---|
Element(ElementType type,
boolean defaultAttributes)
Return an Element from a specified ElementType.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Element(ElementType type, boolean defaultAttributes)
type
- The element type of the newly constructed elementdefaultAttributes
- True if default attributes are wantedpublic 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()
Licence: Academic Free License 3.0 and/or GPL 2.0