Class PropertyName

java.lang.Object
com.deviceatlas.PropertyName

public class PropertyName extends Object

Contains a property name and the expected data type of values associated with the property.

This is returned in a Set when the method getPropertyNames() is called.

  • Constructor Summary

    Constructors
    Constructor
    Description
    PropertyName(String name, byte dataTypeId)
    Create a new PropertyName with string name and expected data type of values.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Get the data type name for values associated with this Property name.
    byte
    Get the data type ID for values associated with this Property name.
    Get the name of this PropertyName
    int
     
    Get the property name and the data type as "property-name (property-data-type)"

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PropertyName

      public PropertyName(String name, byte dataTypeId)
      Create a new PropertyName with string name and expected data type of values.
      Parameters:
      name - The name for the property
      dataTypeId - The ID of the data type for this property name.
  • Method Details

    • getName

      public String getName()
      Get the name of this PropertyName
      Returns:
      The name of the PropertyName
    • getDataTypeId

      public byte getDataTypeId()
      Get the data type ID for values associated with this Property name.
      Returns:
      The ID of the data type
    • getDataType

      public String getDataType()
      Get the data type name for values associated with this Property name.
      Returns:
      The name of the data type
    • toString

      public String toString()
      Get the property name and the data type as "property-name (property-data-type)"
      Overrides:
      toString in class Object
      Returns:
      The property name and the name of the data type
    • hashCode

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

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