Class UC4Object

    • Constructor Summary

      Constructors 
      Constructor Description
      UC4Object()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      DocuContainer docu()
      This method provides access to the text and structured documentation of an object.
      java.lang.String getAccess()
      Returns if this object is opened read only.
      java.lang.String getIdnr()
      Returns the ID of the object.
      int getModCount()
      Returns the modification count of the object.
      java.lang.String getName()
      Returns the name of the object.
      java.lang.String getType()
      Returns the type of the object, for example JOBP, VARA or SCRI.
      abstract boolean isExecutable()
      Returns true if this Object can be executed.
      boolean isOldVersion()
      Returns true if the opened object is actually an older version of an object.
      void load​(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
      Fills the object from a XML document.
      void store​(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo, boolean override)
      Fills the XML document with the values from the object.
      void validate()
      Validates the object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UC4Object

        public UC4Object()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the object.
        Returns:
        name
      • getIdnr

        public java.lang.String getIdnr()
        Returns the ID of the object.
        Returns:
        ID
      • getType

        public java.lang.String getType()
        Returns the type of the object, for example JOBP, VARA or SCRI.
        Returns:
        type
      • docu

        public DocuContainer docu()
        This method provides access to the text and structured documentation of an object.
        Returns:
        Documentation
      • getAccess

        public java.lang.String getAccess()
        Returns if this object is opened read only.
        Returns:
        String containing the access field
      • getModCount

        public int getModCount()
        Returns the modification count of the object.
        Returns:
        modification count
      • isExecutable

        public abstract boolean isExecutable()
        Returns true if this Object can be executed.
        Returns:
        true if the Object can be executed, false if not.
      • validate

        public void validate()
                      throws java.io.InvalidObjectException
        Validates the object. If the object is not valid an InvalidObjectException is thrown.
        Throws:
        java.io.InvalidObjectException - If the object is not valid
      • load

        public void load​(com.uc4.util.XMLDocument doc,
                         ConnectionAttributes session)
        Fills the object from a XML document.
        Parameters:
        doc - XML Document
        session - Session information
      • store

        public void store​(com.uc4.util.XMLDocument doc,
                          org.w3c.dom.Element request,
                          ConnectionAttributes sessionInfo,
                          boolean override)
        Fills the XML document with the values from the object.
        Parameters:
        doc - XML document
        request - Request element
        sessionInfo - Information about the current session
        override - Override existing object
      • isOldVersion

        public boolean isOldVersion()
        Returns true if the opened object is actually an older version of an object.
        Returns:
        true if the opened object is actually an older version of an object.