public class YamlStrWriter extends XmlWriter
DEFAULT_SIZE_MSG_Q, DEFAULT_SIZE_SYSTEM_MSG_Q, GETNAME_DEFAULT, GETNAME_LOCALPART_ID, GETNAME_NOROLENAME, GETNAME_ROLENAME_OR_CLASSNAME, GETNAME_ROLENAMESEP_, GETNAME_SIZE_TEMPLATE, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx, XHOLON_ID_DEFAULT, XHOLON_ID_NULL
Constructor and Description |
---|
YamlStrWriter()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
createNew(java.lang.Object out)
Create a new instance of an XML writer, able to write to out.
|
void |
flush()
Write any cached data to the underlying output mechanism.
|
java.lang.String |
getIndentCharacters() |
java.lang.String |
getWriterName()
Gets the name of the XmlWriter.
|
void |
setIndentCharacters(java.lang.String indentCharacters) |
void |
writeAttribute(java.lang.String name,
java.lang.String value)
Writes an attribute to the output stream.
|
void |
writeComment(java.lang.String data)
Writes an xml comment.
|
void |
writeEndDocument()
Closes any start tags and writes corresponding end tags.
|
void |
writeEndElement(java.lang.String name)
Writes an end tag to the output.
|
void |
writeEndElement(java.lang.String name,
java.lang.String namespaceURI)
Writes an end tag to the output.
|
void |
writeNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
Writes a namespace to the output stream.
|
void |
writeStartDocument()
Write the XML Declaration.
|
void |
writeStartElement(java.lang.String name)
Writes a start tag to the output.
|
void |
writeStartElement(java.lang.String prefix,
java.lang.String localName,
java.lang.String namespaceURI)
Writes a start tag to the output
|
void |
writeText(java.lang.String text)
Write text to the output.
|
isShouldWriteAllPorts, isShouldWriteVal, setShouldWriteAllPorts, setShouldWriteVal
act, actNr, appendChild, appendChild, appendChild, appendsOwnChildren, bindPorts, cleanup, compareTo, configure, configure, consoleLog, decVal, decVal, depth, doAction, equals, findFirstChildWithXhClass, findFirstChildWithXhClass, forwardMessage, forwardSyncMessage, getActionList, getAllPorts, getAnnotation, getApp, getAttributeNodeXh, getAttributeXh, getChildNodes, getClassNode, getClassNode, getFactory, getFirstChild, getFirstSibling, getId, getInteraction, getInteractionsEnabled, getIQueueImplName, getLastChild, getLastSibling, getLogger, getMsgQ, getName, getName, getNeighbors, getNextSibling, getNthChild, getNthSibling, getNumChildren, getNumLevels, getNumSiblings, getParentNode, getPort, getPort, getPreviousSibling, getRoleName, getRootNode, getSelfAndSiblings, getSelfAndSiblingsIndex, getService, getSiblings, getSystemMsgQ, getUid, getUri, getVal_boolean, getVal_byte, getVal_char, getVal_double, getVal_float, getVal_int, getVal_long, getVal_Object, getVal_short, getVal_String, getVal, getXhc, getXhcId, getXhcName, getXholon2Xml, getXhType, getXml2Xholon, getXPath, handleNodeSelection, handleNodeSelection, hasAncestor, hasAnnotation, hasAttributeXh, hasChildNodes, hasChildOrSiblingNodes, hasNextSibling, hasParentNode, hasSiblingNodes, height, incVal, incVal, initialize, initStatics, inOrderPrint, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertFirstChild, isActiveObject, isAttributeHandler, isBound, isContainer, isExternal, isInternal, isLeaf, isPassiveObject, isRootNode, isUniqueSibling, isUniqueSiblingRoleName, performActivity, performActivity, performBooleanActivity, performBooleanActivity, performDoubleActivity, performGuard, performVoidActivity, postAct, postConfigure, postOrderPrint, postReconfigure, preAct, preConfigure, preOrderPrint, preReconfigure, print, println, processMessageQ, processReceivedMessage, processReceivedSyncMessage, processSystemMessageQ, reconfigure, registerMessageForwardee, remove, removeAttributeNodeXh, removeAttributeXh, removeChild, replaceNode, searchForReferencingNodes, searchForReferencingNodesRecurse, sendMessage, sendMessage, sendMessage, sendSyncMessage, sendSyncMessage, sendSyncMessage, sendSystemMessage, sendSystemMessage, setActionList, setAnnotation, setApp, setAttributeNodeXh, setAttributeVal, setAttributeXh, setFirstChild, setId, setName, setNextSibling, setParentChildLinks, setParentNode, setParentSiblingLinks, setPort, setPort, setPorts, setRoleName, setUid, setUri, setVal_boolean, setVal_byte, setVal_char, setVal_double, setVal_float, setVal_int, setVal_long, setVal_Object, setVal_short, setVal_String, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setVal, setXhc, showAnnotation, swapNode, terminate, toString, toXml, toXmlAttribute, toXmlAttributes, toXmlText, treeSize, visit
public void createNew(java.lang.Object out)
IXmlWriter
createNew
in interface IXmlWriter
createNew
in class XmlWriter
out
- An output file, stream, string, or other type of writer.
This must be an instance of java.io.Writer.public void writeStartDocument()
IXmlWriter
writeStartDocument
in interface IXmlWriter
writeStartDocument
in class XmlWriter
public void writeEndDocument()
IXmlWriter
writeEndDocument
in interface IXmlWriter
writeEndDocument
in class XmlWriter
public void writeStartElement(java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI)
IXmlWriter
writeStartElement
in interface IXmlWriter
writeStartElement
in class XmlWriter
prefix
- the prefix of the tag, may not be nulllocalName
- local name of the tag, may not be nullnamespaceURI
- the uri to bind the prefix to, may not be nullpublic void writeStartElement(java.lang.String name)
IXmlWriter
writeStartElement
in interface IXmlWriter
writeStartElement
in class XmlWriter
public void writeEndElement(java.lang.String name, java.lang.String namespaceURI)
IXmlWriter
writeEndElement
in interface IXmlWriter
writeEndElement
in class XmlWriter
public void writeEndElement(java.lang.String name)
IXmlWriter
writeEndElement
in interface IXmlWriter
writeEndElement
in class XmlWriter
public void writeNamespace(java.lang.String prefix, java.lang.String namespaceURI)
IXmlWriter
writeNamespace
in interface IXmlWriter
writeNamespace
in class XmlWriter
prefix
- the prefix to bind this namespace tonamespaceURI
- the uri to bind the prefix topublic void writeAttribute(java.lang.String name, java.lang.String value)
IXmlWriter
writeAttribute
in interface IXmlWriter
writeAttribute
in class XmlWriter
public void writeText(java.lang.String text)
IXmlWriter
writeText
in interface IXmlWriter
writeText
in class XmlWriter
public void writeComment(java.lang.String data)
IXmlWriter
writeComment
in interface IXmlWriter
writeComment
in class XmlWriter
public java.lang.String getWriterName()
IXmlWriter
getWriterName
in interface IXmlWriter
getWriterName
in class XmlWriter
public void flush()
IXmlWriter
flush
in interface IXmlWriter
flush
in class XmlWriter
public java.lang.String getIndentCharacters()
public void setIndentCharacters(java.lang.String indentCharacters)