Class BrandDocument

java.lang.Object
net.anotheria.anodoc.data.DataHolder
net.anotheria.anodoc.data.Document
net.anotheria.asg.data.AbstractASGDocument
net.anotheria.anosite.gen.asbrand.data.BrandDocument
All Implemented Interfaces:
Serializable, Cloneable, net.anotheria.anodoc.data.IBasicStoreableObject, net.anotheria.anodoc.data.ICompositeDataObject, Brand, net.anotheria.asg.data.DataObject, net.anotheria.asg.data.LockableObject, net.anotheria.util.sorter.IComparable

public class BrandDocument extends net.anotheria.asg.data.AbstractASGDocument implements Brand, net.anotheria.util.sorter.IComparable
See Also:
  • Field Summary

    Fields inherited from class net.anotheria.asg.data.AbstractASGDocument

    INT_PROPERTY_MULTILINGUAL_DISABLED

    Fields inherited from class net.anotheria.anodoc.data.Document

    PROP_AUTHOR, PROP_LAST_UPDATE, PROP_TYPE_IDENTIFIER

    Fields inherited from interface net.anotheria.anosite.gen.asbrand.data.Brand

    PROP_ATTRIBUTES, PROP_DEFAULT_BRAND, PROP_ID, PROP_LOCALIZATIONS, PROP_MEDIA_LINKS, PROP_NAME, PROP_URLS_TO_MAP

    Fields inherited from interface net.anotheria.asg.data.LockableObject

    INT_LOCK_PROPERTY_NAME, INT_LOCKER_ID_PROPERTY_NAME, INT_LOCKING_TIME_PROPERTY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a new element to the list.
    void
    Adds a new element to the list.
    void
    Adds a new element to the list.
    void
    Adds a new element to the list.
    int
    compareTo(Brand comparable)
     
    int
    compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)
     
    boolean
     
    Returns the value of the attributes attribute.
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "attributes" container
    boolean
    Returns the value of the defaultBrand attribute.
     
     
     
    Returns the value of the localizations attribute.
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "localizations" container
    Returns the value of the mediaLinks attribute.
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "mediaLinks" container
    Returns the value of the name attribute.
    Returns the value of the urlsToMap attribute.
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "urlsToMap" container
    void
    Removes the element at position index from the list.
    void
    Removes the element at position index from the list.
    void
    Removes the element at position index from the list.
    void
    Removes the element at position index from the list.
    void
    Sets the value of the attributes attribute.
    void
    setDefaultBrand(boolean value)
    Sets the value of the defaultBrand attribute.
    void
    Sets the value of the localizations attribute.
    void
    Sets the value of the mediaLinks attribute.
    void
    setName(String value)
    Sets the value of the name attribute.
    void
    Sets the value of the urlsToMap attribute.
    void
    swapAttributesElement(int index1, int index2)
    Swaps elements at positions index1 and index2 in the list.
    void
    swapLocalizationsElement(int index1, int index2)
    Swaps elements at positions index1 and index2 in the list.
    void
    swapMediaLinksElement(int index1, int index2)
    Swaps elements at positions index1 and index2 in the list.
    void
    swapUrlsToMapElement(int index1, int index2)
    Swaps elements at positions index1 and index2 in the list.
     

    Methods inherited from class net.anotheria.asg.data.AbstractASGDocument

    getInternalProperty, getLockerId, getLockingTime, getObjectInfo, isLocked, setInternalProperty, setLocked, setLockerId, setLockingTime

    Methods inherited from class net.anotheria.anodoc.data.Document

    addDataHolder, clone, copyFromBooleanList, copyFromDoubleList, copyFromFloatList, copyFromIntegerList, copyFromLongList, copyFromStringList, copyToBooleanList, copyToDoubleList, copyToFloatList, copyToIntegerList, copyToLongList, copyToStringList, createDocument, createDocumentList, createListProperty, getAuthor, getBoolean, getBooleanProperty, getDataHolder, getDocument, getDocumentAnyCase, getDocumentList, getDocumentListAnyCase, getDouble, getDoubleProperty, getEmptyBoolean, getEmptyDouble, getEmptyFloat, getEmptyInt, getEmptyList, getEmptyLong, getEmptyString, getFloat, getFloatProperty, getInt, getIntProperty, getKeys, getLastUpdateTimestamp, getList, getListProperty, getListPropertyAnyCase, getLong, getLongProperty, getObject, getProperties, getProperty, getPropertyValue, getSizeInBytes, getStorageId, getString, getStringProperty, getTypeIdentifier, putBooleanProperty, putDocument, putDoubleProperty, putFloatProperty, putIntProperty, putList, putListProperty, putLongProperty, putProperty, putStringProperty, removeDataHolder, removeDataHolder, removeProperty, removeProperty, renameTo, setBoolean, setCallContextAuthor, setDouble, setFloat, setInt, setLastUpdateNow, setList, setLong, setString, setTypeIdentifier, toXMLNode

    Methods inherited from class net.anotheria.anodoc.data.DataHolder

    getId, hashCode, setId

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.anotheria.asg.data.DataObject

    clone, getId, getLastUpdateTimestamp, getObjectInfo, getPropertyValue, toXMLNode
  • Constructor Details

    • BrandDocument

      public BrandDocument()
    • BrandDocument

      public BrandDocument(String id)
    • BrandDocument

      public BrandDocument(BrandDocument toClone)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Brand
      Returns the value of the name attribute.
      Specified by:
      getName in interface Brand
    • setName

      public void setName(String value)
      Description copied from interface: Brand
      Sets the value of the name attribute.
      Specified by:
      setName in interface Brand
    • getDefaultBrand

      public boolean getDefaultBrand()
      Description copied from interface: Brand
      Returns the value of the defaultBrand attribute.
      Specified by:
      getDefaultBrand in interface Brand
    • setDefaultBrand

      public void setDefaultBrand(boolean value)
      Description copied from interface: Brand
      Sets the value of the defaultBrand attribute.
      Specified by:
      setDefaultBrand in interface Brand
    • getUrlsToMap

      public List<String> getUrlsToMap()
      Description copied from interface: Brand
      Returns the value of the urlsToMap attribute.
      Specified by:
      getUrlsToMap in interface Brand
    • setUrlsToMap

      public void setUrlsToMap(List<String> value)
      Description copied from interface: Brand
      Sets the value of the urlsToMap attribute.
      Specified by:
      setUrlsToMap in interface Brand
    • getLocalizations

      public List<String> getLocalizations()
      Description copied from interface: Brand
      Returns the value of the localizations attribute.
      Specified by:
      getLocalizations in interface Brand
    • setLocalizations

      public void setLocalizations(List<String> value)
      Description copied from interface: Brand
      Sets the value of the localizations attribute.
      Specified by:
      setLocalizations in interface Brand
    • getMediaLinks

      public List<String> getMediaLinks()
      Description copied from interface: Brand
      Returns the value of the mediaLinks attribute.
      Specified by:
      getMediaLinks in interface Brand
    • setMediaLinks

      public void setMediaLinks(List<String> value)
      Description copied from interface: Brand
      Sets the value of the mediaLinks attribute.
      Specified by:
      setMediaLinks in interface Brand
    • getAttributes

      public List<String> getAttributes()
      Description copied from interface: Brand
      Returns the value of the attributes attribute.
      Specified by:
      getAttributes in interface Brand
    • setAttributes

      public void setAttributes(List<String> value)
      Description copied from interface: Brand
      Sets the value of the attributes attribute.
      Specified by:
      setAttributes in interface Brand
    • toString

      public String toString()
      Overrides:
      toString in class net.anotheria.anodoc.data.Document
    • getUrlsToMapSize

      public int getUrlsToMapSize()
      Description copied from interface: Brand
      Returns the number of elements in the "urlsToMap" container
      Specified by:
      getUrlsToMapSize in interface Brand
    • addUrlsToMapElement

      public void addUrlsToMapElement(String urlToMap)
      Description copied from interface: Brand
      Adds a new element to the list.
      Specified by:
      addUrlsToMapElement in interface Brand
    • removeUrlsToMapElement

      public void removeUrlsToMapElement(int index)
      Description copied from interface: Brand
      Removes the element at position index from the list.
      Specified by:
      removeUrlsToMapElement in interface Brand
    • swapUrlsToMapElement

      public void swapUrlsToMapElement(int index1, int index2)
      Description copied from interface: Brand
      Swaps elements at positions index1 and index2 in the list.
      Specified by:
      swapUrlsToMapElement in interface Brand
    • getUrlsToMapElement

      public String getUrlsToMapElement(int index)
      Description copied from interface: Brand
      Returns the element at the position index in the list.
      Specified by:
      getUrlsToMapElement in interface Brand
    • getLocalizationsSize

      public int getLocalizationsSize()
      Description copied from interface: Brand
      Returns the number of elements in the "localizations" container
      Specified by:
      getLocalizationsSize in interface Brand
    • addLocalizationsElement

      public void addLocalizationsElement(String localization)
      Description copied from interface: Brand
      Adds a new element to the list.
      Specified by:
      addLocalizationsElement in interface Brand
    • removeLocalizationsElement

      public void removeLocalizationsElement(int index)
      Description copied from interface: Brand
      Removes the element at position index from the list.
      Specified by:
      removeLocalizationsElement in interface Brand
    • swapLocalizationsElement

      public void swapLocalizationsElement(int index1, int index2)
      Description copied from interface: Brand
      Swaps elements at positions index1 and index2 in the list.
      Specified by:
      swapLocalizationsElement in interface Brand
    • getLocalizationsElement

      public String getLocalizationsElement(int index)
      Description copied from interface: Brand
      Returns the element at the position index in the list.
      Specified by:
      getLocalizationsElement in interface Brand
    • getMediaLinksSize

      public int getMediaLinksSize()
      Description copied from interface: Brand
      Returns the number of elements in the "mediaLinks" container
      Specified by:
      getMediaLinksSize in interface Brand
    • addMediaLinksElement

      public void addMediaLinksElement(String mediaLink)
      Description copied from interface: Brand
      Adds a new element to the list.
      Specified by:
      addMediaLinksElement in interface Brand
    • removeMediaLinksElement

      public void removeMediaLinksElement(int index)
      Description copied from interface: Brand
      Removes the element at position index from the list.
      Specified by:
      removeMediaLinksElement in interface Brand
    • swapMediaLinksElement

      public void swapMediaLinksElement(int index1, int index2)
      Description copied from interface: Brand
      Swaps elements at positions index1 and index2 in the list.
      Specified by:
      swapMediaLinksElement in interface Brand
    • getMediaLinksElement

      public String getMediaLinksElement(int index)
      Description copied from interface: Brand
      Returns the element at the position index in the list.
      Specified by:
      getMediaLinksElement in interface Brand
    • getAttributesSize

      public int getAttributesSize()
      Description copied from interface: Brand
      Returns the number of elements in the "attributes" container
      Specified by:
      getAttributesSize in interface Brand
    • addAttributesElement

      public void addAttributesElement(String attribute)
      Description copied from interface: Brand
      Adds a new element to the list.
      Specified by:
      addAttributesElement in interface Brand
    • removeAttributesElement

      public void removeAttributesElement(int index)
      Description copied from interface: Brand
      Removes the element at position index from the list.
      Specified by:
      removeAttributesElement in interface Brand
    • swapAttributesElement

      public void swapAttributesElement(int index1, int index2)
      Description copied from interface: Brand
      Swaps elements at positions index1 and index2 in the list.
      Specified by:
      swapAttributesElement in interface Brand
    • getAttributesElement

      public String getAttributesElement(int index)
      Description copied from interface: Brand
      Returns the element at the position index in the list.
      Specified by:
      getAttributesElement in interface Brand
    • compareTo

      public int compareTo(Brand comparable)
    • compareTo

      public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)
      Specified by:
      compareTo in interface net.anotheria.util.sorter.IComparable
    • getDefinedName

      public String getDefinedName()
      Specified by:
      getDefinedName in interface net.anotheria.asg.data.DataObject
    • getDefinedParentName

      public String getDefinedParentName()
      Specified by:
      getDefinedParentName in interface net.anotheria.asg.data.DataObject
    • getFootprint

      public String getFootprint()
      Specified by:
      getFootprint in interface net.anotheria.asg.data.DataObject
    • equals

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