Package org.pentaho.di.core.attributes
Class AttributesUtil
java.lang.Object
org.pentaho.di.core.attributes.AttributesUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringSerialize an attributes group map to XML.static StringSerialize an attributes group map to XML.loadAttributes(Node attributesNode) Load the attribute groups from an XML DOM Node.
-
Field Details
-
XML_TAG
- See Also:
-
XML_TAG_GROUP
- See Also:
-
XML_TAG_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
AttributesUtil
public AttributesUtil()
-
-
Method Details
-
getAttributesXml
Serialize an attributes group map to XML.
The information will be encapsulated in the default tag:
XML_TAG.If a null or empty Map is given, the generated XML will have the default tag (with no content).
Equivalent to:
getAttributesXml( attributesMap, AttributesUtil.XML_TAG )- Parameters:
attributesMap- the attribute groups to serialize- Returns:
- the XML serialized attribute groups
- See Also:
-
getAttributesXml
Serialize an attributes group map to XML.
The information will be encapsulated in the specified tag.
If a null or empty Map is given, the generated XML will have the provided tag (with no content).
- Parameters:
attributesMap- the attribute groups to serializexmlTag- the xml tag to use for the generated xml- Returns:
- the XML serialized attribute groups
- See Also:
-
loadAttributes
Load the attribute groups from an XML DOM Node.
An empty Map will be returned if a null or empty Node is given.
- Parameters:
attributesNode- the attributes node to read from- Returns:
- the Map with the attribute groups
-