public class DocumentRootShallowEntity extends ShallowEntity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOCUMENT_ROOT_SUBTYPE_NAME
Subtype name for the document root entity.
|
completed
Constructor and Description |
---|
DocumentRootShallowEntity(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasValidStartToken()
Returns whether the entity has a valid start token.
|
void |
setChildren(java.util.List<ShallowEntity> children)
Sets the children for this document root.
|
java.lang.String |
toString()
Returns the toString() results of the root entity's children.
|
addChild, collapseEmptyEntities, collapseEmptyEntities, deepCloneWithoutCloningTokens, filterTokens, getAllTokens, getChildren, getChildrenOfType, getCompleteEntityCount, getEndLine, getEndOffset, getEndTokenIndex, getEntityCount, getName, getParent, getRelativeEndTokenIndex, getRelativeStartTokenIndex, getStartLine, getStartOffset, getStartTokenIndex, getSubtype, getType, hasChildren, includedTokens, isCompleted, isContinued, isEmpty, ownEndTokens, ownStartTokens, ownTokens, setComplete, setEndTokenIndex, toLocalString, traverse, traverse
public static final java.lang.String DOCUMENT_ROOT_SUBTYPE_NAME
public DocumentRootShallowEntity(java.lang.String name)
public void setChildren(java.util.List<ShallowEntity> children)
public java.lang.String toString()
toString
in class ShallowEntity
public boolean hasValidStartToken()
ShallowEntity
hasValidStartToken
in class ShallowEntity