Class ToDoLabel

    • Constructor Summary

      Constructors 
      Constructor Description
      ToDoLabel()  
      ToDoLabel​(java.lang.String name)  
      ToDoLabel​(java.lang.String name, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void anonymize()  
      java.util.Map<java.lang.String,​java.lang.String> deserialize​(java.lang.String s)  
      boolean equals​(java.lang.Object o)  
      java.lang.Long getId()
      Method returning a canonical id of the object.
      java.lang.String getLanguageString​(java.lang.String language)  
      java.lang.String getName()  
      java.lang.String getValue()  
      java.util.Map<java.lang.String,​java.lang.String> getValueAsMap()  
      java.lang.Integer getVersion()
      Method returning the version of the instance
      java.lang.Boolean isActive()
      Method that returns whether the instance is active or not (means: logically deleted)
      java.lang.String serialize​(java.util.Map<java.lang.String,​java.lang.String> m)  
      ToDoLabel set​(ToDoLabel l)  
      void setActive​(java.lang.Boolean active)
      Method setting the active flag.
      void setId​(java.lang.Long id)
      Method setting the canonical id of the object.
      void setInactive()
      Method to delete an object logically.
      void setName​(java.lang.String name)  
      void setToActive()
      Method to undelete an object logically.
      void setValue​(java.lang.String value)  
      void setValueByMap​(java.util.Map<java.lang.String,​java.lang.String> m)  
      void setVersion​(java.lang.Integer version)
      Method setting the version of the instance, Should under normal circumstances not be manually invoked.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • ToDoLabel

        public ToDoLabel()
      • ToDoLabel

        public ToDoLabel​(java.lang.String name)
      • ToDoLabel

        public ToDoLabel​(java.lang.String name,
                         java.lang.String value)
    • Method Detail

      • getId

        public java.lang.Long getId()
        Description copied from class: ToDoVersionedIdentifiable
        Method returning a canonical id of the object. Transient objects return -1;
        Specified by:
        getId in class ToDoVersionedIdentifiable
        Returns:
        id the id of the object. Id is canonical for all instances of a class.
      • setId

        public void setId​(java.lang.Long id)
        Description copied from class: ToDoVersionedIdentifiable
        Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.
        Specified by:
        setId in class ToDoVersionedIdentifiable
        Parameters:
        id - id of the object
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getValue

        public java.lang.String getValue()
      • setValue

        public void setValue​(java.lang.String value)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setVersion

        public void setVersion​(java.lang.Integer version)
        Description copied from class: ToDoVersionedIdentifiable
        Method setting the version of the instance, Should under normal circumstances not be manually invoked.
        Specified by:
        setVersion in class ToDoVersionedIdentifiable
        Parameters:
        version - of the object
      • isActive

        public java.lang.Boolean isActive()
        Description copied from class: ToDoVersionedIdentifiable
        Method that returns whether the instance is active or not (means: logically deleted)
        Specified by:
        isActive in class ToDoVersionedIdentifiable
        Returns:
        boolean whether the object is active
      • setActive

        public void setActive​(java.lang.Boolean active)
        Description copied from class: ToDoVersionedIdentifiable
        Method setting the active flag. Invoking this method with false logically deletes the instance in the database.
        Specified by:
        setActive in class ToDoVersionedIdentifiable
        Parameters:
        active - is the object active or not
      • getLanguageString

        public java.lang.String getLanguageString​(java.lang.String language)
      • getValueAsMap

        public java.util.Map<java.lang.String,​java.lang.String> getValueAsMap()
      • setValueByMap

        public void setValueByMap​(java.util.Map<java.lang.String,​java.lang.String> m)
      • deserialize

        public java.util.Map<java.lang.String,​java.lang.String> deserialize​(java.lang.String s)
      • serialize

        public java.lang.String serialize​(java.util.Map<java.lang.String,​java.lang.String> m)