Class AbstractNode
- java.lang.Object
-
- com._1c.g5.modeling.xml.parser.nodemodel.AbstractNode
-
- All Implemented Interfaces:
ILocatable
,INode
- Direct Known Subclasses:
AbstractFormattedNode
,ContainmentReferenceNode
,DocumentRoot
,ErrorNode
,TextNode
public abstract class AbstractNode extends Object implements INode
Реализация служебных методов узела parse-tree.
-
-
Constructor Summary
Constructors Constructor Description AbstractNode()
AbstractNode(INode parent, Location location)
AbstractNode(Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<INode>
getChildren()
Location
getLocation()
Метод для получения информации о позиции узлаINode
getNextSibling()
INode
getParent()
INode
getPreviousSibling()
String
getTextValue()
Исходное текстовое представление узла или whitespacesboolean
hasChildren()
boolean
hasNextSibling()
boolean
hasPreviousSibling()
void
setLocation(Location location)
void
setParent(INode parent)
void
setTextValue(String textValue)
-
-
-
Method Detail
-
hasChildren
public boolean hasChildren()
- Specified by:
hasChildren
in interfaceINode
-
getChildren
public List<INode> getChildren()
- Specified by:
getChildren
in interfaceINode
-
setTextValue
public void setTextValue(String textValue)
- Specified by:
setTextValue
in interfaceINode
-
getTextValue
public String getTextValue()
Description copied from interface:INode
Исходное текстовое представление узла или whitespaces- Specified by:
getTextValue
in interfaceINode
- Returns:
-
getLocation
public Location getLocation()
Description copied from interface:INode
Метод для получения информации о позиции узла- Specified by:
getLocation
in interfaceILocatable
- Specified by:
getLocation
in interfaceINode
- Returns:
- информация о позиции
- See Also:
Location
-
setLocation
public void setLocation(Location location)
- Specified by:
setLocation
in interfaceILocatable
- Specified by:
setLocation
in interfaceINode
-
hasNextSibling
public boolean hasNextSibling()
- Specified by:
hasNextSibling
in interfaceINode
-
getNextSibling
public INode getNextSibling()
- Specified by:
getNextSibling
in interfaceINode
-
hasPreviousSibling
public boolean hasPreviousSibling()
- Specified by:
hasPreviousSibling
in interfaceINode
-
getPreviousSibling
public INode getPreviousSibling()
- Specified by:
getPreviousSibling
in interfaceINode
-
-