Class PluginProgrammingElement

  • All Implemented Interfaces:
    com.hello2morrow.foundation.persistence.IPersistable, IPluginElement, com.hello2morrow.sonargraph.core.model.element.ICloneableParent, com.hello2morrow.sonargraph.core.model.element.IElement, com.hello2morrow.sonargraph.core.model.element.IPhysicalElement, com.hello2morrow.sonargraph.core.model.path.ISourceElementCountProvider, com.hello2morrow.sonargraph.core.model.snapshot.ISnapshotDependency.IDependencyEndpoint, com.hello2morrow.sonargraph.core.model.snapshot.ISnapshotReader.IRetrievable, com.hello2morrow.sonargraph.core.model.snapshot.ISnapshotWriter.IStorable, java.lang.Cloneable
    Direct Known Subclasses:
    PluginProgrammingElementComponent

    public class PluginProgrammingElement
    extends com.hello2morrow.sonargraph.core.model.programming.ProgrammingElementWithChildren
    implements IPluginElement
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  PluginProgrammingElement.IVisitor  
      • Nested classes/interfaces inherited from class com.hello2morrow.sonargraph.core.model.element.NamedElement

        com.hello2morrow.sonargraph.core.model.element.NamedElement.IFilter, com.hello2morrow.sonargraph.core.model.element.NamedElement.INamedElementVisitor
      • Nested classes/interfaces inherited from class com.hello2morrow.sonargraph.core.model.element.ElementWithIssues

        com.hello2morrow.sonargraph.core.model.element.ElementWithIssues.IIssueManager
      • Nested classes/interfaces inherited from class com.hello2morrow.sonargraph.core.model.element.Element

        com.hello2morrow.sonargraph.core.model.element.Element.IPropertiesManager
    • Field Summary

      • Fields inherited from class com.hello2morrow.sonargraph.core.model.element.NamedElement

        ACCEPT_ALL
      • Fields inherited from interface com.hello2morrow.sonargraph.core.model.element.IElement

        DESCRIPTOR_NAME_PARTS_SEPARATOR, DESCRIPTOR_NAME_PARTS_SEPARATOR_AS_CHAR, DESCRIPTOR_SEPARATOR, DESCRIPTOR_SEPARATOR_AS_CHAR, INNER_NAME_PARTS_SEPARATOR, INNER_NAME_PARTS_SEPARATOR_AS_CHAR, NO_NUMBER_AVAILABLE
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginProgrammingElement​(com.hello2morrow.sonargraph.core.model.element.IModelServiceProvider msp, com.hello2morrow.sonargraph.core.model.element.NamedElement parent, java.lang.String name, int lineNumber, IMetaClass metaClass, com.hello2morrow.sonargraph.core.model.element.IStructureItem structureItem)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(com.hello2morrow.sonargraph.core.model.element.NamedElement.INamedElementVisitor visitor)  
      java.lang.String getDescription()  
      java.lang.String getElementName()  
      java.lang.String getImageResourceName()  
      IMetaClass getMetaClass()  
      java.lang.String getName()  
      java.lang.String getPluginElementType()  
      java.lang.String getPluginId()  
      java.lang.String getPluginInfo()  
      java.lang.String getPresentationName​(boolean shortName)  
      Any getProperty​(java.lang.String property)  
      <T> T getProperty​(java.lang.String property, java.lang.Class<T> cls)  
      java.lang.String getShortName()  
      com.hello2morrow.sonargraph.core.model.element.IStructureItem getStructureItem()  
      boolean isMember()  
      boolean persist​(com.hello2morrow.sonargraph.core.model.snapshot.ISnapshotProcessor.Mode mode)  
      void removeProperty​(java.lang.String property)  
      void setProperty​(java.lang.String property, Any value)  
      • Methods inherited from class com.hello2morrow.sonargraph.core.model.programming.ProgrammingElementWithChildren

        remove
      • Methods inherited from class com.hello2morrow.sonargraph.core.model.programming.ProgrammingElement

        addDependency, addDependencyIfNotPresent, canBelongToNamespace, dispose, equals, finishModification, getAnnotations, getChildren, getCurrentModel, getDebugInfo, getDefinitions, getDependencies, getDependencyIterator, getDomain, getFirstDependencyByDependencyType, getIncomingDependencies, getIncomingDependenciesRecursively, getIncomingDependencyIterator, getIncomingDependencyIterator, getIncomingDependencyIterator, getIndexOfOutgoingDependency, getIssueManager, getLineNumber, getLogicalGroupInternal, getModelServiceProvider, getNamedElement, getOriginal, getOutgoingDependencies, getOutgoingDependenciesRecursively, getOutgoingDependencyAt, getOutgoingDependencyIterator, getOutgoingDependencyIterator, getOutgoingDependencyTargetAt, getParent, getParts, getPropertiesManager, getRawPresentationName, getRepresentative, hasDependencies, hashCode, hasIncomingDependencies, hasMultipleDefinitions, hasOutgoingDependencies, ignoreInModelRepresentation, isExternal, mergeDependenciesFrom, parentRemoved, readDependencyList, removeDependencies, removeDependency, removeOutgoingDependencies, retrieve, setLineNumber, setModelServiceProvider, setShortName, store, toString, transferDependenciesFrom, transferIncomingDependenciesTo, unlinkDependency, writeDependencyList
      • Methods inherited from class com.hello2morrow.sonargraph.core.model.element.NamedElement

        addChild, changeParent, clone, forgetChildren, fullyQualifiedName, getAllChildren, getAllChildren, getAllChildrenExceptGhosts, getAllChildrenExceptGhosts, getChildren, getChildren, getChildren, getChildrenList, getChildrenRecursively, getChildrenRecursively, getElement, getFirstChild, getFirstChild, getFirstChildRecursively, getFirstParent, getFullyQualifiedName, getFullyQualifiedNamePart, getIndexOf, getLanguage, getNumberOfChildren, getOriginalChildren, getOriginalChildrenRecursively, getOriginalFullyQualifiedName, getOriginalParent, getParent, getParent, getParents, getPersistableChildren, getRefactoringState, getUniqueChild, getUniqueChild, getUniqueExistingChild, hasAllChildren, hasAllChildrenRecursively, hasAsParent, hasBeenDirectlyRefactored, hasChildren, hasChildren, hasChildren, hasChildrenExcept, hasChildrenRecursively, hasPersistableChildren, ignoreInModelSearch, ignoreIssues, isCompilerGenerated, isDefinedInEnclosingElement, isExcluded, isOfStructureItem, isValid, moveChild, originalFullyQualifiedName, performRemoveChild, persistChildren, removeChild, removeChildren, removeOnLastChildRemoval, resolveByFullyQualifiedNamePart, resolveOriginalByFullyQualifiedNamePart, setParent
      • Methods inherited from class com.hello2morrow.sonargraph.core.model.element.ElementWithIssues

        addIssue, getIssues, getIssues, hasIssues, hasIssues, hasIssues, hasUnresolvedErrorIssues, hasUnresolvedWarningIssues, removeIssue, removeIssues, removeIssues
      • Methods inherited from class com.hello2morrow.sonargraph.core.model.element.Element

        escapeSpecialCharacters, getImageResourceDecoratorInfo, getInformation, getOriginalName, getOriginalPresentationName, getOriginalShortName, getPresentationKind, getProperties, getRefactoringInfo, getStandardPresentationKind, hasProperty, isGhost, isProxy, readAttributes, splitDescriptor, unescapeSpecialCharacters, writeAttributes
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.hello2morrow.sonargraph.core.model.element.IElement

        isExcluded
      • Methods inherited from interface com.hello2morrow.foundation.persistence.IPersistable

        getPersistableType, linkParent, persist
      • Methods inherited from interface com.hello2morrow.sonargraph.core.model.path.ISourceElementCountProvider

        getSourceElementCount
    • Constructor Detail

      • PluginProgrammingElement

        public PluginProgrammingElement​(com.hello2morrow.sonargraph.core.model.element.IModelServiceProvider msp,
                                        com.hello2morrow.sonargraph.core.model.element.NamedElement parent,
                                        java.lang.String name,
                                        int lineNumber,
                                        IMetaClass metaClass,
                                        com.hello2morrow.sonargraph.core.model.element.IStructureItem structureItem)
    • Method Detail

      • persist

        public final boolean persist​(com.hello2morrow.sonargraph.core.model.snapshot.ISnapshotProcessor.Mode mode)
        Specified by:
        persist in interface com.hello2morrow.sonargraph.core.model.snapshot.ISnapshotWriter.IStorable
        Overrides:
        persist in class com.hello2morrow.sonargraph.core.model.element.Element
      • getStructureItem

        public final com.hello2morrow.sonargraph.core.model.element.IStructureItem getStructureItem()
        Specified by:
        getStructureItem in class com.hello2morrow.sonargraph.core.model.programming.ProgrammingElement
      • getMetaClass

        public final IMetaClass getMetaClass()
      • isMember

        public final boolean isMember()
        Specified by:
        isMember in class com.hello2morrow.sonargraph.core.model.programming.ProgrammingElement
      • getName

        public final java.lang.String getName()
        Overrides:
        getName in class com.hello2morrow.sonargraph.core.model.programming.ProgrammingElement
      • getShortName

        public final java.lang.String getShortName()
        Overrides:
        getShortName in class com.hello2morrow.sonargraph.core.model.programming.ProgrammingElement
      • getPresentationName

        public final java.lang.String getPresentationName​(boolean shortName)
        Overrides:
        getPresentationName in class com.hello2morrow.sonargraph.core.model.element.Element
      • getDescription

        public final java.lang.String getDescription()
        Overrides:
        getDescription in class com.hello2morrow.sonargraph.core.model.element.Element
      • getImageResourceName

        public final java.lang.String getImageResourceName()
        Overrides:
        getImageResourceName in class com.hello2morrow.sonargraph.core.model.element.Element
      • getProperty

        public final <T> T getProperty​(java.lang.String property,
                                       java.lang.Class<T> cls)
        Overrides:
        getProperty in class com.hello2morrow.sonargraph.core.model.element.Element
      • setProperty

        public final void setProperty​(java.lang.String property,
                                      Any value)
      • removeProperty

        public final void removeProperty​(java.lang.String property)
      • getPluginId

        public final java.lang.String getPluginId()
      • getPluginElementType

        public final java.lang.String getPluginElementType()
      • getPluginInfo

        public final java.lang.String getPluginInfo()
      • accept

        public void accept​(com.hello2morrow.sonargraph.core.model.element.NamedElement.INamedElementVisitor visitor)
        Overrides:
        accept in class com.hello2morrow.sonargraph.core.model.programming.ProgrammingElementWithChildren