Class WhatElementsCanGoHereContext

java.lang.Object
ro.sync.contentcompletion.xml.Context
ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext
All Implemented Interfaces:
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 Details

    • positionInDoc

      protected int positionInDoc
      Position in document.
    • doc

      protected ro.sync.document.SyntaxDocumentBase doc
      The 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

      public Object clone()
      Overrides:
      clone in class Context
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Context
      See Also: