Class JDFDevCap

    • Constructor Detail

      • JDFDevCap

        public JDFDevCap​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                         java.lang.String qualifiedName)
        Constructor for JDFDevCap
        Parameters:
        myOwnerDocument -
        qualifiedName -
      • JDFDevCap

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

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

      • toString

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

        public boolean init()
        all devcap elements should have an id
        Overrides:
        init in class JDFElement
        Returns:
        boolean true always
        See Also:
        KElement.init()
      • setDevCapRefs

        public void setDevCapRefs​(VString value)
        set attribute DevCapRefs
        Overrides:
        setDevCapRefs in class JDFAutoDevCap
        Parameters:
        value - the value to set the attribute to
      • setID

        public void setID​(java.lang.String value)
        set attribute ID
        Overrides:
        setID in class JDFAutoDevCap
        Parameters:
        value - the value to set the attribute to
      • getID

        public java.lang.String getID()
        get String attribute ID
        Overrides:
        getID in class JDFAutoDevCap
        Returns:
        String: the value of the attribute
      • getIDPrefix

        protected java.lang.String getIDPrefix()
        Description copied from class: KElement
        getIDPrefix
        Overrides:
        getIDPrefix in class KElement
        Returns:
        the default ID prefix of non-overwritten JDF elements
      • getDevCap

        public JDFDevCap getDevCap​(int iSkip)
        get iSkip'th element DevCap
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        the value of the attribute
      • getCreateDevCap

        public JDFDevCap getCreateDevCap​(int iSkip)
        get iSkip'th element DevCap, create if it doesn't exist
        Parameters:
        iSkip - number of elements to skip
        Returns:
        the value of the attribute
      • appendDevCap

        public JDFDevCap appendDevCap()
        append element DevCap
        Returns:
        the appended element
      • appendDevCapRefs

        public void appendDevCapRefs​(JDFDevCap dc)
        append dc/@ID to the value of devCap/@ID
        Parameters:
        dc - the devCap to append
      • appendDevCapRefs

        public void appendDevCapRefs​(java.lang.String dcID)
        append dc/@ID to the value of devCap/@ID
        Parameters:
        dcID -
      • getBooleanState

        public JDFBooleanState getBooleanState​(int iSkip)
        gets the iSkip'th existing BooleanState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFBooleanState: the existing BooleanState
      • getBooleanState

        public JDFBooleanState getBooleanState​(java.lang.String nam)
        gets an existing BooleanState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended BooleanState
        Returns:
        JDFBooleanState: the existing BooleanState
      • getCreateBooleanState

        @Deprecated
        public JDFBooleanState getCreateBooleanState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateBooleanState

        public JDFBooleanState getCreateBooleanState​(java.lang.String nam)
        gets a NumberState with @Name="name", appends it if it does not exist
        Parameters:
        nam - the name attribute of the newly appended NumberState
        Returns:
        JDFNumberState: the existing or newly appended NumberState
      • appendBooleanState

        @Deprecated
        public JDFBooleanState appendBooleanState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendBooleanState

        public JDFBooleanState appendBooleanState​(java.lang.String nam)
        appends a BooleanState with @Name="name"
        Parameters:
        nam - the name attribute of the newly appended BooleanState
        Returns:
        JDFBooleanState: the newly appended BooleanState
      • getIntegerState

        public JDFIntegerState getIntegerState​(int iSkip)
        gets the iSkip'th existing IntegerState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFIntegerState: the existing IntegerState
      • getIntegerState

        public JDFIntegerState getIntegerState​(java.lang.String nam)
        gets an existing IntegerState with @Name="name"
        Parameters:
        nam - the name attribute of the newly appended IntegerState
        Returns:
        JDFIntegerState: the existing IntegerState
      • getCreateIntegerState

        @Deprecated
        public JDFIntegerState getCreateIntegerState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateIntegerState

        public JDFIntegerState getCreateIntegerState​(java.lang.String nam)
        gets an IntegerState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the name attribute of the newly appended IntegerState
        Returns:
        JDFIntegerState: the existing or newly appended IntegerState
      • appendIntegerState

        public JDFIntegerState appendIntegerState()
        append an IntegerState with no name set
        Returns:
        JDFIntegerState: the newly appended IntegerState
      • appendIntegerState

        public JDFIntegerState appendIntegerState​(java.lang.String nam)
        appends an IntegerState with @Name="name"
        Parameters:
        name - the Name attribute of the newly appended IntegerState
        Returns:
        JDFIntegerState: the newly appended IntegerState
      • getNumberState

        public JDFNumberState getNumberState​(int iSkip)
        gets the iSkip'th existing NumberState
        Parameters:
        iSkip - number of elements to skip
        Returns:
        JDFNumberState: the existing NumberState
      • getNumberState

        public JDFNumberState getNumberState​(java.lang.String nam)
        gets an existing NumberState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended NumberState
        Returns:
        JDFNumberState: the existing NumberState
      • getCreateNumberState

        @Deprecated
        public JDFNumberState getCreateNumberState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateNumberState

        public JDFNumberState getCreateNumberState​(java.lang.String nam)
        gets a NumberState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended NumberState
        Returns:
        JDFNumberState: the existing or newly appended NumberState
      • appendNumberState

        public JDFNumberState appendNumberState​(java.lang.String nam)
        appends a NumberState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended NumberState
        Returns:
        JDFNumberState: the newly appended NumberState
      • appendNumberState

        @Deprecated
        public JDFNumberState appendNumberState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getEnumerationState

        public JDFEnumerationState getEnumerationState​(int iSkip)
        gets the iSkip'th existing EnumerationState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFEnumerationState: the existing EnumerationState
      • getEnumerationState

        public JDFEnumerationState getEnumerationState​(java.lang.String nam)
        gets an existing EnumerationState with @Name="name"
        Parameters:
        name - the Name attribute of the newly appended EnumerationState
        Returns:
        JDFEnumerationState: the existing EnumerationState
      • getCreateEnumerationState

        @Deprecated
        public JDFEnumerationState getCreateEnumerationState​(int iSkip)
        Deprecated.
        gets the iSkip'th existing EnumerationState, creates it if it doesn't exist
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFEnumerationState: the existing EnumerationState
      • getCreateEnumerationState

        public JDFEnumerationState getCreateEnumerationState​(java.lang.String nam)
        gets a EnumerationState with @Name="name", appends it if it does not exist
        Parameters:
        nam - the name attribute of the newly appended EnumerationState
        Returns:
        JDFEnumerationState the existing or newly appended EnumerationState
      • appendEnumerationState

        @Deprecated
        public JDFEnumerationState appendEnumerationState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendEnumerationState

        public JDFEnumerationState appendEnumerationState​(java.lang.String nam)
        appends a NumberState with @Name="name"
        Parameters:
        nam - the name attribute of the newly appended NumberState
        Returns:
        JDFNumberState: the newly appended NumberState
      • getNameState

        public JDFNameState getNameState​(int iSkip)
        gets the iSkip'th existing NameState
        Parameters:
        iSkip - number of elements to skip
        Returns:
        JDFNameState: the existing NameState
      • getNameState

        public JDFNameState getNameState​(java.lang.String nam)
        gets an existing NameState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended NameState
        Returns:
        JDFNameState: the existing NameState
      • getCreateNameState

        @Deprecated
        public JDFNameState getCreateNameState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateNameState

        public JDFNameState getCreateNameState​(java.lang.String nam)
        gets a NameState with @Name="name", appends it if it does not exist
        Parameters:
        nam - the name attribute of the newly appended NameState
        Returns:
        JDFNameState: the existing or newly appended NameState
      • appendNameState

        @Deprecated
        public JDFNameState appendNameState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendNameState

        public JDFNameState appendNameState​(java.lang.String nam)
        appends a NameState with @Name="name"
        Parameters:
        nam - the name attribute of the newly appended NameState
        Returns:
        JDFNameState: the newly appended NameState
      • getStringState

        public JDFStringState getStringState​(int iSkip)
        gets the iSkip'th existing StringState
        Parameters:
        iSkip - number of elements to skip
        Returns:
        JDFStringState: the existing StringState
      • getStringState

        public JDFStringState getStringState​(java.lang.String nam)
        gets an existing StringState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended StringState
        Returns:
        JDFStringState: the existing StringState
      • getCreateStringState

        @Deprecated
        public JDFStringState getCreateStringState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateStringState

        public JDFStringState getCreateStringState​(java.lang.String nam)
        gets a StringState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended StringState
        Returns:
        JDFStringState: the existing or newly appended StringState
      • appendStringState

        @Deprecated
        public JDFStringState appendStringState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendStringState

        public JDFStringState appendStringState​(java.lang.String nam)
        appends a StringState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended StringState
        Returns:
        JDFStringState: the newly appended StringState
      • getXYPairState

        public JDFXYPairState getXYPairState​(int iSkip)
        gets the iSkip'th existing XYPairState
        Parameters:
        iSkip - number of elements to skip
        Returns:
        JDFXYPairState: the existing XYPairState
      • getXYPairState

        public JDFXYPairState getXYPairState​(java.lang.String nam)
        gets an existing XYPairState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended XYPairState
        Returns:
        JDFXYPairState: the existing XYPairState
      • getCreateXYPairState

        @Deprecated
        public JDFXYPairState getCreateXYPairState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateXYPairState

        public JDFXYPairState getCreateXYPairState​(java.lang.String nam)
        gets a XYPairState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended XYPairState
        Returns:
        JDFXYPairState: the existing or newly appended XYPairState
      • appendXYPairState

        @Deprecated
        public JDFXYPairState appendXYPairState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendXYPairState

        public JDFXYPairState appendXYPairState​(java.lang.String nam)
        appends a XYPairState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended XYPairState
        Returns:
        JDFXYPairState: the newly appended XYPairState
      • getShapeState

        public JDFShapeState getShapeState​(int iSkip)
        gets the iSkip'th existing ShapeState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFShapeState the existing ShapeState
      • getShapeState

        public JDFShapeState getShapeState​(java.lang.String nam)
        gets an existing ShapeState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended ShapeState
        Returns:
        JDFShapeState: the existing ShapeState
      • getCreateShapeState

        @Deprecated
        public JDFShapeState getCreateShapeState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateShapeState

        public JDFShapeState getCreateShapeState​(java.lang.String nam)
        gets a ShapeState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended ShapeState
        Returns:
        JDFShapeState: the existing or newly appended ShapeState
      • appendShapeState

        @Deprecated
        public JDFShapeState appendShapeState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendShapeState

        public JDFShapeState appendShapeState​(java.lang.String nam)
        appends a ShapeState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended ShapeState
        Returns:
        JDFShapeState: the newly appended ShapeState
      • getMatrixState

        public JDFMatrixState getMatrixState​(int iSkip)
        gets the iSkip'th existing MatrixState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFMatrixState the existing MatrixState
      • getMatrixState

        public JDFMatrixState getMatrixState​(java.lang.String nam)
        gets an existing MatrixState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended MatrixState
        Returns:
        JDFMatrixState: the existing MatrixState
      • getCreateMatrixState

        @Deprecated
        public JDFMatrixState getCreateMatrixState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateMatrixState

        public JDFMatrixState getCreateMatrixState​(java.lang.String nam)
        gets a MatrixState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended MatrixState
        Returns:
        JDFMatrixState: the existing or newly appended MatrixState
      • appendMatrixState

        @Deprecated
        public JDFMatrixState appendMatrixState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendMatrixState

        public JDFMatrixState appendMatrixState​(java.lang.String nam)
        appends a MatrixState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended MatrixState
        Returns:
        JDFMatrixState: the newly appended MatrixState
      • getDateTimeState

        public JDFDateTimeState getDateTimeState​(int iSkip)
        gets the iSkip'th existing DateTimeState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFDateTimeState the existing DateTimeState
      • getDateTimeState

        public JDFDateTimeState getDateTimeState​(java.lang.String nam)
        gets an existing DateTimeState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended DateTimeState
        Returns:
        JDFDateTimeState: the existing DateTimeState
      • getCreateDateTimeState

        @Deprecated
        public JDFDateTimeState getCreateDateTimeState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateDateTimeState

        public JDFDateTimeState getCreateDateTimeState​(java.lang.String nam)
        gets a DateTimeState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended DateTimeState
        Returns:
        JDFDateTimeState: the existing or newly appended DateTimeState
      • appendDateTimeState

        @Deprecated
        public JDFDateTimeState appendDateTimeState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendDateTimeState

        public JDFDateTimeState appendDateTimeState​(java.lang.String nam)
        appends a DateTimeState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended DateTimeState
        Returns:
        JDFDateTimeState: the newly appended DateTimeState
      • getDurationState

        public JDFDurationState getDurationState​(int iSkip)
        gets the iSkip'th existing DurationState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFDurationState the existing DurationState
      • getDurationState

        public JDFDurationState getDurationState​(java.lang.String nam)
        gets an existing DurationState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended DurationState
        Returns:
        JDFDurationState: the existing DurationState
      • getCreateDurationState

        @Deprecated
        public JDFDurationState getCreateDurationState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateDurationState

        public JDFDurationState getCreateDurationState​(java.lang.String nam)
        gets a DurationState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended DurationState
        Returns:
        JDFDurationState: the existing or newly appended DurationState
      • appendDurationState

        @Deprecated
        public JDFDurationState appendDurationState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendDurationState

        public JDFDurationState appendDurationState​(java.lang.String nam)
        appends a DurationState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended DurationState
        Returns:
        JDFDurationState: the newly appended DurationState
      • getPDFPathState

        public JDFPDFPathState getPDFPathState​(int iSkip)
        gets the iSkip'th existing PDFPathState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFPDFPathState: the existing PDFPathState
      • getPDFPathState

        public JDFPDFPathState getPDFPathState​(java.lang.String nam)
        gets an existing PDFPathState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended PDFPathState
        Returns:
        JDFPDFPathState: the existing PDFPathState
      • getCreatePDFPathState

        @Deprecated
        public JDFPDFPathState getCreatePDFPathState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreatePDFPathState

        public JDFPDFPathState getCreatePDFPathState​(java.lang.String nam)
        gets a PDFPathState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended PDFPathState
        Returns:
        JDFPDFPathState: the existing or newly appended PDFPathState
      • appendPDFPathState

        @Deprecated
        public JDFPDFPathState appendPDFPathState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendPDFPathState

        public JDFPDFPathState appendPDFPathState​(java.lang.String nam)
        appends a PDFPathState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended PDFPathState
        Returns:
        JDFPDFPathState: the newly appended PDFPathState
      • getRectangleState

        public JDFRectangleState getRectangleState​(int iSkip)
        gets the iSkip'th existing RectangleState
        Parameters:
        iSkip - number of elements to skip (0 -> get first element)
        Returns:
        JDFRectangleState: the existing RectangleState
      • getRectangleState

        public JDFRectangleState getRectangleState​(java.lang.String nam)
        gets an existing RectangleState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended RectangleState
        Returns:
        JDFRectangleState: the existing RectangleState
      • getCreateRectangleState

        @Deprecated
        public JDFRectangleState getCreateRectangleState​(int iSkip)
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • getCreateRectangleState

        public JDFRectangleState getCreateRectangleState​(java.lang.String nam)
        gets a RectangleState with @Name="name", appends it if it does not yet exist
        Parameters:
        nam - the Name attribute of the newly appended RectangleState
        Returns:
        JDFRectangleState: the existing or newly appended RectangleState
      • appendRectangleState

        @Deprecated
        public JDFRectangleState appendRectangleState()
        Deprecated.
        use method with parameter (string) instead
        Returns:
      • appendRectangleState

        public JDFRectangleState appendRectangleState​(java.lang.String nam)
        appends a RectangleState with @Name="name"
        Parameters:
        nam - the Name attribute of the newly appended RectangleState
        Returns:
        JDFRectangleState: the newly appended RectangleState
      • getDevCapVector

        public final VElement getDevCapVector​(VElement devCaps,
                                              boolean bDirect)
        Gets of this the Vector of all direct child DevCap elements plus the referenced (by attribute DevCapRefs) reusable DevCap elements, that are located in DevCapPool
        Parameters:
        devCaps -
        bDirect -
        Returns:
        VElement - vector of all direct child DevCap elements plus the referenced reusable DevCap elements, that are located in DevCapPool.
      • stateReport

        public final KElement stateReport​(KElement e,
                                          JDFBaseDataTypes.EnumFitsValue testlists,
                                          JDFElement.EnumValidationLevel level,
                                          boolean ignoreExtensions,
                                          boolean bRecurse,
                                          KElement parentReport)
        Tests if the attributes and subelements of the given element match the corresponding States and DevCap subelements of this DevCap.
        Composes a detailed report of the found errors in XML form. If XMLDoc equals null - there are no errors
        Parameters:
        e - element to test
        testlists - FitsValue_Allowed or FitsValue_Present testlists that are specified for the State elements. (Will be used in fitsValue method of the State element)
        level - validation level
        Returns:
        XMLDoc - XMLDoc output of the error messages. If XMLDoc is null there are no errors.
        Element e fits the corresponding States and DevCap subelements of this DevCap.
      • getNamePath

        public final java.lang.String getNamePath​(boolean bRecurse)
        Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
        If this DevCap is located in DevCapPool and not in a DevCaps - it describes the reusable resource and DevCap root will have the attribute "Name" = value of DevCaps/@Name, but will have no info about DevCaps/@Context or DevCaps/@LinkUsage

        default: getNamePath(false)

        Parameters:
        bRecurse - if true, returns "DevCapsName/SubelemName1/SubelemName2/..."
        Returns:
        String - NamePath of this DevCap
      • getNamePathVector

        public final VString getNamePathVector​(boolean bRecurse)
        Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
        If this DevCap is located in DevCapPool and not in a DevCaps - it describes the reusable resource and DevCap root will have the attribute "Name" = value of DevCaps/@Name, but will have no info about DevCaps/@Context or DevCaps/@LinkUsage
        Parameters:
        bRecurse - if true, returns "DevCapsName/SubelemName1/SubelemName2/..."
        Returns:
        String - NamePath of this DevCap, null if no name is specified default: getNamePath(true)
      • getName

        public java.lang.String getName()
        gets String attribute Name, inherits from devcap or devcaps if necessary
        Overrides:
        getName in class JDFAutoDevCap
        Returns:
        String - the value of the attribute
      • getStates

        public VElement getStates​(boolean bDirect,
                                  java.lang.String id)
        return the vector of all states
        Parameters:
        bDirect - if false, recurse into child elements, else return only direct child states
        id - ID attribute of the requested string
        Returns:
        VElement
      • setMaxOccurs

        public void setMaxOccurs​(int value)
        Sets attribute MaxOccurs, also handles unbounded
        Overrides:
        setMaxOccurs in class JDFAutoDevCap
        Parameters:
        value - the value to set the attribute to
      • getMaxOccurs

        public int getMaxOccurs()
        Gets integer attribute MaxOccurs, also handles unbounded
        Overrides:
        getMaxOccurs in class JDFAutoDevCap
        Returns:
        int: the attribute value
      • getMatchingElementsFromParent

        public VElement getMatchingElementsFromParent​(KElement parent,
                                                      VElement vDevCap)
        gets the matching elements in the node that match this
        Parameters:
        node - the node to search in
        testValidity - if true, recusively check for validity of the elements, else only get children by name
        Returns:
        VElement - the element vector of matching elements, null if none were found
      • getAllMatchingElementsFromParent

        public VElement getAllMatchingElementsFromParent​(KElement parent)
        gets the matching elements in the node that match the nodename of this
        Parameters:
        node - the node to search in
        Returns:
        VElement - the element vector of matching elements, null if none were found
      • setDefaultsFromCaps

        public boolean setDefaultsFromCaps​(KElement element,
                                           boolean bAll)
        sets the element and attribute defaults
        Parameters:
        element - the element that is defaulted
        bAll - if false, only add if minOccurs>=1 and required=true or a default exists
        Returns:
        ignored
      • getInvalidAttributes

        public VString getInvalidAttributes​(JDFElement.EnumValidationLevel level,
                                            boolean bIgnorePrivate,
                                            int nMax)
        Description copied from class: JDFElement
        get invalid attributes
        Overrides:
        getInvalidAttributes in class JDFElement
        Parameters:
        level - validation level
        bIgnorePrivate - if true, do not worry about attributes in other namespaces
        nMax - maximum size of the returned vector
        Returns:
        VString - a vector of invalid attribute names
      • getModuleAvailability

        public JDFDeviceCap.EnumAvailability getModuleAvailability()
        get the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePool
        Returns:
      • appendModuleRef

        public JDFModuleCap appendModuleRef​(java.lang.String id)
        Description copied from interface: ICapabilityElement
        append moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap exists
        Specified by:
        appendModuleRef in interface ICapabilityElement
        Returns:
        JDFModuleCap the Modulecap that id refers tp