Package ro.sync.contentcompletion.xml
Class WhatElementsCanGoHereContext
java.lang.Object
ro.sync.contentcompletion.xml.Context
ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext
- All Implemented Interfaces:
Cloneable
It is used to determine the elements that can be inserted in the current context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ro.sync.document.SyntaxDocumentBase
The syntax document.protected int
Position in document.Fields inherited from class ro.sync.contentcompletion.xml.Context
elementStack, idValuesList, infoProvider, nextSiblingElements, prefixNamespaceMapping, previousSiblingElements, xmlReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
ro.sync.document.SyntaxDocumentBase
getDoc()
Get the current document.int
Gets the position in the document.void
setDoc
(ro.sync.document.SyntaxDocumentBase doc) Set the current document.void
setPositionInDoc
(int positionInDoc) Sets the position in the document.Methods inherited from class ro.sync.contentcompletion.xml.Context
computeContextXPathExpression, executeXPath, executeXPath, getDefaultAttributeValue, getElementStack, getIdValuesList, getNextSiblingElements, getPrefixNamespaceMapping, getPreviousSiblingElements, getProxyNamespaceMapping, getRootAttributes, getSystemID, pushContextElement, setAdditionalContextInformationProvider, setElementStack, setIdValuesList, setNextSiblingElements, setPrefixNamespaceMapping, setPreviousSiblingElements, setXMLReader, toString
-
Field Details
-
positionInDoc
protected int positionInDocPosition in document. -
doc
protected ro.sync.document.SyntaxDocumentBase docThe syntax document.
-
-
Constructor Details
-
WhatElementsCanGoHereContext
public WhatElementsCanGoHereContext()
-
-
Method Details
-
getPositionInDoc
public int getPositionInDoc()Gets the position in the document.- Returns:
- Returns the positionInDoc.
-
setPositionInDoc
public void setPositionInDoc(int positionInDoc) Sets the position in the document.- Parameters:
positionInDoc
- The positionInDoc to set.
-
getDoc
public ro.sync.document.SyntaxDocumentBase getDoc()Get the current document.- Returns:
- Returns the current document.
-
setDoc
public void setDoc(ro.sync.document.SyntaxDocumentBase doc) Set the current document.- Parameters:
doc
- The document to set.
-
clone
-
equals
-