org.ccil.cowan.tagsoup
public abstract class Schema extends Object
Field Summary | |
---|---|
static int | F_CDATA |
static int | F_NOFORCE |
static int | F_RESTART |
static int | M_ANY |
static int | M_EMPTY |
static int | M_PCDATA |
static int | M_ROOT |
Method Summary | |
---|---|
void | attribute(String elemName, String attrName, String type, String value)
Add or replace a default attribute for an element type in this schema. |
void | elementType(String name, int model, int memberOf, int flags)
Add or replace an element type for this schema. |
void | entity(String name, char value)
Add to or replace a character entity in this schema. |
ElementType | getElementType(String name)
Get an ElementType by name. |
char | getEntity(String name)
Get an entity value by name. |
String | getPrefix()
Return the prefix of this schema.
|
String | getURI()
Return the URI (namespace name) of this schema.
|
void | parent(String name, String parentName)
Specify natural parent of an element in this schema. |
void | setPrefix(String prefix)
Change the prefix of this schema.
|
void | setURI(String uri)
Change the URI (namespace name) of this schema.
|
Parameters: elemName Name (Qname) of the element type attrName Name (Qname) of the attribute type Type of the attribute value Default value of the attribute; null if no default
Parameters: name Name (Qname) of the element model Models of the element's content as a vector of bits memberOf Models the element is a member of as a vector of bits flags Flags for the element
Parameters: name Name of the entity value Value of the entity
Parameters: name Name (Qname) of the element type
Returns: The corresponding ElementType
Parameters: name Name of the entity
Returns: The corresponding character, or 0 if none
Parameters: name Name of the child element parentName Name of the parent element