Class LocalizedIdentity

java.lang.Object
com.appiancorp.suiteapi.common.LocalizedIdentity
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractProcessModel, HistoryRecord.ProcessModelInfo, ProcessModel.Descriptor

public class LocalizedIdentity extends Object implements Serializable
See Also:
  • Constructor Details

    • LocalizedIdentity

      public LocalizedIdentity()
      Constructs an empty LocalizedIdentity object.
    • LocalizedIdentity

      public LocalizedIdentity(Long id_, LocaleString name_)
      Constructs a LocalizedIdentity object with given name and Id.
      Parameters:
      id_ - Id of the object
      name_ - the localized name mappings of the object
  • Method Details

    • getId

      public Long getId()
      Returns the Id of the object.
      Returns:
      Id of object
      See Also:
    • setId

      public void setId(Long id_)
      Sets the Id of the object.
      Parameters:
      id_ - Id to set
      See Also:
    • getName

      public LocaleString getName()
      Returns the localized name mappings of the object.
      Returns:
      name
      See Also:
    • setName

      public void setName(LocaleString name_)
      Sets the localized name mappings of the object.
      Parameters:
      name_ - name to set
      See Also:
    • toString

      public String toString()
      Returns a string representation of the LocalizedIdentity. In general, the toString method returns a string that "textually represents" this object. Note that the name value will be the encode representation.
      Overrides:
      toString in class Object
      Returns:
      String representation of the object
    • equals

      public boolean equals(Object o_)
      Returns whether the LocalizedIdentity been passed is equal to this LocalizedIdentity.
      Overrides:
      equals in class Object
      Parameters:
      o_ - the reference object with which to compare.
      Returns:
      true if both objects are equal, otherwise false
    • hashCode

      public int hashCode()
      Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by Hashtable.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object
    • getIds

      public static Long[] getIds(LocalizedIdentity[] lis)
      Get the ids (as a Long array) from an array of LocalizedIdentity objects.
      Parameters:
      lis - an array of LocalizedIdentity objects
      Returns:
      an array of the same size as the given array, containing the ids of the given objects; if given array is null, returns null