public class DomFileElementImpl<T extends DomElement> extends java.lang.Object implements DomFileElement<T>, SemElement
EMPTY_ARRAYEVER_CHANGED, NEVER_CHANGED| Modifier | Constructor and Description |
|---|---|
protected |
DomFileElementImpl(XmlFile file,
EvaluatedXmlNameImpl rootTagName,
DomFileDescription<T> fileDescription,
FileStub stub) |
protected DomFileElementImpl(XmlFile file, EvaluatedXmlNameImpl rootTagName, DomFileDescription<T> fileDescription, FileStub stub)
public final XmlFile getFile()
getFile in interface DomFileElement<T extends DomElement>public XmlFile getOriginalFile()
getOriginalFile in interface DomFileElement<T extends DomElement>public XmlTag getRootTag()
getRootTag in interface DomFileElement<T extends DomElement>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic final DomManagerImpl getManager()
getManager in interface DomElementpublic final java.lang.reflect.Type getDomElementType()
getDomElementType in interface DomElementpublic AbstractDomChildrenDescription getChildDescription()
getChildDescription in interface DomElementpublic DomNameStrategy getNameStrategy()
getNameStrategy in interface DomElementpublic ElementPresentation getPresentation()
getPresentation in interface DomElementpublic GlobalSearchScope getResolveScope()
getResolveScope in interface DomElementpublic <T extends DomElement> T getParentOfType(java.lang.Class<T> requiredClass, boolean strict)
DomElementgetParentOfType in interface DomElementrequiredClass - parent element's typestrict - public Module getModule()
getModule in interface DomElementpublic void copyFrom(DomElement other)
copyFrom in interface DomElementpublic final <T extends DomElement> T createMockCopy(boolean physical)
createMockCopy in interface DomElementpublic final <T extends DomElement> T createStableCopy()
createStableCopy in interface DomElementDomManager.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 java.lang.String getXmlElementNamespace()
getXmlElementNamespace in interface DomElementpublic java.lang.String getXmlElementNamespaceKey()
getXmlElementNamespaceKey in interface DomElementNamespace, or null otherwise, which means that namespace should be equal
to that of the element's parentpublic final T getRootElement()
getRootElement in interface DomFileElement<T extends DomElement>public java.lang.Class<T> getRootElementClass()
getRootElementClass in interface DomFileElement<T extends DomElement>public DomFileDescription<T> getFileDescription()
getFileDescription in interface DomFileElement<T extends DomElement>protected final DomRootInvocationHandler getRootHandler()
public java.lang.String toString()
toString in class java.lang.Objectpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic final XmlTag getXmlTag()
getXmlTag in interface DomElementpublic <T extends DomElement> DomFileElementImpl<T> getRoot()
public DomElement getParent()
getParent in interface DomElementpublic final XmlTag ensureTagExists()
ensureTagExists in interface DomElementpublic final XmlElement getXmlElement()
DomElementgetXmlElement in interface DomElementXmlFile, XmlTag or XmlAttributepublic final XmlElement ensureXmlElementExists()
ensureXmlElementExists in interface DomElementpublic void undefine()
DomElementundefine in interface DomElementpublic final boolean isValid()
isValid in interface DomElementpublic boolean exists()
exists in interface DomElementpublic java.lang.String checkValidity()
public final DomGenericInfo getGenericInfo()
getGenericInfo in interface DomElementpublic java.lang.String getXmlElementName()
getXmlElementName in interface DomElementpublic void accept(DomElementVisitor visitor)
accept in interface DomElementpublic void acceptChildren(DomElementVisitor visitor)
acceptChildren in interface DomElementpublic <T> T getUserData(Key<T> key)
getUserData in interface UserDataHolderpublic <T> void putUserData(Key<T> key, T value)
UserDataHolderputUserData in interface UserDataHolderpublic final long getModificationCount()
getModificationCount in interface ModificationTracker