Package javaforce
Class XML.XMLTag
java.lang.Object
javaforce.XML.XMLTag
- Enclosing class:
- XML
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanTag is a singleton -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTag(XML.XMLTag tag) voidaddTag(XML.XMLTag tag, int at) Returns value of argument.getChildAt(int index) Returns the child tag at index.intReturns the content of this node.getName()Returns a unique name for this node.Returns the parent of the tag.booleanisLeaf()Returns true if the node is a leaf.voidremoveTag(int idx) voidremoveTag(XML.XMLTag tag) voidSets argument to value.voidsetContent(String newContent) Sets content.voidSets the name for this node.toString()Returns the unique name of the tag.
-
Field Details
-
name
-
attrs
-
-
parent
-
children
-
isSingle
public boolean isSingleTag is a singleton -
isNotLeaf
public boolean isNotLeaf -
isLeaf
public boolean isLeaf -
isReadOnly
public boolean isReadOnly
-
-
Constructor Details
-
XMLTag
public XMLTag()Constructs a new XMLTag
-
-
Method Details
-
toString
Returns the unique name of the tag. -
getParent
Returns the parent of the tag. This method just overrides the default method but returns XMLTag. -
getChildCount
public int getChildCount() -
addTag
-
addTag
-
removeTag
-
removeTag
public void removeTag(int idx) -
isLeaf
public boolean isLeaf()Returns true if the node is a leaf. This method just overrides the default method and allows better leaf control. -
getName
Returns a unique name for this node. -
setName
Sets the name for this node. -
getChildAt
Returns the child tag at index. This method just overrides the default method but returns XMLTag. -
getChildren
-
getArg
Returns value of argument. -
setArg
Sets argument to value. -
getContent
Returns the content of this node. -
setContent
Sets content.
-