Class MutableXmlNode
java.lang.Object
ch.nolix.base.document.xml.MutableXmlNode
- All Implemented Interfaces:
FluentMutableOptionalNameHolder<IMutableXmlNode>, FluentMutableOptionalValueHolder<IMutableXmlNode, String>, OptionalNameHolder, OptionalValueHolder<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 currentFluentMutableOptionalNameHolder.voidRemoves the value of the currentFluentMutableOptionalValueHolder.Sets the name of the currentFluentMutableOptionalNameHolder.Sets the value of the currentFluentMutableOptionalValueHolder.toString()Methods inherited from interface OptionalNameHolder
getNameInSingleQuotes, 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 interfaceOptionalNameHolder- Returns:
- the name of the current
OptionalNameHolder
-
getStoredChildNodes
- Specified by:
getStoredChildNodesin interfaceIXmlNode<IMutableXmlNode>
-
getStoredValue
- Specified by:
getStoredValuein interfaceOptionalValueHolder<String>- Returns:
- the value of the current
OptionalValueHolder
-
hasMixedContent
public boolean hasMixedContent()- Specified by:
hasMixedContentin interfaceIXmlNode<IMutableXmlNode>
-
hasName
public boolean hasName()- Specified by:
hasNamein interfaceOptionalNameHolder- Returns:
- true if the current
OptionalNameHolderhas a name, false otherwise
-
hasValue
public boolean hasValue()- Specified by:
hasValuein interfaceOptionalValueHolder<String>- Returns:
- true if the current
OptionalValueHoldercontains a value, false otherwise
-
removeAttributes
-
removeChildNodes
-
removeName
public void removeName()Removes the name of the currentFluentMutableOptionalNameHolder.- Specified by:
removeNamein interfaceFluentMutableOptionalNameHolder<IMutableXmlNode>
-
removeValue
public void removeValue()Removes the value of the currentFluentMutableOptionalValueHolder.- Specified by:
removeValuein interfaceFluentMutableOptionalValueHolder<IMutableXmlNode, String>
-
setName
Sets the name of the currentFluentMutableOptionalNameHolder.- Specified by:
setNamein interfaceFluentMutableOptionalNameHolder<IMutableXmlNode>- Parameters:
name-- Returns:
- the current
FluentMutableOptionalNameHolder
-
setValue
Sets the value of the currentFluentMutableOptionalValueHolder.- Specified by:
setValuein interfaceFluentMutableOptionalValueHolder<IMutableXmlNode, String>- Parameters:
value-- Returns:
- the current
FluentMutableOptionalValueHolder
-
toFormatedString
-
toString
-