Package org.ametys.core.util.dom
Class StringElement
- java.lang.Object
-
- org.ametys.core.util.dom.AbstractAmetysNode
-
- org.ametys.core.util.dom.AbstractAmetysElement
-
- org.ametys.core.util.dom.StringElement
-
public class StringElement extends AbstractAmetysElement
DOM Layer over a tag name, attributes and String value.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,String>
_attributes
private String
_data
-
Fields inherited from class org.ametys.core.util.dom.AbstractAmetysElement
_parent
-
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Constructor Summary
Constructors Constructor Description StringElement(String tagName, String data)
Create a string elementStringElement(String tagName, String attributeName, String attributeValue)
Create a string elementStringElement(String tagName, String attributeName, String attributeValue, String data)
Create a string elementStringElement(String tagName, String attributeName, String attributeValue, String data, Element parent)
Create a string elementStringElement(String tagName, String attributeName, String attributeValue, Element parent)
Create a string elementStringElement(String tagName, String data, Element parent)
Create a string elementStringElement(String tagName, Map<String,String> attributes)
Create a string elementStringElement(String tagName, Map<String,String> attributes, String data)
Create a string elementStringElement(String tagName, Map<String,String> attributes, String data, Element parent)
Create a string elementStringElement(String tagName, Map<String,String> attributes, Element parent)
Create a string element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,AmetysAttribute>
_lookupAttributes()
Returns a Map<name, value> corresponding to the attributes.Node
getFirstChild()
-
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysElement
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNodeName, getNodeType, getParentNode, getSchemaTypeInfo, getTagName, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
-
Methods inherited from class org.ametys.core.util.dom.AbstractAmetysNode
_getChildNodes, appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
StringElement
public StringElement(String tagName, String data)
Create a string element- Parameters:
tagName
- The tag namedata
- The data value.
-
StringElement
public StringElement(String tagName, String attributeName, String attributeValue)
Create a string element- Parameters:
tagName
- The tag nameattributeName
- The attribute name.attributeValue
- The attribute value.
-
StringElement
public StringElement(String tagName, String attributeName, String attributeValue, String data)
Create a string element- Parameters:
tagName
- The tag nameattributeName
- The attribute with the value.attributeValue
- The attribute value.data
- The data value.
-
StringElement
public StringElement(String tagName, Map<String,String> attributes)
Create a string element- Parameters:
attributes
- The attributes names and values.tagName
- The tag name.
-
StringElement
public StringElement(String tagName, Map<String,String> attributes, String data)
Create a string element- Parameters:
tagName
- The tag nameattributes
- The attributes names and values.data
- The data value.
-
StringElement
public StringElement(String tagName, String data, Element parent)
Create a string element- Parameters:
tagName
- The tag namedata
- The data value.parent
- the parentElement
.
-
StringElement
public StringElement(String tagName, String attributeName, String attributeValue, Element parent)
Create a string element- Parameters:
tagName
- The tag nameattributeName
- The attribute name.attributeValue
- The attribute value.parent
- the parentElement
.
-
StringElement
public StringElement(String tagName, String attributeName, String attributeValue, String data, Element parent)
Create a string element- Parameters:
tagName
- The tag nameattributeName
- The attribute with the value.attributeValue
- The attribute value.data
- The data value.parent
- the parentElement
.
-
StringElement
public StringElement(String tagName, Map<String,String> attributes, Element parent)
Create a string element- Parameters:
attributes
- The attributes names and values.tagName
- The tag name.parent
- the parentElement
.
-
-
Method Detail
-
_lookupAttributes
protected Map<String,AmetysAttribute> _lookupAttributes()
Description copied from class:AbstractAmetysElement
Returns a Map<name, value> corresponding to the attributes.- Specified by:
_lookupAttributes
in classAbstractAmetysElement
- Returns:
- the name/value pairs
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild
in interfaceNode
- Overrides:
getFirstChild
in classAbstractAmetysNode
-
-