org.ccil.cowan.tagsoup
public class ElementType extends Object
See Also: Schema
Constructor Summary | |
---|---|
ElementType(String name, int model, int memberOf, int flags, Schema schema)
Construct an ElementType:
but it's better to use Schema.element() instead.
|
Method Summary | |
---|---|
AttributesImpl | atts()
Returns the default attributes associated with this element type.
|
boolean | canContain(ElementType other)
Returns true if this element type can contain another element type.
|
int | flags()
Returns the flags associated with this element type. |
String | localName(String name)
Return a local name from a Qname. |
String | localName()
Returns the local name of this element type. |
int | memberOf()
Returns the content models to which this element type belongs. |
int | model()
Returns the content models of this element type. |
String | name()
Returns the name of this element type. |
String | namespace(String name, boolean attribute)
Return a namespace name from a Qname.
|
String | namespace()
Returns the namespace name of this element type. |
static String | normalize(String value)
Normalize an attribute value (ID-style).
|
ElementType | parent()
Returns the parent element type of this element type. |
Schema | schema()
Returns the schema which this element type is associated with. |
void | setAttribute(AttributesImpl atts, String name, String type, String value)
Sets an attribute and its value into an AttributesImpl object.
|
void | setAttribute(String name, String type, String value)
Sets an attribute and its value into this element type. |
void | setFlags(int flags)
Sets the flags of this element type. |
void | setMemberOf(int memberOf)
Sets the content models to which this element type belongs. |
void | setModel(int model)
Sets the models of this element type. |
void | setParent(ElementType parent)
Sets the parent element type of this element type. |
Parameters: name The element type name model ORed-together bits representing the content models allowed in the content of this element type memberOf ORed-together bits representing the content models to which this element type belongs flags ORed-together bits representing the flags associated with this element type schema The schema with which this element type will be associated
Parameters: other The other element type
Returns: The flags associated with this element type as a vector of bits
Parameters: name The Qname
Returns: The local name
Returns: The local name of the element type
Returns: The content models to which this element type belongs as a vector of bits
Returns: The content models of this element type as a vector of bits
Returns: The name of the element type
Parameters: name The Qname attribute True if name is an attribute name
Returns: The namespace name
Returns: The namespace name of the element type
Parameters: value The value to normalize
Returns: The normalized value
Returns: The parent element type
Returns: The schema
Parameters: atts The AttributesImpl object name The name (Qname) of the attribute type The type of the attribute value The value of the attribute
Parameters: name The name of the attribute type The type of the attribute value The value of the attribute
Parameters: flags associated with this element type The flags as a vector of bits
Parameters: memberOf The content models to which this element type belongs as a vector of bits
Parameters: model The content models of this element type as a vector of bits
Parameters: parent The parent element type