Package sonia.scm

Class Type

java.lang.Object
sonia.scm.Type
Direct Known Subclasses:
RepositoryType, TemplateType

public class Type extends Object
Base class for all objects which supports different types.
  • Constructor Details

    • Type

      public Type()
      Constructs Type object. This constructor is required for JAXB.
    • Type

      public Type(String name, String displayName)
      Constructs Type object
      Parameters:
      name -
      displayName -
  • Method Details

    • equals

      public boolean equals(Object obj)
      Returns true if the given object is equals.
      Overrides:
      equals in class Object
      Parameters:
      obj -
    • hashCode

      public int hashCode()
      Returns the hash code of the object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDisplayName

      public String getDisplayName()
      Returns the display name of the type.
    • getName

      public String getName()
      Returns the unique name of the type.
    • setDisplayName

      public void setDisplayName(String displayName)
      Setter for the display name of the type
      Parameters:
      displayName -
    • setName

      public void setName(String name)
      Setter for the type name
      Parameters:
      name - of the type