public final class Element extends Object implements DTDConstants, Serializable
An element as described in a DTD using the ELEMENT construct. This is essential 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
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
A field to store user data. Mostly used to store style sheets.
public String getName()
Get the name of the element.
public boolean omitStart()
Return true if the start tag can be omitted.
public boolean omitEnd()
Return true if the end tag can be omitted.
public int getType()
Get type.
public ContentModel getContent()
Get content model
public AttributeList getAttributes()
Get the attributes.
public int getIndex()
Get index.
public boolean isEmpty()
Check if empty
public String toString()
Convert to a string.
public AttributeList getAttribute(String name)
Get an attribute by name.
public AttributeList getAttributeByValue(String name)
Get an attribute by value.
public static int name2type(String nm)
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.