|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ccil.cowan.tagsoup.Schema
public abstract class Schema
Abstract class representing a TSSL schema. Actual TSSL schemas are compiled into concrete subclasses of this class.
| 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
|
| Constructor Summary | |
|---|---|
Schema()
|
|
| Method Summary | |
|---|---|
void |
attribute(java.lang.String elemName,
java.lang.String attrName,
java.lang.String type,
java.lang.String value)
Add or replace a default attribute for an element type in this schema. |
void |
elementType(java.lang.String name,
int model,
int memberOf,
int flags)
Add or replace an element type for this schema. |
void |
entity(java.lang.String name,
int value)
Add to or replace a character entity in this schema. |
ElementType |
getElementType(java.lang.String name)
Get an ElementType by name. |
int |
getEntity(java.lang.String name)
Get an entity value by name. |
java.lang.String |
getPrefix()
Return the prefix of this schema. |
java.lang.String |
getURI()
Return the URI (namespace name) of this schema. |
void |
parent(java.lang.String name,
java.lang.String parentName)
Specify natural parent of an element in this schema. |
ElementType |
rootElementType()
Get the root element of this schema |
void |
setPrefix(java.lang.String prefix)
Change the prefix of this schema. |
void |
setURI(java.lang.String uri)
Change the URI (namespace name) of this schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int M_ANY
public static final int M_EMPTY
public static final int M_PCDATA
public static final int M_ROOT
public static final int F_RESTART
public static final int F_CDATA
public static final int F_NOFORCE
| Constructor Detail |
|---|
public Schema()
| Method Detail |
|---|
public void elementType(java.lang.String name,
int model,
int memberOf,
int flags)
name - Name (Qname) of the elementmodel - Models of the element's content as a vector of bitsmemberOf - Models the element is a member of as a vector of bitsflags - Flags for the elementpublic ElementType rootElementType()
public void attribute(java.lang.String elemName,
java.lang.String attrName,
java.lang.String type,
java.lang.String value)
elemName - Name (Qname) of the element typeattrName - Name (Qname) of the attributetype - Type of the attributevalue - Default value of the attribute; null if no default
public void parent(java.lang.String name,
java.lang.String parentName)
name - Name of the child elementparentName - Name of the parent element
public void entity(java.lang.String name,
int value)
name - Name of the entityvalue - Value of the entitypublic ElementType getElementType(java.lang.String name)
name - Name (Qname) of the element type
public int getEntity(java.lang.String name)
name - Name of the entity
public java.lang.String getURI()
public java.lang.String getPrefix()
public void setURI(java.lang.String uri)
public void setPrefix(java.lang.String prefix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||