|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.contentcompletion.xml.Context ro.sync.contentcompletion.xml.WhatContextInParent ro.sync.contentcompletion.xml.WhatPossibleValuesHasAttributeContext
public class WhatPossibleValuesHasAttributeContext
It is used to determine the possible values of the current attribute.
Field Summary |
---|
Fields inherited from class ro.sync.contentcompletion.xml.WhatContextInParent |
---|
parentElement |
Fields inherited from class ro.sync.contentcompletion.xml.Context |
---|
elementStack, prefixNamespaceMapping, previousSiblingElements, xmlReader |
Constructor Summary | |
---|---|
WhatPossibleValuesHasAttributeContext()
|
Method Summary | |
---|---|
Object |
clone()
|
List<String> |
getAncestorValues(String name,
String namespace,
String attribute)
Get the values of the specified (by name) attribute from the ancestors with the given name and namespace . |
String |
getAttributeName()
Gets the name of the attribute, including the namespace prefix, if any. |
String |
getCurrentValuePrefix()
Get the already inserted value prefix. |
String |
getGrandparentElement()
Get the qualified name of the grand parent element. |
String |
getGrandparentNamespace()
Get the namespace of the grand parent element. |
void |
setAttributeName(String attributeName)
Sets the attribute name, including the namespace prefix, if any. |
void |
setCurrentValuePrefix(String currentValuePrefix)
Set the the already inserted value prefix. |
String |
toString()
Get a description of the current context. |
Methods inherited from class ro.sync.contentcompletion.xml.WhatContextInParent |
---|
getParentElement, getPreviousAttributeNames, getPreviousAttributes, getPreviousAttributesList, getRootAttributes, pushContextElement, setParentElement |
Methods inherited from class ro.sync.contentcompletion.xml.Context |
---|
executeXPath, getElementStack, getPrefixNamespaceMapping, getPreviousSiblingElements, setElementStack, setPrefixNamespaceMapping, setPreviousSiblingElements, setXMLReader |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WhatPossibleValuesHasAttributeContext()
Method Detail |
---|
public String getAttributeName()
public void setAttributeName(String attributeName)
attributeName
- The attribute name.public String toString()
toString
in class Object
public String getGrandparentElement()
EmptyStackException
- In case the stack is empty.public String getGrandparentNamespace()
EmptyStackException
- In case the stack is empty.public List<String> getAncestorValues(String name, String namespace, String attribute)
name
and namespace
.
name
- The name of the element where the attribute must be searched.namespace
- The namespace of the element where the attribute must be searched.attribute
- The attribute local name.
null
.public String getCurrentValuePrefix()
null
if no prefix was found.public void setCurrentValuePrefix(String currentValuePrefix)
currentValuePrefix
- The text from the start position of the attribute value and
the caret position.public Object clone()
clone
in class ro.sync.contentcompletion.xml.WhatContextInParent
WhatContextInParent.clone()
|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |