Class JDFNotification

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
All Implemented Interfaces:
Serializable, Cloneable, Comparator<JDFAudit>, IMatches, INodeIdentifiable, ISignalAudit, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFNotification extends JDFAutoNotification implements INodeIdentifiable, ISignalAudit, IMatches
See Also:
  • Constructor Details

    • JDFNotification

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

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

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

    • toString

      public String toString()
      toString()
      Overrides:
      toString in class JDFAudit
      Returns:
      String
      See Also:
    • getTheAttributeInfo

      protected AttributeInfo getTheAttributeInfo()
      Overrides:
      getTheAttributeInfo in class JDFAutoNotification
      Returns:
    • getTheElementInfo

      protected ElementInfo getTheElementInfo()
      Overrides:
      getTheElementInfo in class JDFAutoNotification
      Returns:
      the elementinfo
      See Also:
    • getPartMapVector

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

      public void setPartMapVector(VJDFAttributeMap vParts)
      set all parts to those defined in vParts
      Overrides:
      setPartMapVector in class JDFElement
      Parameters:
      vParts - vector of attribute maps for the parts
    • setPartMap

      public void setPartMap(JDFAttributeMap mPart)
      set all parts to those defined by mPart
      Overrides:
      setPartMap in class JDFElement
      Parameters:
      mPart - attribute map for the part to set
    • removePartMap

      public void removePartMap(JDFAttributeMap mPart)
      remove the part defined by mPart
      Overrides:
      removePartMap in class JDFElement
      Parameters:
      mPart - attribute map for the part to remove
    • hasPartMap

      public boolean hasPartMap(JDFAttributeMap mPart)
      check whether the part defined in mPart is included
      Overrides:
      hasPartMap in class JDFElement
      Parameters:
      mPart - attribute map for the part to remove
      Returns:
      boolean - returns true if the part exists
    • getCreateBarcode

      public JDFBarcode getCreateBarcode()
      get element Barcode, create if it doesn't exist
      Returns:
      JDFBarcode: the element
    • appendBarcode

      public JDFBarcode appendBarcode()
      append element Barcode
      Returns:
      JDFBarcode: the element
    • getBarcode

      public JDFBarcode getBarcode()
      get element Barcode
      Returns:
      JDFBarcode: the element
    • getCreateFCNKey

      public JDFFCNKey getCreateFCNKey()
      get element FCNKey, create if it doesn't exist
      Returns:
      JDFFCNKey: the element
    • appendFCNKey

      public JDFFCNKey appendFCNKey()
      append element FCNKey
      Returns:
      JDFFCNKey: the element
    • getFCNKey

      public JDFFCNKey getFCNKey()
      get element FCNKey
      Returns:
      JDFFCNKey: the element
    • getCreateSystemTimeSet

      public JDFSystemTimeSet getCreateSystemTimeSet()
      get element SystemTimeSet, create if it doesn't exist
      Returns:
      JDFSystemTimeSet: the element
    • appendSystemTimeSet

      public JDFSystemTimeSet appendSystemTimeSet()
      append element SystemTimeSet
      Returns:
      JDFSystemTimeSet: the element
    • getSystemTimeSet

      public JDFSystemTimeSet getSystemTimeSet()
      get element SystemTimeSet
      Returns:
      JDFSystemTimeSet: the element
    • getCreateCounterReset

      public JDFCounterReset getCreateCounterReset()
      get element CreateCounterReset, create if it doesn't exist
      Returns:
      JDFCreateCounterReset: the element
    • appendCounterReset

      public JDFCounterReset appendCounterReset()
      append element CreateCounterReset
      Returns:
      JDFCreateCounterReset: the element
    • getCounterReset

      public JDFCounterReset getCounterReset()
      get element CreateCounterReset
      Returns:
      JDFCreateCounterReset: the element
    • getCommentText

      public String getCommentText()
      get comment text if available,
      Returns:
      String the comment text, else null
    • getCreateError

      public JDFError getCreateError()
      get element Error, create if it doesn't exist
      Returns:
      JDFError: the element
    • appendError

      public JDFError appendError()
      append element Error
      Returns:
      JDFError: the element
    • getError

      public JDFError getError()
      get element Error
      Returns:
      JDFError: the element
    • getCreateEvent

      public JDFEvent getCreateEvent()
      get element Event, create if it doesn't exist
      Returns:
      JDFEvent: the element
    • appendEvent

      public JDFEvent appendEvent()
      append element Event
      Returns:
      JDFEvent: the element
    • setEvent

      public JDFEvent setEvent(String eventID, String eventValue, String comment)
      set this to an event, append the Event element and optionally the comment
      overwrites existing values
      Parameters:
      eventID - Event/@EventID to set
      eventValue - Event/@EventValue to set
      comment - the comment text, if null no comment is set
      Returns:
      the newly created event
    • setNode

      public void setNode(JDFNode n)
    • setNode

      public void setNode(NodeIdentifier identifier)
      Parameters:
      identifier -
    • appendNotificationDetails

      public JDFElement appendNotificationDetails(JDFNotification.EnumNotificationDetails details)
      append one of the predefined notification details
      Parameters:
      details -
      Returns:
    • getCreateNotificationDetails

      public JDFElement getCreateNotificationDetails(JDFNotification.EnumNotificationDetails details)
      append one of the predefined notification details
      Parameters:
      details -
      Returns:
    • getNotificationDetails

      public JDFElement getNotificationDetails()
      get the predefined notification details
      Parameters:
      details -
      Returns:
    • getNotificationDetailsType

      public JDFNotification.EnumNotificationDetails getNotificationDetailsType()
      Returns:
    • getEvent

      public JDFEvent getEvent()
      get element Event
      Returns:
      JDFEvent: the element
    • getCreateMilestone

      public JDFMilestone getCreateMilestone()
      get element Milestone, create if it doesn't exist
      Returns:
      JDFMilestone: the element
    • appendMilestone

      public JDFMilestone appendMilestone()
      append element Milestone
      Returns:
      JDFMilestone: the element
    • getMilestone

      public JDFMilestone getMilestone()
      get element Milestone
      Returns:
      JDFMilestone: the element
    • getIdentifier

      public NodeIdentifier getIdentifier()
      gets the NodeIdetifier that matches this
      Specified by:
      getIdentifier in interface INodeIdentifiable
      Returns:
      the matching node identifier
    • setIdentifier

      public void setIdentifier(NodeIdentifier ni)
      Specified by:
      setIdentifier in interface INodeIdentifiable
      Parameters:
      ni -
      See Also:
    • toSignalJMF

      public JDFJMF toSignalJMF()
      creates a JDFJMF that corresponds to this
      Specified by:
      toSignalJMF in interface ISignalAudit
      Returns:
      JDFJMF a JMF with a Signal that matches this
      See Also:
    • matches

      public boolean matches(Object subset)
      Description copied from interface: IMatches
      returns true if subset somehow matches this the semantics are defined by the filtering algorithm, thus it could be a filter or a subset i.e. subset contains either equivalent elements or null and no non-matching elements matches(null) always returns true
      Specified by:
      matches in interface IMatches
      Parameters:
      subset - the object to filter against
      Returns:
      true if it matches
      See Also:
    • setSeverity

      public void setSeverity(JDFAudit.EnumSeverity s)
      SetSeverity
      Overrides:
      setSeverity in class JDFAudit
      Parameters:
      s -
    • getSeverity

      public JDFAudit.EnumSeverity getSeverity()
      GetSeverity
      Overrides:
      getSeverity in class JDFAudit
      Returns:
      EnumSeverity