javax.swing.text.html.parser
Class Element
java.lang.Object
|
+--javax.swing.text.html.parser.Element
- All Implemented Interfaces:
- DTDConstants, Serializable
- public final class Element
- extends Object
- implements DTDConstants, Serializable
Untamed:
- See Also:
- Serialized Form
Field Summary
Fields inherited from interface javax.swing.text.html.parser.DTDConstants
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
Constructor Summary
(package private)
Element(String name,
int index)
Create a new element.
Method Summary
boolean
isEmpty()
Enabled: Check if empty
boolean
omitEnd()
Enabled: Return true if the end tag can be omitted.
boolean
omitStart()
Enabled: Return true if the start tag can be omitted.
Methods inherited from class java.lang.Object
Field Detail
index
public int index
- Enabled:
name
public String name
- Enabled:
oStart
public boolean oStart
- Enabled:
oEnd
public boolean oEnd
- Enabled:
inclusions
public BitSet inclusions
- Enabled:
exclusions
public BitSet exclusions
- Enabled:
type
public int type
- Enabled:
content
public ContentModel content
- Enabled:
atts
public AttributeList atts
- Enabled:
maxIndex
static int maxIndex
data
public Object data
- Enabled: A field to store user data. Mostly used to store
style sheets.
contentTypes
static Hashtable contentTypes
Constructor Detail
Element
Element()
Element
Element(String name,
int index)
- Create a new element.
Method Detail
getName
public String getName()
- Enabled: Get the name of the element.
-
-
omitStart
public boolean omitStart()
- Enabled: Return true if the start tag can be omitted.
-
-
omitEnd
public boolean omitEnd()
- Enabled: Return true if the end tag can be omitted.
-
-
getType
public int getType()
- Enabled: Get type.
-
-
getContent
public ContentModel getContent()
- Enabled: Get content model
-
-
getAttributes
public AttributeList getAttributes()
- Enabled: Get the attributes.
-
-
getIndex
public int getIndex()
- Enabled: Get index.
-
-
isEmpty
public boolean isEmpty()
- Enabled: Check if empty
-
-
toString
public String toString()
- Suppressed: Convert to a string.
- Overrides:
toString in class Object
- Returns:
- a string representation of the object.
getAttribute
public AttributeList getAttribute(String name)
- Enabled: Get an attribute by name.
-
-
getAttributeByValue
public AttributeList getAttributeByValue(String name)
- Enabled: Get an attribute by value.
-
-
name2type
public static int name2type(String nm)
- Enabled:
-
-