@API(type=EXTENDABLE,
src=PRIVATE)
public class WhatPossibleValuesHasAttributeContext
extends ro.sync.contentcompletion.xml.WhatContextInParent
elementStack, idValuesList, infoProvider, nextSiblingElements, prefixNamespaceMapping, previousSiblingElements, xmlReader
Constructor and Description |
---|
WhatPossibleValuesHasAttributeContext() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.util.List<java.lang.String> |
getAncestorValues(java.lang.String name,
java.lang.String namespace,
java.lang.String attribute)
Get the values of the specified (by name) attribute from the ancestors with
the given
name and namespace . |
java.lang.String |
getAttributeName()
Gets the name of the attribute, including the namespace prefix, if any.
|
java.lang.String |
getCurrentValueBeforeCaret()
Get the existing attribute value before the caret position.
|
java.lang.String |
getCurrentValuePrefix()
Get the already inserted value prefix.
|
java.lang.String |
getDefaultAttributeValue() |
Attribute[] |
getGrandparentAttributes()
Get the grandparent's attributes.
|
java.lang.String |
getGrandparentElement()
Get the qualified name of the grand parent element.
|
java.lang.String |
getGrandparentNamespace()
Get the namespace of the grand parent element.
|
void |
setAttributeName(java.lang.String attributeName)
Sets the attribute name, including the namespace prefix, if any.
|
void |
setCurrentValueBeforeCaret(java.lang.String currentValueBeforeCaret)
Set the current attribute value before the caret position.
|
void |
setCurrentValuePrefix(java.lang.String currentValuePrefix)
Set the the already inserted value prefix.
|
java.lang.String |
toString()
Get a description of the current context.
|
getParentElement, getPreviousAttributeNames, getPreviousAttributes, getPreviousAttributesList, getRootAttributes, pushContextElement, setParentElement
executeXPath, executeXPath, getDefaultAttributeValue, getElementStack, getIdValuesList, getNextSiblingElements, getPrefixNamespaceMapping, getPreviousSiblingElements, getSystemID, setAdditionalContextInformationProvider, setElementStack, setIdValuesList, setNextSiblingElements, setPrefixNamespaceMapping, setPreviousSiblingElements, setXMLReader
public WhatPossibleValuesHasAttributeContext()
public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attributeName)
attributeName
- The attribute name.public java.lang.String toString()
toString
in class java.lang.Object
public Attribute[] getGrandparentAttributes()
public java.lang.String getGrandparentElement()
java.util.EmptyStackException
- In case the stack is empty.public java.lang.String getGrandparentNamespace()
java.util.EmptyStackException
- In case the stack is empty.public java.util.List<java.lang.String> getAncestorValues(java.lang.String name, java.lang.String namespace, java.lang.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 java.lang.String getCurrentValuePrefix()
null
if no prefix was found.public void setCurrentValuePrefix(java.lang.String currentValuePrefix)
currentValuePrefix
- The text from the start position of the attribute value and
the caret position.public java.lang.String getCurrentValueBeforeCaret()
public void setCurrentValueBeforeCaret(java.lang.String currentValueBeforeCaret)
currentValueBeforeCaret
- The current attribute value before the caret position to be set.public java.lang.Object clone()
clone
in class ro.sync.contentcompletion.xml.WhatContextInParent
WhatContextInParent.clone()
public java.lang.String getDefaultAttributeValue()
© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.