Class PropertyAbstract<P>

java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.property.PropertyAbstract<P>
All Implemented Interfaces:
Property<P>, Comparable<Property<?>>
Direct Known Subclasses:
EntityPropertyMain, NavigationPropertyAbstract

public abstract class PropertyAbstract<P> extends Object implements Property<P>
  • Field Details

    • readOnly

      protected boolean readOnly
      Flag indicating the property is system generated and can not be edited by the user.
  • Constructor Details

    • PropertyAbstract

      public PropertyAbstract(String name, PropertyType type, boolean readOnly)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Property
      The name of this property as used in URLs.
      Specified by:
      getName in interface Property<P>
      Returns:
      The name of this property as used in URLs.
    • setName

      protected void setName(String name)
    • getJsonName

      public String getJsonName()
      Description copied from interface: Property
      The name of this property as used in JSON.
      Specified by:
      getJsonName in interface Property<P>
      Returns:
      The name of this property as used in JSON.
    • getType

      public PropertyType getType()
      Description copied from interface: Property
      The class of the type of the value of this property.
      Specified by:
      getType in interface Property<P>
      Returns:
      The class of the type of the value of this property.
    • setType

      protected void setType(PropertyType type)
    • isReadOnly

      public boolean isReadOnly()
      Description copied from interface: Property
      Flag indicating the property is system generated and can not be edited by the user.
      Specified by:
      isReadOnly in interface Property<P>
      Returns:
      the readOnly flag.
    • toString

      public String toString()
      Overrides:
      toString in class Object