Class MutableXmlNode
java.lang.Object
ch.nolix.base.document.xml.MutableXmlNode
- All Implemented Interfaces:
IFluentMutableOptionalNameHolder<IMutableXmlNode>, IFluentMutableOptionalValueHolder<IMutableXmlNode, String>, IOptionalNameHolder, IOptionalValueHolder<String>, IMutableXmlNode, IXmlNode<IMutableXmlNode>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute(IXmlAttribute attribute) addAttributes(IXmlAttribute... attributes) addAttributes(Iterable<IXmlAttribute> attributes) addAttributeWithNameAndValue(String name, String value) addChildNode(IMutableXmlNode childNode) addChildNodes(IMutableXmlNode... childNodes) addChildNodes(Iterable<IMutableXmlNode> childNodes) booleanbooleanstatic MutableXmlNodestatic MutableXmlNodefromXmlNode(IXmlNode<?> pXmlNode) intintgetName()booleanbooleanhasName()booleanhasValue()voidRemoves the name of the currentIFluentMutableOptionalNameHolder.voidRemoves the value of the currentIFluentMutableOptionalValueHolder.Sets the name of the currentIFluentMutableOptionalNameHolder.Sets the value of the currentIFluentMutableOptionalValueHolder.toString()Methods inherited from interface IOptionalNameHolder
getNameInQuotes, hasName
-
Method Details
-
createBlankMutableXmlNode
-
fromXmlNode
-
addAttribute
- Specified by:
addAttributein interfaceIMutableXmlNode
-
addAttributes
- Specified by:
addAttributesin interfaceIMutableXmlNode
-
addAttributes
- Specified by:
addAttributesin interfaceIMutableXmlNode
-
addAttributeWithNameAndValue
- Specified by:
addAttributeWithNameAndValuein interfaceIMutableXmlNode
-
addChildNode
- Specified by:
addChildNodein interfaceIMutableXmlNode
-
addChildNodes
- Specified by:
addChildNodesin interfaceIMutableXmlNode
-
addChildNodes
- Specified by:
addChildNodesin interfaceIMutableXmlNode
-
containsAttributes
public boolean containsAttributes()- Specified by:
containsAttributesin interfaceIXmlNode<IMutableXmlNode>
-
containsChildNodes
public boolean containsChildNodes()- Specified by:
containsChildNodesin interfaceIXmlNode<IMutableXmlNode>
-
getAttributes
- Specified by:
getAttributesin interfaceIXmlNode<IMutableXmlNode>
-
getAttributeCount
public int getAttributeCount() -
getChildNodeCount
public int getChildNodeCount() -
getName
- Specified by:
getNamein interfaceIOptionalNameHolder- Returns:
- the name of the current
IOptionalNameHolder.
-
getStoredChildNodes
- Specified by:
getStoredChildNodesin interfaceIXmlNode<IMutableXmlNode>
-
getStoredValue
- Specified by:
getStoredValuein interfaceIOptionalValueHolder<String>- Returns:
- the value of the current
IOptionalValueHolder.
-
hasMixedContent
public boolean hasMixedContent()- Specified by:
hasMixedContentin interfaceIXmlNode<IMutableXmlNode>
-
hasName
public boolean hasName()- Specified by:
hasNamein interfaceIOptionalNameHolder- Returns:
- true if the current
IOptionalNameHolderhas a name, false otherwise.
-
hasValue
public boolean hasValue()- Specified by:
hasValuein interfaceIOptionalValueHolder<String>- Returns:
- true if the current
IOptionalValueHoldercontains a value, false otherwise.
-
removeAttributes
-
removeChildNodes
-
removeName
public void removeName()Removes the name of the currentIFluentMutableOptionalNameHolder.- Specified by:
removeNamein interfaceIFluentMutableOptionalNameHolder<IMutableXmlNode>
-
removeValue
public void removeValue()Removes the value of the currentIFluentMutableOptionalValueHolder.- Specified by:
removeValuein interfaceIFluentMutableOptionalValueHolder<IMutableXmlNode, String>
-
setName
Sets the name of the currentIFluentMutableOptionalNameHolder.- Specified by:
setNamein interfaceIFluentMutableOptionalNameHolder<IMutableXmlNode>- Parameters:
name-- Returns:
- the current
IFluentMutableOptionalNameHolder.
-
setValue
Sets the value of the currentIFluentMutableOptionalValueHolder.- Specified by:
setValuein interfaceIFluentMutableOptionalValueHolder<IMutableXmlNode, String>- Parameters:
value-- Returns:
- the current
IFluentMutableOptionalValueHolder.
-
toFormatedString
-
toString
-