|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.common.xml.impl.TokenGeneratorImpl
public class TokenGeneratorImpl
Token generator implementation.
| Field Summary | |
|---|---|
protected ContentHandler |
handler
|
protected XMLIdGenerator |
idGenerator
|
protected String |
nsu
|
| Constructor Summary | |
|---|---|
TokenGeneratorImpl(String nsu,
ContentHandler handler,
XMLIdGenerator idGenerator)
Construct token generator. |
|
| Method Summary | |
|---|---|
void |
charToken(String str)
Create character token. |
boolean |
createRefToken(String name,
int index,
Class type,
Object src)
Try to create reference to another token. |
void |
endToken(String name)
Create end token. |
ContentHandler |
getHandler()
Get content handler. |
void |
setHandler(ContentHandler handler)
Set content handler. |
void |
startToken(String name,
int index,
String className,
int size,
Object obj)
Create start token. |
void |
startToken(String name,
int index,
String className,
Object obj)
Create start token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String nsu
protected ContentHandler handler
protected XMLIdGenerator idGenerator
| Constructor Detail |
|---|
public TokenGeneratorImpl(String nsu,
ContentHandler handler,
XMLIdGenerator idGenerator)
nsu - namespace URIhandler - content handleridGenerator - ID generator| Method Detail |
|---|
public ContentHandler getHandler()
public void setHandler(ContentHandler handler)
handler - The handler to set.
public void startToken(String name,
int index,
String className,
int size,
Object obj)
throws XMLException
XMLTokenGenerator
startToken in interface XMLTokenGeneratorname - - token nameindex - - index attribute value, negative values are omittedclassName - - class name of objectsize - - object sizeobj - - object described by this token
XMLException
public void startToken(String name,
int index,
String className,
Object obj)
throws XMLException
XMLTokenGenerator
startToken in interface XMLTokenGeneratorname - - token nameindex - - index attribute value, negative values are omittedclassName - - class name of objectobj - - object described by this token
XMLException
public void endToken(String name)
throws XMLException
XMLTokenGenerator
endToken in interface XMLTokenGeneratorname - - token name
XMLException
public void charToken(String str)
throws XMLException
XMLTokenGenerator
charToken in interface XMLTokenGeneratorstr - - characters
XMLException
public boolean createRefToken(String name,
int index,
Class type,
Object src)
throws XMLException
XMLTokenGenerator
createRefToken in interface XMLTokenGeneratorname - - token nameindex - - index attribute value, negative values are omittedtype - - type of object describedsrc - - the object described by this token
XMLException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||