|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.text.html.parser.Element
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.
DTD
,
AttributeList
, Serialized FormField 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 |
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 nm)
|
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public int index
public String name
public boolean oStart
public boolean oEnd
public BitSet inclusions
public BitSet exclusions
public int type
public ContentModel content
public AttributeList atts
public Object data
Method Detail |
public String getName()
public boolean omitStart()
public boolean omitEnd()
public int getType()
public ContentModel getContent()
public AttributeList getAttributes()
public int getIndex()
public boolean isEmpty()
public String toString()
public AttributeList getAttribute(String name)
public AttributeList getAttributeByValue(String name)
public static int name2type(String nm)
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |