Fields Summary |
---|
int | m_flagsBit flags to tell about this element type. |
StringToIntTable | m_attrsTable of attribute names to integers, which contain bit flags telling about
the attributes. |
public static final int | EMPTYBit position if this element type is empty. |
public static final int | FLOWBit position if this element type is a flow. |
public static final int | BLOCKBit position if this element type is a block. |
public static final int | BLOCKFORMBit position if this element type is a block form. |
public static final int | BLOCKFORMFIELDSETBit position if this element type is a block form field set (?? -sb). |
public static final int | CDATABit position if this element type is CDATA. |
public static final int | PCDATABit position if this element type is PCDATA. |
public static final int | RAWBit position if this element type is should be raw characters. |
public static final int | INLINEBit position if this element type should be inlined. |
public static final int | INLINEABit position if this element type is INLINEA (?? -sb). |
public static final int | INLINELABELBit position if this element type is an inline label. |
public static final int | FONTSTYLEBit position if this element type is a font style. |
public static final int | PHRASEBit position if this element type is a phrase. |
public static final int | FORMCTRLBit position if this element type is a form control. |
public static final int | SPECIALBit position if this element type is ???. |
public static final int | ASPECIALBit position if this element type is ???. |
public static final int | HEADMISCBit position if this element type is an odd header element. |
public static final int | HEADBit position if this element type is a head element (i.e. H1, H2, etc.) |
public static final int | LISTBit position if this element type is a list. |
public static final int | PREFORMATTEDBit position if this element type is a preformatted type. |
public static final int | WHITESPACESENSITIVEBit position if this element type is whitespace sensitive. |
public static final int | HEADELEMBit position if this element type is a header element (i.e. HEAD). |
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 |
---|
public int | getFlags()
return m_flags;
|
public 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;
|
public 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);
|