This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.text.html.parser
class Element

java.lang.Object extended by javax.swing.text.html.parser.Element
All Implemented Interfaces:
Serializable, DTDConstants

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

          Get an attribute by name.
 AttributeList

          Get an attribute by value.
 AttributeList

          Get the attributes.
 ContentModel

          Get content model
 int

          Get index.
 String

          Get the name of the element.
 int

          Get type.
 boolean

          Check if empty
static int

          
 boolean

          Return true if the end tag can be omitted.
 boolean

          Return true if the start tag can be omitted.
 String

          Convert to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

atts

public AttributeList atts

content

public ContentModel content

data

public Object data
A field to store user data. Mostly used to store style sheets.

exclusions

public BitSet exclusions

inclusions

public BitSet inclusions

index

public int index

name

public String name

oEnd

public boolean oEnd

oStart

public boolean oStart

type

public int type
Method Detail

getAttribute

public AttributeList getAttribute(String name)
Get an attribute by name.

Parameters:
name

getAttributeByValue

public AttributeList getAttributeByValue(String name)
Get an attribute by value.

Parameters:
name

getAttributes

public AttributeList getAttributes()
Get the attributes.


getContent

public ContentModel getContent()
Get content model


getIndex

public int getIndex()
Get index.


getName

public String getName()
Get the name of the element.


getType

public int getType()
Get type.


isEmpty

public boolean isEmpty()
Check if empty


name2type

public static int name2type(String nm)
Parameters:
nm

omitEnd

public boolean omitEnd()
Return true if the end tag can be omitted.


omitStart

public boolean omitStart()
Return true if the start tag can be omitted.


toString

public String toString()
Convert to a string.

Overrides:
toString in class Object


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.