@API(type=EXTENDABLE, src=PUBLIC) public abstract class WSTextXMLSchemaManager extends java.lang.Object
Constructor and Description |
---|
WSTextXMLSchemaManager() |
Modifier and Type | Method and Description |
---|---|
abstract ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext |
createWhatAttributesCanGoHereContext(int offset)
Create a context for the given element that can be used to obtain the list with attributes that element accepts.
|
abstract ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext |
createWhatElementsCanGoHereContext(int offset)
Create an element context for the given offset.
|
abstract ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext |
createWhatPossibleValuesHasAttributeContext(int offset)
Create an attribute values context for the given element and attribute name.
|
abstract ro.sync.contentcompletion.xml.CIAttribute |
getAttributeDescription(ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext ctxt)
Get the description of an attribute.
|
abstract java.util.List<ro.sync.contentcompletion.xml.CIElement> |
getChildrenElements(ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext context)
Get the elements that can be children of the element for
which the context was built.
|
abstract ro.sync.contentcompletion.xml.CIElement |
getElementDescription(ro.sync.contentcompletion.xml.Context ctxt)
Get the description of an element.
|
abstract java.util.List<ro.sync.contentcompletion.xml.NameValue> |
getEntities()
Gets the context-independent list of entities declared in the document's
DOCTYPE declaration.
|
abstract java.util.List<ro.sync.contentcompletion.xml.CIElement> |
getGlobalElements()
Get all the names of global elements defined in the associated grammar.
|
abstract java.net.URL[] |
getGrammarURLs()
Get the array of URLs of the loaded DTD or XML Schema.
|
abstract boolean |
hasLoadingErrors() |
abstract boolean |
isElementDescriptionSupported()
If true the element description(model) support is available, otherwise not.
|
abstract boolean |
isLearnSchema() |
abstract java.util.List<ro.sync.contentcompletion.xml.CIAttribute> |
whatAttributesCanGoHere(ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext whatAttributesCanGoHereContext)
Examines the grammar and decides what attributes can be inserted in the
parent element, after the list of attributes names.
|
abstract java.util.List<ro.sync.contentcompletion.xml.CIElement> |
whatElementsCanGoHere(ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext whatElementsCanGoHereContext)
Examines the grammar and decides what elements can be inserted in the
parent element, after the list of child names.
|
abstract java.util.List<ro.sync.contentcompletion.xml.CIValue> |
whatPossibleValuesHasAttribute(ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext ctxt)
Queries the possible values of an element attribute.
|
abstract java.util.List<ro.sync.contentcompletion.xml.CIValue> |
whatPossibleValuesHasElement(ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext ctxt)
Queries the possible values of an element.
|
public abstract ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext createWhatElementsCanGoHereContext(int offset) throws javax.swing.text.BadLocationException
offset
- Offset in document for which to create an element context.javax.swing.text.BadLocationException
- When the offset is below zero or greater than the content.public abstract ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext createWhatAttributesCanGoHereContext(int offset)
offset
- The current offsetwhatAttributesCanGoHere(WhatAttributesCanGoHereContext)
public abstract ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext createWhatPossibleValuesHasAttributeContext(int offset)
offset
- The offset of the attribute name on the element whose attribute values interest us.public abstract java.util.List<ro.sync.contentcompletion.xml.CIAttribute> whatAttributesCanGoHere(ro.sync.contentcompletion.xml.WhatAttributesCanGoHereContext whatAttributesCanGoHereContext)
whatAttributesCanGoHereContext
- the context for the call. It must
have:
public abstract java.util.List<ro.sync.contentcompletion.xml.CIElement> whatElementsCanGoHere(ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext whatElementsCanGoHereContext)
whatElementsCanGoHereContext
- the context for the call. It must have:
public abstract java.util.List<ro.sync.contentcompletion.xml.CIValue> whatPossibleValuesHasAttribute(ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext ctxt)
ctxt
- The context WhatPossiBleValuesHasAttributeContext.public abstract java.util.List<ro.sync.contentcompletion.xml.CIValue> whatPossibleValuesHasElement(ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext ctxt)
ctxt
- The context.public abstract java.net.URL[] getGrammarURLs()
update(InputSource[])
methods.public abstract ro.sync.contentcompletion.xml.CIAttribute getAttributeDescription(ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext ctxt)
ctxt
- the context describing the target attribute.public abstract java.util.List<ro.sync.contentcompletion.xml.NameValue> getEntities()
If the DOCTYPE declaration is not changed, the document should not be processed each time this method is called.
public abstract ro.sync.contentcompletion.xml.CIElement getElementDescription(ro.sync.contentcompletion.xml.Context ctxt)
ctxt
- the context describing the target element. It contains:public abstract boolean isElementDescriptionSupported()
public abstract java.util.List<ro.sync.contentcompletion.xml.CIElement> getChildrenElements(ro.sync.contentcompletion.xml.WhatElementsCanGoHereContext context)
context
- The element context.public abstract boolean isLearnSchema()
public abstract boolean hasLoadingErrors()
public abstract java.util.List<ro.sync.contentcompletion.xml.CIElement> getGlobalElements()
© Copyright Syncro Soft SRL 2002 - 2014.