Fields Summary |
---|
private int | m_flagsBit flags to tell about this element type. |
private StringToIntTable | m_attrsTable of attribute names to integers, which contain bit flags telling about
the attributes. |
static final int | EMPTYBit position if this element type is empty. |
private static final int | FLOWBit position if this element type is a flow. |
static final int | BLOCKBit position if this element type is a block. |
static final int | BLOCKFORMBit position if this element type is a block form. |
static final int | BLOCKFORMFIELDSETBit position if this element type is a block form field set. |
private static final int | CDATABit position if this element type is CDATA. |
private static final int | PCDATABit position if this element type is PCDATA. |
static final int | RAWBit position if this element type is should be raw characters. |
private static final int | INLINEBit position if this element type should be inlined. |
private static final int | INLINEABit position if this element type is INLINEA. |
static final int | INLINELABELBit position if this element type is an inline label. |
static final int | FONTSTYLEBit position if this element type is a font style. |
static final int | PHRASEBit position if this element type is a phrase. |
static final int | FORMCTRLBit position if this element type is a form control. |
static final int | SPECIALBit position if this element type is ???. |
static final int | ASPECIALBit position if this element type is ???. |
static final int | HEADMISCBit position if this element type is an odd header element. |
static final int | HEADBit position if this element type is a head element (i.e. H1, H2, etc.) |
static final int | LISTBit position if this element type is a list. |
static final int | PREFORMATTEDBit position if this element type is a preformatted type. |
static final int | WHITESPACESENSITIVEBit position if this element type is whitespace sensitive. |
static final int | HEADELEMBit position if this element type is a header element (i.e. HEAD). |
private static final int | HTMLELEMBit position if this element is the "HTML" element |
public static final int | ATTRURLBit position if this attribute type is a URL. |
public static final int | ATTREMPTYBit position if this attribute type is an empty type. |
Methods Summary |
---|
int | getFlags()
return m_flags;
|
private boolean | is(int flags)Tell if this element type has the basic bit properties that are passed
as an argument.
// int which = (m_flags & flags);
return (m_flags & flags) != 0;
|
public boolean | isAttrFlagSet(java.lang.String name, int flags)Tell if any of the bits of interest are set for a named attribute type.
return (null != m_attrs)
? ((m_attrs.getIgnoreCase(name) & flags) != 0)
: false;
|
void | setAttr(java.lang.String name, int flags)Set an attribute name and it's bit properties.
if (null == m_attrs)
m_attrs = new StringToIntTable();
m_attrs.put(name, flags);
|