Class JDFAudit

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
All Implemented Interfaces:
Serializable, Cloneable, Comparator<JDFAudit>, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo
Direct Known Subclasses:
JDFAutoCreated, JDFAutoDeleted, JDFAutoMerged, JDFAutoModified, JDFAutoNotification, JDFAutoPhaseTime, JDFAutoProcessRun, JDFAutoResourceAudit, JDFAutoSpawned

public class JDFAudit extends JDFAutoAudit implements Comparator<JDFAudit>
This class represents a JDF-Audit which handles individual Audit elements
See Also:
  • Constructor Details

    • JDFAudit

      public JDFAudit(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
      Constructor for JDFAudit
      Parameters:
      myOwnerDocument -
      qualifiedName -
    • JDFAudit

      public JDFAudit(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
      Constructor for JDFAudit
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
    • JDFAudit

      public JDFAudit(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
  • Method Details

    • getTheElementInfo

      protected ElementInfo getTheElementInfo()
      Overrides:
      getTheElementInfo in class JDFElement
      Returns:
      the elementinfo
      See Also:
    • toString

      public String toString()
      toString
      Overrides:
      toString in class KElement
      Returns:
      String
      See Also:
    • compare

      public int compare(JDFAudit a1, JDFAudit a2)
      sort by timestamp
      Specified by:
      compare in interface Comparator<JDFAudit>
      Parameters:
      a1 - an audit
      a2 - another audit
      Returns:
      See Also:
    • setSeverity

      @Deprecated public void setSeverity(JDFAudit.EnumSeverity s)
      Deprecated.
      - only valid in the respective subclasses
      SetSeverity
      Parameters:
      s -
    • getSeverity

      @Deprecated public JDFAudit.EnumSeverity getSeverity()
      Deprecated.
      - only valid in the respective subclasses
      GetSeverity
      Returns:
      EnumSeverity
    • setStatus

      public void setStatus(JDFElement.EnumNodeStatus s)
      SetStatus
      Overrides:
      setStatus in class JDFElement
      Parameters:
      s -
    • setEndStatus

      @Deprecated public void setEndStatus(JDFElement.EnumNodeStatus s)
      Deprecated.
      - only valid in the respective subclasses
      SetEndStatus
      Parameters:
      s -
    • getEndStatus

      protected JDFElement.EnumNodeStatus getEndStatus()
      GetEndStatus
      Returns:
      JDFElement.EnumNodeStatus
    • getAuditType

      public JDFAudit.EnumAuditType getAuditType()
      GetAuditType
      Returns:
      EnumAuditType
    • getPhase

      Deprecated.
      use JDFPhaseTime.getStatus()
      GetPhase
      Returns:
      JDFElement.EnumNodeStatus
    • setPart

      @Deprecated public void setPart(JDFAttributeMap m)
      Deprecated.
      2005-10-20 - use setPartMap() in the various subclasses instead
      SetPart
      Parameters:
      m -
    • getPartMapVector

      public VJDFAttributeMap getPartMapVector()
      get part map vector
      Overrides:
      getPartMapVector in class JDFElement
      Returns:
      VJDFAttributeMap: vector of mAttribute, one for each part
    • getPartMapArray

      public JDFAttributeMapArray getPartMapArray()
      get part map array
      Overrides:
      getPartMapArray in class JDFElement
      Returns:
      array of attribute, one for each part
    • setRef

      public void setRef(JDFAudit previous)
      Set attribute refID to the ID of previous
      Parameters:
      previous - the previous audit that is referenced
    • setBy

      @Deprecated public void setBy(String by)
      Deprecated.
      2005-09-01 use setAuthor()
      SetBy
      Parameters:
      by -
    • updateAgent

      public void updateAgent(String by)
      Parameters:
      by -
    • software

      public static String software()
      Software
      Returns:
      String
    • init

      public boolean init()
      init
      Overrides:
      init in class JDFElement
      Returns:
      boolean
      See Also:
    • getIDPrefix

      public String getIDPrefix()
      Description copied from class: KElement
      getIDPrefix
      Overrides:
      getIDPrefix in class KElement
      Returns:
      the default ID prefix of non-overwritten JDF elements
      See Also:
    • setTimeStamp

      @Deprecated public void setTimeStamp()
      Deprecated.
      2005-12-02 use setTimeStamp(null)
      SetTimeStamp
    • getTimeStampDate

      @Deprecated public JDFDate getTimeStampDate()
      Deprecated.
      - use getTimeStamp
      (12) get JDFDate attribute TimeStamp
      Returns:
      JDFDate the value of the attribute
    • getAuditPool

      public JDFAuditPool getAuditPool()
      Returns:
      the parent audit pool
    • createUpdateAudit

      public JDFAudit createUpdateAudit()
      create an update audit for this
      Returns:
      a new audit that updates this
    • getUpdatedPreviousAudit

      public JDFAudit getUpdatedPreviousAudit()
      get the previous updated audit that was updated by this
      Returns:
      the audit that was replaced by this
    • getStaticAgentName

      public static String getStaticAgentName()
      Gets the default static AgentName that is used to preset @AgentName when generating a new Audit
      Returns:
      Returns the m_strAgentName.
    • setStaticAgentName

      public static void setStaticAgentName(String agentName)
      sets the default static AgentName that is used to preset @AgentName when generating a new Audit
      Parameters:
      agentName - The m_strAgentName to set.
    • getStaticAuthor

      public static String getStaticAuthor()
      Gets the default static Author that is used to preset @AgentName when generating a new Audit
      Returns:
      Returns the m_Author.
    • setStaticAuthor

      public static void setStaticAuthor(String author)
      sets the default static Author that is used to preset @Author when generating a new Audit
      Parameters:
      author - The m_strAuthor to set.
    • getStaticAgentVersion

      public static String getStaticAgentVersion()
      gets the default static AgentVersion that is used to preset @AgentName when generating a new Audit
      Returns:
      sTRING the m_strAgentVersion.
    • setStaticAgentVersion

      public static void setStaticAgentVersion(String agentVersion)
      Sets the default static AgentVersion that is used to preset @AgentName when generating a new Audit
      Parameters:
      agentVersion - The m_strAgentVersion to set.
    • getCreateEmployee

      public JDFEmployee getCreateEmployee(int iSkip)
      (26) getCreateEmployee
      Parameters:
      iSkip - number of elements to skip
      Returns:
      JDFEmployee the element
    • getEmployee

      public JDFEmployee getEmployee(int iSkip)
      (27) const get element Employee
      Parameters:
      iSkip - number of elements to skip
      Returns:
      JDFEmployee the element default is getEmployee(0)
    • getAllEmployee

      public Collection<JDFEmployee> getAllEmployee()
      Get all Employee from the current element
      Returns:
      Collection
    • appendEmployee

      public JDFEmployee appendEmployee() throws JDFException
      (30) append element Employee
      Returns:
      Throws:
      JDFException