public class AttributeChildInvocationHandler extends DomInvocationHandler
ACCEPT_CHILDREN_METHOD, ACCEPT_METHOD, myStub
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
AttributeChildInvocationHandler(EvaluatedXmlName attributeName,
AttributeChildDescriptionImpl description,
DomManagerImpl manager,
DomParentStrategy strategy,
AttributeStub stub) |
Modifier and Type | Method and Description |
---|---|
void |
acceptChildren(DomElementVisitor visitor) |
void |
copyFrom(DomElement other) |
<T extends DomElement> |
createStableCopy() |
XmlTag |
ensureTagExists() |
XmlAttribute |
ensureXmlElementExists() |
protected java.lang.String |
getValue() |
XmlTag |
getXmlTag() |
protected boolean |
isAttribute() |
protected XmlElement |
recomputeXmlElement(DomInvocationHandler parent) |
protected XmlTag |
setEmptyXmlTag() |
protected void |
setValue(java.lang.String value) |
void |
undefineInternal() |
accept, addCollectionChild, addRequiredChildren, assertValid, checkValidity, createChildTag, createEvaluatedXmlName, createFixedChildrenTags, createMockCopy, createPathStableCopy, deleteTag, detach, equals, exists, fireUndefinedEvent, getAnnotation, getChildDescription, getClassAnnotation, getCollectionChildren, getCollectionChildren, getDomElementType, getFile, getGenericInfo, getManager, getModule, getNameStrategy, getParent, getParentOfType, getPresentation, getProxy, getRawType, getResolveScope, getScalarConverter, getStub, getXmlElement, getXmlElementName, getXmlElementNamespace, getXmlElementNamespaceKey, getXmlName, hashCode, invoke, isValid, narrowType, setXmlElement, toString, undefine
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
getUserData, putUserData
protected AttributeChildInvocationHandler(EvaluatedXmlName attributeName, AttributeChildDescriptionImpl description, DomManagerImpl manager, DomParentStrategy strategy, AttributeStub stub)
public void acceptChildren(DomElementVisitor visitor)
acceptChildren
in interface DomElement
acceptChildren
in class DomInvocationHandler
protected final XmlTag setEmptyXmlTag()
setEmptyXmlTag
in class DomInvocationHandler
protected boolean isAttribute()
isAttribute
in class DomInvocationHandler
protected XmlElement recomputeXmlElement(DomInvocationHandler parent)
recomputeXmlElement
in class DomInvocationHandler
public final XmlAttribute ensureXmlElementExists()
ensureXmlElementExists
in interface DomElement
ensureXmlElementExists
in class DomInvocationHandler
public <T extends DomElement> T createStableCopy()
createStableCopy
in interface DomElement
createStableCopy
in class DomInvocationHandler
DomManager.createStableValue(com.intellij.openapi.util.Factory)
}),
that holds the complete 'XPath' to this element in XML. If this element is in collection, and something
is inserted before it, the stable copy behaviour may be unexpected. So use this method only when you
are sure that nothing serious will happen during the lifetime of the stable copy. The most usual use
case is when one creates something inside WriteCommandAction
and
wants to use it outside the action. Due to formatting done on the command finish the element may become
invalidated, but the stable copy will survive, because nothing in fact has changed in its 'XPath'.public final void undefineInternal()
undefineInternal
in class DomInvocationHandler
public final XmlTag getXmlTag()
getXmlTag
in interface DomElement
getXmlTag
in class DomInvocationHandler
public final XmlTag ensureTagExists()
ensureTagExists
in interface DomElement
ensureTagExists
in class DomInvocationHandler
protected java.lang.String getValue()
getValue
in class DomInvocationHandler
protected void setValue(java.lang.String value)
setValue
in class DomInvocationHandler
public void copyFrom(DomElement other)
copyFrom
in interface DomElement
copyFrom
in class DomInvocationHandler