Class SectionDefinitionIdentifier

java.lang.Object
com._1c.g5.v8.dt.ui.aef.definitions.SectionDefinitionIdentifier
All Implemented Interfaces:
IDefinitionIdentifier, org.eclipse.core.runtime.IAdaptable

public class SectionDefinitionIdentifier extends Object implements IDefinitionIdentifier
The IDefinitionIdentifier implementation that uses Section to identify the definition.
Methods equals(Object) and hashCode() delegate the execution to the underlying object.
  • Constructor Details

    • SectionDefinitionIdentifier

      public SectionDefinitionIdentifier(Section section)
      Creates a new identifier.
      Parameters:
      section - the Section that uniquely identifies the definition.
  • Method Details

    • getSection

      public Section getSection()
      Returns the section that uniquely identifies the definition.
      Returns:
      the identifier section, never null.
    • matches

      public boolean matches(Object id)
      Description copied from interface: IDefinitionIdentifier
      Checks whether the identifier matches the specified id.
      Specified by:
      matches in interface IDefinitionIdentifier
      Parameters:
      id - the object that represents identifier, cannot be null.
      Returns:
      true if the identifier matches the specified object, false - otherwise.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
    • toString

      public String toString()
      Overrides:
      toString in class Object