Package ro.sync.contentcompletion.xml
Class WhatElementsCanGoHereContext
- java.lang.Object
-
- ro.sync.contentcompletion.xml.Context
-
- ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext
-
- All Implemented Interfaces:
java.lang.Cloneable
@API(type=EXTENDABLE, src=PRIVATE) public class WhatElementsCanGoHereContext extends Context
It is used to determine the elements that can be inserted in the current context.
-
-
Field Summary
Fields Modifier and Type Field Description protected ro.sync.document.SyntaxDocumentBase
doc
The syntax document.protected int
positionInDoc
Position in document.-
Fields inherited from class ro.sync.contentcompletion.xml.Context
elementStack, idValuesList, infoProvider, nextSiblingElements, prefixNamespaceMapping, previousSiblingElements, xmlReader
-
-
Constructor Summary
Constructors Constructor Description WhatElementsCanGoHereContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
boolean
equals(java.lang.Object obj)
ro.sync.document.SyntaxDocumentBase
getDoc()
Get the current document.int
getPositionInDoc()
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
-
-
-
-
Method Detail
-
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
public java.lang.Object clone()
- Overrides:
clone
in classContext
- See Also:
Context.clone()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classContext
- See Also:
Context.equals(java.lang.Object)
-
-