public class TCDLTag extends Object
Constructor and Description |
---|
TCDLTag(String name) |
TCDLTag(String name,
Map attributes) |
TCDLTag(String name,
Map attributes,
String contents) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(TCDLTag child) |
ArrayList |
children() |
int |
depth() |
int |
endIndex() |
int |
endTagEndIndex() |
int |
endTagStartIndex() |
HashMap |
getAttributes() |
String |
getContents() |
String |
getName() |
boolean |
hasChildren() |
void |
hasChildren(boolean hasChildrenValue) |
boolean |
hasParent() |
boolean |
isClosedTag() |
void |
isClosedTag(boolean closedTag) |
boolean |
isStartTag() |
void |
isStartTag(boolean startTag) |
TCDLTag |
matchingTag() |
TCDLTag |
parent() |
void |
setAttributes(HashMap attributes) |
void |
setChildren(ArrayList childrenToSet) |
void |
setContents(String contents) |
void |
setDepth(int depth) |
void |
setEndIndex(int endIndex)
Sets the index at which the tag ends in the item being processed.
|
void |
setEndTagEndIndex(int endTagEndIndex)
Sets the index at which the End tag of a tag pair ends.
|
void |
setEndTagStartIndex(int endTagStartIndex)
Sets the index at which the End tag of a tag pair starts.
|
void |
setMatchingTag(TCDLTag matchingTag) |
void |
setParent(TCDLTag parent) |
void |
setStartIndex(int startIndex)
Sets the index at which the tag starts in the item being processed.
|
void |
setStartTagEndIndex(int startTagEndIndex)
Sets the index at which the Start tag of a tag pair ends.
|
void |
setStartTagStartIndex(int startTagStartIndex)
Sets the index at which the Start tag of a tag pair starts.
|
int |
startIndex() |
int |
startTagEndIndex() |
int |
startTagStartIndex() |
String |
toString() |
public TCDLTag(String name)
public void addChild(TCDLTag child)
public ArrayList children()
public int depth()
public int endIndex()
public int endTagEndIndex()
public int endTagStartIndex()
public boolean hasChildren()
public void hasChildren(boolean hasChildrenValue)
public boolean hasParent()
public void isClosedTag(boolean closedTag)
public void isStartTag(boolean startTag)
public TCDLTag matchingTag()
public TCDLTag parent()
public void setChildren(ArrayList childrenToSet)
public void setDepth(int depth)
public void setEndIndex(int endIndex)
isStartTag()
and isClosedTag()
property before setting this property.endIndex
- The index in the input buffer where this tag ends.public void setEndTagEndIndex(int endTagEndIndex)
endTagEndIndex
- The index at which this tag ends.public void setEndTagStartIndex(int endTagStartIndex)
endTagStartIndex
- The index at which this tag startspublic void setMatchingTag(TCDLTag matchingTag)
public void setParent(TCDLTag parent)
public void setStartIndex(int startIndex)
isStartTag()
property before
setting this property!!!startIndex
- The index in the input buffer where this tag starts..public void setStartTagEndIndex(int startTagEndIndex)
startTagEndIndex
- The index at which this tag ends.public void setStartTagStartIndex(int startTagStartIndex)
startTagStartIndex
- The index at which this tag starts.public int startIndex()
public int startTagEndIndex()
public int startTagStartIndex()
public HashMap getAttributes()
public void setAttributes(HashMap attributes)
public String getContents()
public void setContents(String contents)
public String getName()
public boolean isClosedTag()
public boolean isStartTag()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries