org.cyberneko.html
Class HTMLElements.Element
- HTMLElements
public static class HTMLElements.Element
Element information.
Element(short code, String name, int flags, short parent, short bounds, short[] closes) - Constructs an element object.
|
Element(short code, String name, int flags, short parent, short[] closes) - Constructs an element object.
|
Element(short code, String name, int flags, short[] parents, short bounds, short[] closes) - Constructs an element object.
|
Element(short code, String name, int flags, short[] parents, short[] closes) - Constructs an element object.
|
boolean | closes(short tag) - Returns true if this element can close the specified Element.
|
boolean | equals(Object o) - Returns true if the objects are equal.
|
int | hashCode() - Returns a hash code for this object.
|
boolean | isBlock() - Returns true if this element is a block element.
|
boolean | isContainer() - Returns true if this element is a container element.
|
boolean | isEmpty() - Returns true if this element is an empty element.
|
boolean | isInline() - Returns true if this element is an inline element.
|
boolean | isSpecial() - Returns true if this element is special -- if its content
should be parsed ignoring markup.
|
BLOCK
public static final int BLOCK
Block element.
CONTAINER
public static final int CONTAINER
Container element.
EMPTY
public static final int EMPTY
Empty element.
INLINE
public static final int INLINE
Inline element.
SPECIAL
public static final int SPECIAL
Special element.
bounds
public short bounds
The bounding element code.
closes
public short[] closes
List of elements this element can close.
code
public short code
The element code.
flags
public int flags
Informational flags.
name
public String name
The element name.
parentCodes
public short[] parentCodes
Parent elements.
Element
public Element(short code,
String name,
int flags,
short parent,
short bounds,
short[] closes)
Constructs an element object.
code
- The element code.name
- The element name.flags
- Informational flagsparent
- Natural closing parent name.closes
- List of elements this element can close.
Element
public Element(short code,
String name,
int flags,
short parent,
short[] closes)
Constructs an element object.
code
- The element code.name
- The element name.flags
- Informational flagsparent
- Natural closing parent name.closes
- List of elements this element can close.
Element
public Element(short code,
String name,
int flags,
short[] parents,
short bounds,
short[] closes)
Constructs an element object.
code
- The element code.name
- The element name.flags
- Informational flagsparents
- Natural closing parent names.closes
- List of elements this element can close.
Element
public Element(short code,
String name,
int flags,
short[] parents,
short[] closes)
Constructs an element object.
code
- The element code.name
- The element name.flags
- Informational flagsparents
- Natural closing parent names.closes
- List of elements this element can close.
closes
public boolean closes(short tag)
Returns true if this element can close the specified Element.
equals
public boolean equals(Object o)
Returns true if the objects are equal.
hashCode
public int hashCode()
Returns a hash code for this object.
isBlock
public final boolean isBlock()
Returns true if this element is a block element.
isContainer
public final boolean isContainer()
Returns true if this element is a container element.
isEmpty
public final boolean isEmpty()
Returns true if this element is an empty element.
isInline
public final boolean isInline()
Returns true if this element is an inline element.
isSpecial
public final boolean isSpecial()
Returns true if this element is special -- if its content
should be parsed ignoring markup.
(C) Copyright 2002-2005, Andy Clark. All rights reserved.