Interface DataObject

  • All Superinterfaces:
    java.lang.Cloneable
    All Known Implementing Classes:
    AbstractASGDocument, AbstractFederatedVO, AbstractVO

    public interface DataObject
    extends java.lang.Cloneable
    Basic interface which all objects managed by the generated code will implement and which provides basic access methods.
    Version:
    $Id: $Id
    Author:
    lrosenberg
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      DataObjects are cloneable.
      java.lang.String getDefinedName()
      Returns the name under which the object was defined in xml originally.
      java.lang.String getDefinedParentName()
      Returns the parent module name under which the object was defined in xml originally.
      java.lang.String getFootprint()
      Returns the footprint of the document.
      java.lang.String getId()
      Returns a document id.
      long getLastUpdateTimestamp()
      Returns the timestamp (time in ms since 1970) of the last change.
      ObjectInfo getObjectInfo()
      Returns the object info about this data object.
      java.lang.Object getPropertyValue​(java.lang.String propertyName)
      Returns the value of a property in an underlying type.
      net.anotheria.util.xml.XMLNode toXMLNode()
      Creates an XMLNode for this document for XML export.
    • Method Detail

      • getId

        java.lang.String getId()
        Returns a document id. Each document regardless if it comes from db or filesystem has a unique id.
        Returns:
        document id
      • clone

        java.lang.Object clone()
                        throws java.lang.CloneNotSupportedException
        DataObjects are cloneable.
        Returns:
        cloned object
        Throws:
        java.lang.CloneNotSupportedException - if any.
      • getPropertyValue

        java.lang.Object getPropertyValue​(java.lang.String propertyName)
        Returns the value of a property in an underlying type.
        Parameters:
        propertyName - a String object.
        Returns:
        value of property
      • getDefinedName

        java.lang.String getDefinedName()
        Returns the name under which the object was defined in xml originally.
        Returns:
        name of definition
      • getDefinedParentName

        java.lang.String getDefinedParentName()
        Returns the parent module name under which the object was defined in xml originally.
        Returns:
        parent module
      • getLastUpdateTimestamp

        long getLastUpdateTimestamp()
        Returns the timestamp (time in ms since 1970) of the last change.
        Returns:
        timestamp
      • toXMLNode

        net.anotheria.util.xml.XMLNode toXMLNode()
        Creates an XMLNode for this document for XML export.
        Returns:
        created XMLSNode
      • getFootprint

        java.lang.String getFootprint()
        Returns the footprint of the document. The footprint is the unique code which identifies a document state. The footprint is calculates from the values of all attributes.
        Returns:
        footprint
      • getObjectInfo

        ObjectInfo getObjectInfo()
        Returns the object info about this data object.
        Returns:
        object info