| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public final class Element extends Object implements DTDConstants, Serializable
An element as described in a DTD using the ELEMENT construct. This is essentiall the description of a tag. It describes the type, content model, attributes, attribute types etc. It is used to correctly parse a document by the Parser.
Field Summary | |
---|---|
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
|
Method Summary | |
---|---|
AttributeList |
getAttribute(String name) Get an attribute by name. |
AttributeList |
getAttributeByValue(String name) Get an attribute by value. |
AttributeList |
Get the attributes. |
ContentModel |
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 |
|
boolean |
omitEnd() Return true if the end tag can be omitted. |
boolean |
Return true if the start tag can be omitted. |
String |
toString() Convert to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public AttributeList atts
public ContentModel content
public Object data
public BitSet exclusions
public BitSet inclusions
public int index
public String name
public boolean oEnd
public boolean oStart
public int type
Method Detail |
---|
public AttributeList getAttribute(String name)
name
public AttributeList getAttributeByValue(String name)
name
public AttributeList getAttributes()
public ContentModel getContent()
public int getIndex()
public String getName()
public int getType()
public boolean isEmpty()
public static int name2type(String nm)
nm
public boolean omitEnd()
public boolean omitStart()
public String toString()
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |