Class JDFUsageCounter

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IStreamWriter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

    public class JDFUsageCounter
    extends JDFAutoUsageCounter
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFUsageCounter

        public JDFUsageCounter​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                               java.lang.String qualifiedName)
                        throws org.w3c.dom.DOMException
        Constructor for JDFUsageCounter
        Parameters:
        myOwnerDocument -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFUsageCounter

        public JDFUsageCounter​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                               java.lang.String myNamespaceURI,
                               java.lang.String qualifiedName)
                        throws org.w3c.dom.DOMException
        Constructor for JDFUsageCounter
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFUsageCounter

        public JDFUsageCounter​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                               java.lang.String myNamespaceURI,
                               java.lang.String qualifiedName,
                               java.lang.String myLocalName)
                        throws org.w3c.dom.DOMException
        Constructor for JDFUsageCounter
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        myLocalName -
        Throws:
        org.w3c.dom.DOMException
    • Method Detail

      • toString

        public java.lang.String toString()
        toString
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • setCounterTypes

        public void setCounterTypes​(JDFUsageCounter.EnumCounterType enumVar)
        (5) set attribute CounterTypes
        Parameters:
        enumVar - : the enumVar to set the attribute to
      • setCounterTypes

        public void setCounterTypes​(java.util.Vector<JDFUsageCounter.EnumCounterType> vVar)
        (5) set attribute CounterTypes
        Parameters:
        vVar - vector of EnumCounterType : the enumVar to set the attribute to
      • appendCounterType

        public void appendCounterType​(JDFUsageCounter.EnumCounterType cType)
        append a countertype to attribute CounterTypes
        Parameters:
        cType - EnumCounterType : the enumVar to set the attribute to
      • getEnumCounterTypes

        public java.util.Vector<JDFUsageCounter.EnumCounterType> getEnumCounterTypes()
        (9) get attribute Scope
        Returns:
        the value of the attribute
      • matchesString

        public boolean matchesString​(java.lang.String namedResLink)
        also checks for matching counterID or CounteType mangled with "_", e.g. UsageCounter:ID_CounterA UsageCounter:Black_SingleSided etc.
        Overrides:
        matchesString in class JDFResource
        Returns: