DOCUMENT_FINISHED
public static final int DOCUMENT_FINISHED
DOCUMENT_STARTING
public static final int DOCUMENT_STARTING
ELEMENT_ATTRIBUTES
public static final int ELEMENT_ATTRIBUTES
ELEMENT_CONTENT
public static final int ELEMENT_CONTENT
ELEMENT_EXPECTED
public static final int ELEMENT_EXPECTED
ELEMENT_STARTED
public static final int ELEMENT_STARTED
META_EXPECTED
public static final int META_EXPECTED
META_NODE_ATTRIBUTES
public static final int META_NODE_ATTRIBUTES
META_NODE_START
public static final int META_NODE_START
META_PROCESSING
public static final int META_PROCESSING
addDocumentAttribute
public final void addDocumentAttribute(String name,
Object attr)
Adds document attributes. Document attributes hold object factories and
document wide resources which appear only once.
- addDocumentAttribute in interface InputFeed
getCurrentNormalizer
public Normalizer getCurrentNormalizer()
Warning; This method is needed internally, mess with it from the outside
and you will run into trouble. The normalizer is a statefull component and
any call to it may mess up the state. From there on, 'Abandon every hope,
ye who enter here'.
- getCurrentNormalizer in interface InputFeed
getState
protected int getState()
performAddDocumentAttribute
protected void performAddDocumentAttribute(String name,
Object attr)
performEndMetaNode
protected void performEndMetaNode()
performSetAttribute
protected void performSetAttribute(String namespace,
String name,
Object attr)
performSetMetaNodeAttribute
protected void performSetMetaNodeAttribute(String name,
Object attr)
performStartDocument
protected void performStartDocument()
performStartElement
protected void performStartElement(String namespace,
String name)
performStartMetaInfo
protected void performStartMetaInfo()
performStartMetaNode
protected void performStartMetaNode()
setAttribute
public final void setAttribute(String namespace,
String name,
Object attr)
- setAttribute in interface InputFeed
setMetaNodeAttribute
public final void setMetaNodeAttribute(String name,
Object attr)
Defines an attribute for the meta-nodes. For each meta node, at least the
'type' attribute (namespace: LibLayout) should be defined.
- setMetaNodeAttribute in interface InputFeed
startDocument
public final void startDocument()
Starts the document processing. This is the first method to call. After
calling this method, the meta-data should be fed into the inputfeed.
- startDocument in interface InputFeed
startMetaInfo
public final void startMetaInfo()
Signals, that meta-data follows. Calling this method is only valid directly
after startDocument has been called.
- startMetaInfo in interface InputFeed
startMetaNode
public void startMetaNode()
Starts a new meta-node structure. Meta-Nodes are used to hold content that
can appear more than once (like stylesheet declarations).
For now, only stylesheet declarations are defined as meta-node content;
more content types will surely arise in the future.
Calling this method is only valid after 'startMetaInfo' has been called.
- startMetaNode in interface InputFeed