|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.doxia.sink.AbstractSink org.apache.maven.doxia.sink.SinkAdapter org.apache.maven.doxia.sink.AbstractXmlSink
public abstract class AbstractXmlSink
An abstract Sink
for xml markup syntax.
Field Summary |
---|
Fields inherited from interface org.apache.maven.doxia.markup.XmlMarkup |
---|
BANG, CDATA, DOCTYPE_START, ENTITY_START, XML_NAMESPACE |
Fields inherited from interface org.apache.maven.doxia.markup.Markup |
---|
COLON, EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SEMICOLON, SLASH, SPACE, STAR |
Fields inherited from interface org.apache.maven.doxia.sink.Sink |
---|
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, ROLE, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5 |
Constructor Summary | |
---|---|
AbstractXmlSink()
|
Method Summary | |
---|---|
String |
getNameSpace()
Return the default namespace that is prepended to all tags written by this sink. |
void |
setNameSpace(String ns)
Sets the default namespace that is prepended to all tags written by this sink. |
protected abstract void |
write(String text)
Write a text to the sink. |
protected void |
writeEndTag(HTML.Tag t)
Ends a Tag without writing an EOL. |
protected void |
writeEOL()
Writes a system EOL. |
protected void |
writeSimpleTag(HTML.Tag t)
Starts a simple Tag. |
protected void |
writeSimpleTag(HTML.Tag t,
MutableAttributeSet att)
Starts a simple Tag with attributes. |
protected void |
writeStartTag(HTML.Tag t)
Starts a Tag. |
protected void |
writeStartTag(HTML.Tag t,
MutableAttributeSet att)
Starts a Tag with attributes. |
protected void |
writeStartTag(HTML.Tag t,
MutableAttributeSet att,
boolean isSimpleTag)
Starts a Tag with attributes. |
Methods inherited from class org.apache.maven.doxia.sink.AbstractSink |
---|
enableLogging, getLog, init, unifyEOLs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractXmlSink()
Method Detail |
---|
public void setNameSpace(String ns)
ns
- the default namespace.public String getNameSpace()
protected void writeStartTag(HTML.Tag t)
<tag>
t
- a non null tagwriteStartTag(javax.swing.text.html.HTML.Tag, javax.swing.text.MutableAttributeSet)
protected void writeStartTag(HTML.Tag t, MutableAttributeSet att)
<tag attName="attValue">
t
- a non null tag.att
- a set of attributes. May be null.writeStartTag(javax.swing.text.html.HTML.Tag, javax.swing.text.MutableAttributeSet, boolean).
protected void writeStartTag(HTML.Tag t, MutableAttributeSet att, boolean isSimpleTag)
<tag attName="attValue">
t
- a non null tag.att
- a set of attributes. May be null.isSimpleTag
- boolean to write as a simple tag.protected void writeEOL()
protected void writeEndTag(HTML.Tag t)
</tag>.
t
- a tag.protected void writeSimpleTag(HTML.Tag t)
<tag />
t
- a non null tagwriteSimpleTag(javax.swing.text.html.HTML.Tag, javax.swing.text.MutableAttributeSet)
protected void writeSimpleTag(HTML.Tag t, MutableAttributeSet att)
<tag attName="attValue" />
t
- a non null tag.att
- a set of attributes. May be null.writeStartTag(javax.swing.text.html.HTML.Tag, javax.swing.text.MutableAttributeSet, boolean).
protected abstract void write(String text)
text
- the given text to write
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |