Class AbstractFormattedNode
- java.lang.Object
-
- com._1c.g5.modeling.xml.parser.nodemodel.AbstractNode
-
- com._1c.g5.modeling.xml.parser.nodemodel.AbstractFormattedNode
-
- All Implemented Interfaces:
ILocatable
,INode
- Direct Known Subclasses:
AttributeNode
,NamespaceNode
,NonContainmentReferenceNode
public abstract class AbstractFormattedNode extends AbstractNode
Узел parse-tree для пар ключ:значение. Хранит информацию о форматировании и позициях этих пар
-
-
Field Summary
Fields Modifier and Type Field Description protected String
leftNameWS
protected String
leftValueWS
protected Location
nameLocation
protected String
rightNameWS
protected String
rightValueWS
protected Location
valueLocation
-
Fields inherited from class com._1c.g5.modeling.xml.parser.nodemodel.AbstractNode
children, location, parent, textValue
-
-
Constructor Summary
Constructors Constructor Description AbstractFormattedNode(INode parent, Location location)
AbstractFormattedNode(INode parent, Location nameLocation, Location valueLocation)
AbstractFormattedNode(Location location)
AbstractFormattedNode(Location nameLocation, Location valueLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location
getAttributeNameLocation()
Location
getAttributeValueLocation()
String
getLeftNameWS()
String
getLeftValueWS()
Location
getLocation()
Метод для получения информации о позиции узлаLocation
getNameLocation()
String
getRightNameWS()
String
getRightValueWS()
Location
getValueLocation()
void
setLeftNameWS(String leftNameWS)
void
setLeftValueWS(String leftValueWS)
void
setLocation(Location location)
Выбрасывает исключение UnsupportedOperationExceptionvoid
setNameLocation(Location namelocation)
void
setRightNameWS(String rightNameWS)
void
setRightValueWS(String rightValueWS)
void
setValueLocation(Location valuelocation)
void
setWhiteSpaces(String leftNameWS, String rightNameWS, String leftValueWS, String rightValueWS)
-
Methods inherited from class com._1c.g5.modeling.xml.parser.nodemodel.AbstractNode
getChildren, getNextSibling, getParent, getPreviousSibling, getTextValue, hasChildren, hasNextSibling, hasPreviousSibling, setParent, setTextValue
-
-
-
-
Method Detail
-
getLocation
public Location getLocation()
Description copied from interface:INode
Метод для получения информации о позиции узла- Specified by:
getLocation
in interfaceILocatable
- Specified by:
getLocation
in interfaceINode
- Overrides:
getLocation
in classAbstractNode
- Returns:
- информация о позиции
- See Also:
Location
-
setLocation
public void setLocation(Location location)
Выбрасывает исключение UnsupportedOperationException- Specified by:
setLocation
in interfaceILocatable
- Specified by:
setLocation
in interfaceINode
- Overrides:
setLocation
in classAbstractNode
- Throws:
UnsupportedOperationException
-
getAttributeNameLocation
public Location getAttributeNameLocation()
-
getAttributeValueLocation
public Location getAttributeValueLocation()
-
setNameLocation
public void setNameLocation(Location namelocation)
-
setValueLocation
public void setValueLocation(Location valuelocation)
-
getNameLocation
public Location getNameLocation()
-
getValueLocation
public Location getValueLocation()
-
setWhiteSpaces
public void setWhiteSpaces(String leftNameWS, String rightNameWS, String leftValueWS, String rightValueWS)
-
getLeftNameWS
public String getLeftNameWS()
-
setLeftNameWS
public void setLeftNameWS(String leftNameWS)
-
getRightNameWS
public String getRightNameWS()
-
setRightNameWS
public void setRightNameWS(String rightNameWS)
-
getLeftValueWS
public String getLeftValueWS()
-
setLeftValueWS
public void setLeftValueWS(String leftValueWS)
-
getRightValueWS
public String getRightValueWS()
-
setRightValueWS
public void setRightValueWS(String rightValueWS)
-
-