|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.msv.reader.State
public abstract class State
base interface of 'parsing state'. parsing of XML representation of a grammar is done by using various states.
Each State-derived class is responsible for a particular type of declaration of the grammar. For example, SequenceState is responsible for parsing <sequence> element of RELAX module.
State objects interact each other. There are two ways of interaction.
In this level of inheritance, contract is somewhat abstract.
SimpleState.
this class also provides:
| Field Summary | |
|---|---|
protected String |
baseURI
base URI for this state. |
protected Locator |
location
Location of the start tag. |
protected State |
parentState
parent state of this state. |
GrammarReader |
reader
reader object who is the owner of this object. |
protected StartTagInfo |
startTag
information of the start tag. |
| Constructor Summary | |
|---|---|
State()
|
|
| Method Summary | |
|---|---|
static void |
_assert(boolean b)
|
protected Expression |
callInterceptExpression(Expression exp)
|
void |
characters(char[] buffer,
int from,
int len)
|
void |
endPrefixMapping(String prefix)
|
String |
getBaseURI()
|
Locator |
getLocation()
|
State |
getParentState()
|
StartTagInfo |
getStartTag()
|
void |
ignorableWhitespace(char[] buffer,
int from,
int len)
|
protected void |
init(GrammarReader reader,
State parentState,
StartTagInfo startTag)
|
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator loc)
|
void |
skippedEntity(String name)
|
void |
startDocument()
|
void |
startPrefixMapping(String prefix,
String uri)
|
protected void |
startSelf()
performs a task that should be done before reading any child elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
endDocument, endElement, startElement |
| Field Detail |
|---|
protected State parentState
public GrammarReader reader
protected StartTagInfo startTag
protected Locator location
protected String baseURI
| Constructor Detail |
|---|
public State()
| Method Detail |
|---|
public final State getParentState()
public StartTagInfo getStartTag()
public Locator getLocation()
public String getBaseURI()
protected final void init(GrammarReader reader,
State parentState,
StartTagInfo startTag)
protected void startSelf()
public static void _assert(boolean b)
public void characters(char[] buffer,
int from,
int len)
throws SAXException
characters in interface ContentHandlerSAXExceptionprotected final Expression callInterceptExpression(Expression exp)
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] buffer,
int from,
int len)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public final void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator loc)
setDocumentLocator in interface ContentHandler
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||