public class XMLElementSerializationNode extends XMLSerializationNode
XMLSerializationNode.NodeGetter| Modifier and Type | Field and Description |
|---|---|
protected List<XMLAttributeSerializationNode> |
attributes |
protected List<XMLElementSerializationNode> |
elements |
protected static char[] |
INDENT_BUF |
collectionGetter, defaultVal, isCollection, nodeGetter, parent, qName, typeConverter| Constructor and Description |
|---|
XMLElementSerializationNode(QName qName) |
| Modifier and Type | Method and Description |
|---|---|
static XMLSerializationNode |
addAttributeNode(XMLElementSerializationNode elementNode,
org.smooks.api.resource.config.xpath.SelectorStep selectorStep,
boolean create) |
protected Object |
clone() |
XMLSerializationNode |
findNode(org.smooks.api.resource.config.xpath.SelectorPath selectorPath) |
static XMLAttributeSerializationNode |
getAttribute(org.smooks.api.resource.config.xpath.SelectorStep step,
Collection<XMLAttributeSerializationNode> attributeList,
boolean create) |
List<XMLAttributeSerializationNode> |
getAttributes() |
static XMLElementSerializationNode |
getElement(org.smooks.api.resource.config.xpath.SelectorStep step,
Collection<XMLElementSerializationNode> elementList,
boolean create) |
List<XMLElementSerializationNode> |
getElements() |
XMLSerializationNode |
getPathNode(org.smooks.api.resource.config.xpath.SelectorPath selectorPath,
int stepIndex,
boolean create) |
protected boolean |
hasData(SerializationContext context) |
protected void |
indent(Writer outputStream,
SerializationContext context) |
void |
serialize(Writer outputStream,
SerializationContext context) |
protected void |
writeAttributes(Writer outputStream,
SerializationContext context) |
protected void |
writeElements(Writer outputStream,
SerializationContext context) |
copyProperties, getCollectionGetter, getNode, getNodeGetter, getParent, getQName, getValue, setCollectionGetter, setDefaultVal, setGetter, setGetter, setIsCollection, setParent, setTypeConverter, toString, writeNameprotected final List<XMLAttributeSerializationNode> attributes
protected final List<XMLElementSerializationNode> elements
protected static final char[] INDENT_BUF
public XMLElementSerializationNode(QName qName)
public List<XMLAttributeSerializationNode> getAttributes()
public List<XMLElementSerializationNode> getElements()
public void serialize(Writer outputStream, SerializationContext context) throws IOException
serialize in class XMLSerializationNodeIOExceptionprotected void writeAttributes(Writer outputStream, SerializationContext context) throws IOException
IOExceptionprotected void writeElements(Writer outputStream, SerializationContext context) throws IOException
IOExceptionprotected boolean hasData(SerializationContext context)
hasData in class XMLSerializationNodeprotected void indent(Writer outputStream, SerializationContext context) throws IOException
IOExceptionpublic XMLSerializationNode findNode(org.smooks.api.resource.config.xpath.SelectorPath selectorPath)
public XMLSerializationNode getPathNode(org.smooks.api.resource.config.xpath.SelectorPath selectorPath, int stepIndex, boolean create)
public static XMLSerializationNode addAttributeNode(XMLElementSerializationNode elementNode, org.smooks.api.resource.config.xpath.SelectorStep selectorStep, boolean create)
public static XMLElementSerializationNode getElement(org.smooks.api.resource.config.xpath.SelectorStep step, Collection<XMLElementSerializationNode> elementList, boolean create)
public static XMLAttributeSerializationNode getAttribute(org.smooks.api.resource.config.xpath.SelectorStep step, Collection<XMLAttributeSerializationNode> attributeList, boolean create)
Copyright © 2024. All rights reserved.