|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.serializer.ElemDesc
public final class ElemDesc
This class has a series of flags (bit values) that describe an HTML element
This class is not a public API. It is public because it is used outside of this package.
Field Summary | |
---|---|
(package private) static int |
ASPECIAL
Bit position if this element type is ???. |
static int |
ATTREMPTY
Bit position if this attribute type is an empty type. |
static int |
ATTRURL
Bit position if this attribute type is a URL. |
(package private) static int |
BLOCK
Bit position if this element type is a block. |
(package private) static int |
BLOCKFORM
Bit position if this element type is a block form. |
(package private) static int |
BLOCKFORMFIELDSET
Bit position if this element type is a block form field set. |
private static int |
CDATA
Bit position if this element type is CDATA. |
(package private) static int |
EMPTY
Bit position if this element type is empty. |
private static int |
FLOW
Bit position if this element type is a flow. |
(package private) static int |
FONTSTYLE
Bit position if this element type is a font style. |
(package private) static int |
FORMCTRL
Bit position if this element type is a form control. |
(package private) static int |
HEAD
Bit position if this element type is a head element (i.e. |
(package private) static int |
HEADELEM
Bit position if this element type is a header element (i.e. |
(package private) static int |
HEADMISC
Bit position if this element type is an odd header element. |
(package private) static int |
HTMLELEM
Bit position if this element is the "HTML" element |
private static int |
INLINE
Bit position if this element type should be inlined. |
private static int |
INLINEA
Bit position if this element type is INLINEA. |
(package private) static int |
INLINELABEL
Bit position if this element type is an inline label. |
(package private) static int |
LIST
Bit position if this element type is a list. |
private StringToIntTable |
m_attrs
Table of attribute names to integers, which contain bit flags telling about the attributes. |
private int |
m_flags
Bit flags to tell about this element type. |
private static int |
PCDATA
Bit position if this element type is PCDATA. |
(package private) static int |
PHRASE
Bit position if this element type is a phrase. |
(package private) static int |
PREFORMATTED
Bit position if this element type is a preformatted type. |
(package private) static int |
RAW
Bit position if this element type is should be raw characters. |
(package private) static int |
SPECIAL
Bit position if this element type is ???. |
(package private) static int |
WHITESPACESENSITIVE
Bit position if this element type is whitespace sensitive. |
Constructor Summary | |
---|---|
ElemDesc(int flags)
Construct an ElemDesc from a set of bit flags. |
Method Summary | |
---|---|
(package private) int |
getFlags()
|
private boolean |
is(int flags)
Tell if this element type has the basic bit properties that are passed as an argument. |
boolean |
isAttrFlagSet(java.lang.String name,
int flags)
Tell if any of the bits of interest are set for a named attribute type. |
(package private) void |
setAttr(java.lang.String name,
int flags)
Set an attribute name and it's bit properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int m_flags
private StringToIntTable m_attrs
static final int EMPTY
private static final int FLOW
static final int BLOCK
static final int BLOCKFORM
static final int BLOCKFORMFIELDSET
private static final int CDATA
private static final int PCDATA
static final int RAW
private static final int INLINE
private static final int INLINEA
static final int INLINELABEL
static final int FONTSTYLE
static final int PHRASE
static final int FORMCTRL
static final int SPECIAL
static final int ASPECIAL
static final int HEADMISC
static final int HEAD
static final int LIST
static final int PREFORMATTED
static final int WHITESPACESENSITIVE
static final int HEADELEM
static final int HTMLELEM
public static final int ATTRURL
public static final int ATTREMPTY
Constructor Detail |
---|
ElemDesc(int flags)
flags
- Bit flags that describe the basic properties of this element type.Method Detail |
---|
private boolean is(int flags)
flags
- Bit flags that describe the basic properties of interest.
int getFlags()
void setAttr(java.lang.String name, int flags)
name
- non-null name of attribute, in upper case.flags
- flag bits.public boolean isAttrFlagSet(java.lang.String name, int flags)
name
- non-null reference to attribute name, in any case.flags
- flag mask.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |