Class StringProperty

    • Constructor Summary

      Constructors 
      Constructor Description
      StringProperty​(java.lang.String name)
      Creates a new StringProperty with given name and null value.
      StringProperty​(java.lang.String name, java.lang.String value)
      Creates a new StringProperty with given name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object cloneValue()
      cloneValue.
      boolean equals​(java.lang.Object obj)
      Returns true if the given obj is a StringProperty and the name, value tuples are equal.
      PropertyType getPropertyType()
      getPropertyType.
      long getSizeInBytes()
      The 'size' of a DataHolder is needed for the quota calculation.
      The size of an atomic DataHolder like a Property should be the real amount of bytes it uses, whether the size of complex objects should be cumulated.
      The overhead for administration shouldn't be counted (i.e.
      java.lang.String getString()
      Returns the value of this property as String.
      void setString​(java.lang.String aString)
      Sets the value of this property to the given String.
      void setValue​(java.lang.Object o)
      Sets the value of this Property.
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StringProperty

        public StringProperty​(java.lang.String name)
        Creates a new StringProperty with given name and null value.
        Parameters:
        name - a String object.
      • StringProperty

        public StringProperty​(java.lang.String name,
                              java.lang.String value)
        Creates a new StringProperty with given name and value.
        Parameters:
        name - a String object.
        value - a String object.
    • Method Detail

      • getString

        public java.lang.String getString()
        Returns the value of this property as String.
        Returns:
        a String object.
      • setString

        public void setString​(java.lang.String aString)
        Sets the value of this property to the given String.
        Parameters:
        aString - a String object.
      • setValue

        public void setValue​(java.lang.Object o)
        Sets the value of this Property. Sets the value of this property to the String representation of the given Object o. If o is null, the value of this property will be 'null'.
        Overrides:
        setValue in class Property
        Parameters:
        o - object to set
      • equals

        public boolean equals​(java.lang.Object obj)
        Returns true if the given obj is a StringProperty and the name, value tuples are equal.
        Overrides:
        equals in class Property
      • getSizeInBytes

        public long getSizeInBytes()
        The 'size' of a DataHolder is needed for the quota calculation.
        The size of an atomic DataHolder like a Property should be the real amount of bytes it uses, whether the size of complex objects should be cumulated.
        The overhead for administration shouldn't be counted (i.e. the size of an IntProperty is the amount of bytes needed to store the int value itself, not the amount of bytes needed to store the DataHolder object). Returns the amount of bytes needed to save this property.
        Specified by:
        getSizeInBytes in class DataHolder
        Returns:
        a long.
        See Also:
        DataHolder.getSizeInBytes()
      • cloneValue

        protected java.lang.Object cloneValue()

        cloneValue.

        Specified by:
        cloneValue in class Property
        Returns:
        a Object object.