public class XMLTag extends Object implements ContentProducer
XMLTag class.
| Constructor and Description |
|---|
XMLTag(Style style,
Map variables)
Constructor for XMLTag.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String nameSpace,
String localName,
String value)
addAttribute.
|
void |
addXMLAttribute(String localName,
String value)
addXMLAttribute.
|
void |
close()
close.
|
boolean |
isPreserveSpaces()
isPreserveSpaces.
|
void |
setLocalName(String localName)
Setter for the field
localName. |
void |
setNameSpace(String nameSpace)
setNameSpace.
|
void |
setPreserveSpaces(boolean preserveSpaces)
Setter for the field
preserveSpaces. |
void |
write(Writer out)
Writes the content to out
|
public void write(Writer out) throws IOException
write in interface ContentProducerout - a Writer object.IOException - if any.public void addAttribute(String nameSpace, String localName, String value)
addAttribute.
public void setLocalName(String localName)
Setter for the field localName.
localName - The localName to set.public void setNameSpace(String nameSpace)
setNameSpace.
nameSpace - The nameSpace to set.public void close()
close.
public boolean isPreserveSpaces()
isPreserveSpaces.
public void setPreserveSpaces(boolean preserveSpaces)
Setter for the field preserveSpaces.
preserveSpaces - The preserveSpaces to set.Copyright © 2017. All rights reserved.