Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.serializer

public final Class ElemDesc

extends Object
Class Inheritance
Imports
com.sun.org.apache.xml.internal.serializer.utils.StringToIntTable

This class has a series of flags (bit values) that describe an HTML element This class is public because XSLTC uses it, it is not a public API.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
ASPECIAL

Bit position if this element type is ???.

public static final int
ATTREMPTY

Bit position if this attribute type is an empty type.

public static final int
ATTRURL

Bit position if this attribute type is a URL.

pack-priv static final int
BLOCK

Bit position if this element type is a block.

pack-priv static final int
BLOCKFORM

Bit position if this element type is a block form.

pack-priv static final int
BLOCKFORMFIELDSET

Bit position if this element type is a block form field set.

private static final int
CDATA

Bit position if this element type is CDATA.

pack-priv static final int
EMPTY

Bit position if this element type is empty.

private static final int
FLOW

Bit position if this element type is a flow.

pack-priv static final int
FONTSTYLE

Bit position if this element type is a font style.

pack-priv static final int
FORMCTRL

Bit position if this element type is a form control.

pack-priv static final int
HEAD

Bit position if this element type is a head element (i.e. H1, H2, etc.)

pack-priv static final int
HEADELEM

Bit position if this element type is a header element (i.e. HEAD).

pack-priv static final int
HEADMISC

Bit position if this element type is an odd header element.

private static final int
HTMLELEM

Bit position if this element is the "HTML" element

private static final int
INLINE

Bit position if this element type should be inlined.

private static final int
INLINEA

Bit position if this element type is INLINEA.

pack-priv static final int
INLINELABEL

Bit position if this element type is an inline label.

pack-priv static final 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 final int
PCDATA

Bit position if this element type is PCDATA.

pack-priv static final int
PHRASE

Bit position if this element type is a phrase.

pack-priv static final int
PREFORMATTED

Bit position if this element type is a preformatted type.

pack-priv static final int
RAW

Bit position if this element type is should be raw characters.

pack-priv static final int
SPECIAL

Bit position if this element type is ???.

pack-priv static final int
WHITESPACESENSITIVE

Bit position if this element type is whitespace sensitive.

Constructor Summary

AccessConstructor and Description
pack-priv
ElemDesc(int
Bit flags that describe the basic properties of this element type.
flags
)

Construct an ElemDesc from a set of bit flags.

Method Summary

Modifier and TypeMethod and Description
pack-priv int
private boolean

Returns:

true if any of the flag bits are true.
is
(int
Bit flags that describe the basic properties of interest.
flags
)

Tell if this element type has the basic bit properties that are passed as an argument.

public boolean

Returns:

true if any of the flags are set for the named attribute.
isAttrFlagSet
(String
non-null reference to attribute name, in any case.
name
,
int
flag mask.
flags
)

Tell if any of the bits of interest are set for a named attribute type.

pack-priv void
setAttr(String
non-null name of attribute, in upper case.
name
,
int
flag bits.
flags
)

Set an attribute name and it's bit properties.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASPECIALback to summary
pack-priv static final int ASPECIAL

Bit position if this element type is ???.

ATTREMPTYback to summary
public static final int ATTREMPTY

Bit position if this attribute type is an empty type.

ATTRURLback to summary
public static final int ATTRURL

Bit position if this attribute type is a URL.

BLOCKback to summary
pack-priv static final int BLOCK

Bit position if this element type is a block.

BLOCKFORMback to summary
pack-priv static final int BLOCKFORM

Bit position if this element type is a block form.

BLOCKFORMFIELDSETback to summary
pack-priv static final int BLOCKFORMFIELDSET

Bit position if this element type is a block form field set.

CDATAback to summary
private static final int CDATA

Bit position if this element type is CDATA.

EMPTYback to summary
pack-priv static final int EMPTY

Bit position if this element type is empty.

FLOWback to summary
private static final int FLOW

Bit position if this element type is a flow.

FONTSTYLEback to summary
pack-priv static final int FONTSTYLE

Bit position if this element type is a font style.

FORMCTRLback to summary
pack-priv static final int FORMCTRL

Bit position if this element type is a form control.

HEADELEMback to summary
pack-priv static final int HEADELEM

Bit position if this element type is a header element (i.e. HEAD).

HEADMISCback to summary
pack-priv static final int HEADMISC

Bit position if this element type is an odd header element.

HTMLELEMback to summary
private static final int HTMLELEM

Bit position if this element is the "HTML" element

INLINEback to summary
private static final int INLINE

Bit position if this element type should be inlined.

INLINEAback to summary
private static final int INLINEA

Bit position if this element type is INLINEA.

INLINELABELback to summary
pack-priv static final int INLINELABEL

Bit position if this element type is an inline label.

LISTback to summary
pack-priv static final int LIST

Bit position if this element type is a list.

m_attrsback to summary
private StringToIntTable m_attrs

Table of attribute names to integers, which contain bit flags telling about the attributes.

m_flagsback to summary
private int m_flags

Bit flags to tell about this element type.

PCDATAback to summary
private static final int PCDATA

Bit position if this element type is PCDATA.

PHRASEback to summary
pack-priv static final int PHRASE

Bit position if this element type is a phrase.

PREFORMATTEDback to summary
pack-priv static final int PREFORMATTED

Bit position if this element type is a preformatted type.

RAWback to summary
pack-priv static final int RAW

Bit position if this element type is should be raw characters.

SPECIALback to summary
pack-priv static final int SPECIAL

Bit position if this element type is ???.

WHITESPACESENSITIVEback to summary
pack-priv static final int WHITESPACESENSITIVE

Bit position if this element type is whitespace sensitive.

Constructor Detail

ElemDescback to summary
pack-priv ElemDesc(int flags)

Construct an ElemDesc from a set of bit flags.

Parameters
flags:int

Bit flags that describe the basic properties of this element type.

Method Detail

getFlagsback to summary
pack-priv int getFlags()
isback to summary
private boolean is(int flags)

Tell if this element type has the basic bit properties that are passed as an argument.

Parameters
flags:int

Bit flags that describe the basic properties of interest.

Returns:boolean

true if any of the flag bits are true.

isAttrFlagSetback to summary
public boolean isAttrFlagSet(String name, int flags)

Tell if any of the bits of interest are set for a named attribute type.

Parameters
name:String

non-null reference to attribute name, in any case.

flags:int

flag mask.

Returns:boolean

true if any of the flags are set for the named attribute.

setAttrback to summary
pack-priv void setAttr(String name, int flags)

Set an attribute name and it's bit properties.

Parameters
name:String

non-null name of attribute, in upper case.

flags:int

flag bits.