public class DefaultDocumentContext extends DefaultDocumentMetaNode implements DocumentContext
BASE_RESOURCE_ATTR, DATE_ATTR, INITIAL_STYLE, LOCALIZATION_ATTR, RESOURCE_MANAGER_ATTR, STRICT_STYLE_MODE, STYLE_MATCHER_ATTR, STYLE_RESOLVER_ATTR, TITLE_ATTR
Constructor and Description |
---|
DefaultDocumentContext() |
Modifier and Type | Method and Description |
---|---|
void |
addMetaNode(DocumentMetaNode node) |
void |
closeQuote() |
CSSValue |
getCounterPolicy(java.lang.String name)
Returns the counter policy for this counter.
|
CounterStyle |
getCounterStyle(java.lang.String counterName)
Looks up a global counter style.
|
DocumentMetaNode |
getMetaNode(int index) |
int |
getMetaNodeCount() |
NamespaceCollection |
getNamespaces()
The namespace collection is not available until initialize() has been called
by the input-feed.
|
int |
getQuoteLevel() |
ResourceManager |
getResourceManager() |
CSSValue |
getStringPolicy(java.lang.String name)
Returns the string policy for this named string.
|
void |
initialize()
This method is called once after the input-feed received all the document
meta-data.
|
void |
openQuote() |
void |
removeMetaNode(DocumentMetaNode node) |
void |
setCounterPolicy(java.lang.String name,
CSSValue policy) |
void |
setCounterStyle(java.lang.String counterName,
CounterStyle style)
Defines a global counter style.
|
void |
setStringPolicy(java.lang.String name,
CSSValue policy) |
getMetaAttribute, setMetaAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaAttribute, setMetaAttribute
public CSSValue getStringPolicy(java.lang.String name)
DocumentContext
getStringPolicy
in interface DocumentContext
public void setStringPolicy(java.lang.String name, CSSValue policy)
setStringPolicy
in interface DocumentContext
public CSSValue getCounterPolicy(java.lang.String name)
DocumentContext
getCounterPolicy
in interface DocumentContext
public void setCounterPolicy(java.lang.String name, CSSValue policy)
setCounterPolicy
in interface DocumentContext
public void addMetaNode(DocumentMetaNode node)
addMetaNode
in interface DocumentContext
public void removeMetaNode(DocumentMetaNode node)
removeMetaNode
in interface DocumentContext
public DocumentMetaNode getMetaNode(int index)
getMetaNode
in interface DocumentContext
public int getMetaNodeCount()
getMetaNodeCount
in interface DocumentContext
public ResourceManager getResourceManager()
getResourceManager
in interface DocumentContext
public void setCounterStyle(java.lang.String counterName, CounterStyle style)
DocumentContext
setCounterStyle
in interface DocumentContext
public CounterStyle getCounterStyle(java.lang.String counterName)
DocumentContext
getCounterStyle
in interface DocumentContext
counterName
- the name of the counter, for which we search the style.public void initialize()
initialize
in interface DocumentContext
public NamespaceCollection getNamespaces()
DocumentContext
getNamespaces
in interface DocumentContext
public int getQuoteLevel()
public void openQuote()
public void closeQuote()