Class ComponentEditType.Type

java.lang.Object
com.adobe.acs.commons.wcm.ComponentEditType.Type
Enclosing class:
ComponentEditType

public static class ComponentEditType.Type extends Object
  • Constructor Details

    • Type

      public Type(String name)
      Creates a new Type with a Css Class in the format: lowercase(cq--placeholder)
      Parameters:
      name - stores this value internally in UPPERCASE
    • Type

      public Type(String name, String cssClass)
      Parameters:
      name - stores this value internally in UPPERCASE
      cssClass -
  • Method Details

    • getName

      public String getName()
      Returns the name of the Type in all UPPERCASE
    • getCssClass

      public String getCssClass()
      Returns the Type's CSS class used to display the Icon
      Returns:
    • equals

      public boolean equals(ComponentEditType.Type type)
      Checks if two Type's have the same name
      Parameters:
      type -
      Returns:
    • equals

      public boolean equals(String name)
      Checks if the provided name matches the name of the Type
      Parameters:
      name -
      Returns:
    • equals

      public boolean equals(Object obj)
      Checks if the provided name matches the name of the Type
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
    • hashCode

      public int hashCode()
      HashCode implementation based on the underlying "name" data point. The "name" is what identifies uniqueness between Types
      Overrides:
      hashCode in class Object
      Returns: