public final class Element extends Objectimplements DTDConstants , Serializable
DTD,
AttributeList
| Modifier and Type | Field and Description |
|---|---|
AttributeList |
atts
|
ContentModel |
content
|
Object |
data
A field to store user data.
|
BitSet |
exclusions
|
BitSet |
inclusions
|
int |
index
|
String |
name
|
boolean |
oEnd
|
boolean |
oStart
|
int |
type
|
ANY, CDATA, CONREF, CURRENT, DEFAULT, EMPTY, ENDTAG, ENTITIES, ENTITY, FIXED, GENERAL, ID, IDREF, IDREFS, IMPLIED, MD, MODEL, MS, NAME, NAMES, NMTOKEN, NMTOKENS, NOTATION, NUMBER, NUMBERS, NUTOKEN, NUTOKENS, PARAMETER, PI, PUBLIC, RCDATA, REQUIRED, SDATA, STARTTAG, SYSTEM| Modifier and Type | Method and Description |
|---|---|
AttributeList |
getAttribute(String
Get an attribute by name.
|
AttributeList |
getAttributeByValue(String
Get an attribute by value.
|
AttributeList |
getAttributes()
Get the attributes.
|
ContentModel |
getContent()
Get content model
|
int |
getIndex()
Get index.
|
String |
getName()
Get the name of the element.
|
int |
getType()
Get type.
|
boolean |
isEmpty()
Check if empty
|
static int |
name2type(String
|
boolean |
omitEnd()
Return true if the end tag can be omitted.
|
boolean |
omitStart()
Return true if the start tag can be omitted.
|
String |
toString()
Convert to a string.
|
public int index
public Stringname
public boolean oStart
public boolean oEnd
public BitSetinclusions
public BitSetexclusions
public int type
public ContentModelcontent
public AttributeListatts
public Objectdata
public StringgetName()
public boolean omitStart()
public boolean omitEnd()
public int getType()
public ContentModelgetContent()
public AttributeListgetAttributes()
public int getIndex()
public boolean isEmpty()
public StringtoString()
public AttributeListgetAttribute(String name)
public AttributeListgetAttributeByValue(String name)
public static int name2type(Stringnm)