APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.utils

pack-priv Class ElemDesc

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map

This class is in support of SerializerToHTML, and acts as a sort of element representative for HTML elements.

Field Summary

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

Defines mnemonic and bit-value for the ASPECIAL flag

pack-priv static final int
ATTREMPTY

Defines mnemonic and bit-value for the ATTREMPTY flag

pack-priv static final int
ATTRURL

Defines mnemonic and bit-value for the ATTRURL flag

pack-priv static final int
BLOCK

Defines mnemonic and bit-value for the BLOCK flag

pack-priv static final int
BLOCKFORM

Defines mnemonic and bit-value for the BLOCKFORM flag

pack-priv static final int
BLOCKFORMFIELDSET

Defines mnemonic and bit-value for the BLOCKFORMFIELDSET flag

pack-priv static final int
CDATA

Defines mnemonic and bit-value for the CDATA flag

pack-priv static final int
EMPTY

Defines mnemonic and bit-value for the EMPTY flag

pack-priv static final int
FLOW

Defines mnemonic and bit-value for the FLOW flag

pack-priv static final int
FONTSTYLE

Defines mnemonic and bit-value for the FONTSTYLE flag

pack-priv static final int
FORMCTRL

Defines mnemonic and bit-value for the FORMCTRL flag

pack-priv static final int
HEAD

Defines mnemonic and bit-value for the HEAD flag

pack-priv static final int
HEADMISC

Defines mnemonic and bit-value for the HEADMISC flag

pack-priv static final int
INLINE

Defines mnemonic and bit-value for the INLINE flag

pack-priv static final int
INLINEA

Defines mnemonic and bit-value for the INLINEA flag

pack-priv static final int
INLINELABEL

Defines mnemonic and bit-value for the INLINELABEL flag

pack-priv static final int
LIST

Defines mnemonic and bit-value for the LIST flag

pack-priv Map<String, Integer>
m_attrs

Table of attributes for the element

pack-priv int
m_flags

Element's flags, describing the role this element plays during formatting of the document.

pack-priv static final int
PCDATA

Defines mnemonic and bit-value for the PCDATA flag

pack-priv static final int
PHRASE

Defines mnemonic and bit-value for the PHRASE flag

pack-priv static final int
PREFORMATTED

Defines mnemonic and bit-value for the PREFORMATTED flag

pack-priv static final int
RAW

Defines mnemonic and bit-value for the RAW flag

pack-priv static final int
SPECIAL

Defines mnemonic and bit-value for the SPECIAL flag

pack-priv static final int
WHITESPACESENSITIVE

Defines mnemonic and bit-value for the WHITESPACESENSITIVE flag

Constructor Summary

AccessConstructor and Description
pack-priv
ElemDesc(int
Element flags
flags
)

Construct an ElementDescription with an initial set of flags.

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean

Returns:

true if the flags set in the parameter are also set in the element's stored flags.
is
(int
Vector of flags to compare against this element's flags
flags
)

"is (this element described by these flags)".

pack-priv boolean

Returns:

True if the flag is set in the attribute. Returns false if the attribute is not found
isAttrFlagSet
(String
Attribute name
name
,
int
Flag to check
flags
)

Find out if a flag is set in a given attribute of this element

pack-priv void
setAttr(String
Attribute name
name
,
int
Attibute flags
flags
)

Set a new attribute for this element

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASPECIALback to summary
pack-priv static final int ASPECIAL

Defines mnemonic and bit-value for the ASPECIAL flag

ATTREMPTYback to summary
pack-priv static final int ATTREMPTY

Defines mnemonic and bit-value for the ATTREMPTY flag

ATTRURLback to summary
pack-priv static final int ATTRURL

Defines mnemonic and bit-value for the ATTRURL flag

BLOCKback to summary
pack-priv static final int BLOCK

Defines mnemonic and bit-value for the BLOCK flag

BLOCKFORMback to summary
pack-priv static final int BLOCKFORM

Defines mnemonic and bit-value for the BLOCKFORM flag

BLOCKFORMFIELDSETback to summary
pack-priv static final int BLOCKFORMFIELDSET

Defines mnemonic and bit-value for the BLOCKFORMFIELDSET flag

CDATAback to summary
pack-priv static final int CDATA

Defines mnemonic and bit-value for the CDATA flag

EMPTYback to summary
pack-priv static final int EMPTY

Defines mnemonic and bit-value for the EMPTY flag

FLOWback to summary
pack-priv static final int FLOW

Defines mnemonic and bit-value for the FLOW flag

FONTSTYLEback to summary
pack-priv static final int FONTSTYLE

Defines mnemonic and bit-value for the FONTSTYLE flag

FORMCTRLback to summary
pack-priv static final int FORMCTRL

Defines mnemonic and bit-value for the FORMCTRL flag

HEADMISCback to summary
pack-priv static final int HEADMISC

Defines mnemonic and bit-value for the HEADMISC flag

INLINEback to summary
pack-priv static final int INLINE

Defines mnemonic and bit-value for the INLINE flag

INLINEAback to summary
pack-priv static final int INLINEA

Defines mnemonic and bit-value for the INLINEA flag

INLINELABELback to summary
pack-priv static final int INLINELABEL

Defines mnemonic and bit-value for the INLINELABEL flag

LISTback to summary
pack-priv static final int LIST

Defines mnemonic and bit-value for the LIST flag

m_attrsback to summary
pack-priv Map<String, Integer> m_attrs

Table of attributes for the element

m_flagsback to summary
pack-priv int m_flags

Element's flags, describing the role this element plays during formatting of the document. This is used as a bitvector; more than one flag may be set at a time, bitwise-ORed together. Mnemonic and bits have been assigned to the flag values.

Note

Some bits are currently assigned multiple mnemonics; it is the caller's responsibility to disambiguate these if necessary.

PCDATAback to summary
pack-priv static final int PCDATA

Defines mnemonic and bit-value for the PCDATA flag

PHRASEback to summary
pack-priv static final int PHRASE

Defines mnemonic and bit-value for the PHRASE flag

PREFORMATTEDback to summary
pack-priv static final int PREFORMATTED

Defines mnemonic and bit-value for the PREFORMATTED flag

RAWback to summary
pack-priv static final int RAW

Defines mnemonic and bit-value for the RAW flag

SPECIALback to summary
pack-priv static final int SPECIAL

Defines mnemonic and bit-value for the SPECIAL flag

WHITESPACESENSITIVEback to summary
pack-priv static final int WHITESPACESENSITIVE

Defines mnemonic and bit-value for the WHITESPACESENSITIVE flag

Constructor Detail

ElemDescback to summary
pack-priv ElemDesc(int flags)

Construct an ElementDescription with an initial set of flags.

Parameters
flags:int

Element flags

See Also
m_flags

Method Detail

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

"is (this element described by these flags)". This might more properly be called areFlagsSet(). It accepts an integer (being used as a bitvector) and checks whether all the corresponding bits are set in our internal flags. Note that this test is performed as a bitwise AND, not an equality test, so a 0 bit in the input means "don't test", not "must be set false".

Parameters
flags:int

Vector of flags to compare against this element's flags

Returns:boolean

true if the flags set in the parameter are also set in the element's stored flags.

See Also
m_flags, isAttrFlagSet
isAttrFlagSetback to summary
pack-priv boolean isAttrFlagSet(String name, int flags)

Find out if a flag is set in a given attribute of this element

Parameters
name:String

Attribute name

flags:int

Flag to check

Returns:boolean

True if the flag is set in the attribute. Returns false if the attribute is not found

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

Set a new attribute for this element

Parameters
name:String

Attribute name

flags:int

Attibute flags