Exemplo n.º 1
0
        ///
        ///	 <summary> * get attribute MaxVersion, defaults to version if not set
        ///	 *  </summary>
        ///	 * <param name="bInherit"> if true recurse through ancestors when searching </param>
        ///	 * <returns> EnumVersion - attribute value
        ///	 *
        ///	 *         default - getMaxVersion(false) </returns>
        ///
        public override EnumVersion getMaxVersion()
        {
            string version = getAttribute(AttributeName.MAXVERSION, null, null);

            if (version == null)
            {
                return(getVersion(false));
            }

            return(EnumVersion.getEnum(version));
        }
Exemplo n.º 2
0
 ///
 ///	 <summary> * overrides the deprecated method JDFElement.getVersion()
 ///	 *  </summary>
 ///	 * <seealso cref= org.cip4.jdflib.core.JDFElement#getVersion()
 ///	 * @return </seealso>
 ///
 public new EnumVersion getVersion()
 {
     return(EnumVersion.getEnum(getAttribute(AttributeName.VERSION, null, null)));
 }
Exemplo n.º 3
0
 ///
 ///          <summary> * (9) get attribute MaxVersion </summary>
 ///          * <returns> the value of the attribute </returns>
 ///
 public virtual EnumVersion getMaxVersion()
 {
     return(EnumVersion.getEnum(getAttribute(AttributeName.MAXVERSION, null, null)));
 }
Exemplo n.º 4
0
 static JDFAutoAncestor()
 {
     atrInfoTable[0]  = new AtrInfoTable(AttributeName.ACTIVATION, 0x33333333, AttributeInfo.EnumAttributeType.enumeration, EnumActivation.getEnum(0), null);
     atrInfoTable[1]  = new AtrInfoTable(AttributeName.FILENAME, 0x33333333, AttributeInfo.EnumAttributeType.URL, null, null);
     atrInfoTable[2]  = new AtrInfoTable(AttributeName.ICSVERSIONS, 0x33333311, AttributeInfo.EnumAttributeType.NMTOKENS, null, null);
     atrInfoTable[3]  = new AtrInfoTable(AttributeName.JOBID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[4]  = new AtrInfoTable(AttributeName.JOBPARTID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[5]  = new AtrInfoTable(AttributeName.MAXVERSION, 0x33333311, AttributeInfo.EnumAttributeType.JDFJMFVersion, EnumVersion.getEnum(0), null);
     atrInfoTable[6]  = new AtrInfoTable(AttributeName.NODEID, 0x22222222, AttributeInfo.EnumAttributeType.NMTOKEN, null, null);
     atrInfoTable[7]  = new AtrInfoTable(AttributeName.PROJECTID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[8]  = new AtrInfoTable(AttributeName.RELATEDJOBID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[9]  = new AtrInfoTable(AttributeName.RELATEDJOBPARTID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[10] = new AtrInfoTable(AttributeName.SPAWNID, 0x33333331, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[11] = new AtrInfoTable(AttributeName.STATUS, 0x33333333, AttributeInfo.EnumAttributeType.enumeration, EnumNodeStatus.getEnum(0), null);
     atrInfoTable[12] = new AtrInfoTable(AttributeName.STATUSDETAILS, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[13] = new AtrInfoTable(AttributeName.TEMPLATE, 0x33333331, AttributeInfo.EnumAttributeType.boolean_, null, "false");
     atrInfoTable[14] = new AtrInfoTable(AttributeName.TEMPLATEID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[15] = new AtrInfoTable(AttributeName.TEMPLATEVERSION, 0x33333311, AttributeInfo.EnumAttributeType.string_, null, null);
     atrInfoTable[16] = new AtrInfoTable(AttributeName.TYPE, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null);
     atrInfoTable[17] = new AtrInfoTable(AttributeName.TYPES, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKENS, null, null);
     atrInfoTable[18] = new AtrInfoTable(AttributeName.VERSION, 0x33333333, AttributeInfo.EnumAttributeType.JDFJMFVersion, null, null);
     elemInfoTable[0] = new ElemInfoTable(ElementName.CUSTOMERINFO, 0x66666661);
     elemInfoTable[1] = new ElemInfoTable(ElementName.NODEINFO, 0x66666661);
 }
Exemplo n.º 5
0
 static JDFAutoJMF()
 {
     atrInfoTable[0]  = new AtrInfoTable(AttributeName.DEVICEID, 0x33333333, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[1]  = new AtrInfoTable(AttributeName.ICSVERSIONS, 0x33333111, AttributeInfo.EnumAttributeType.NMTOKENS, null, null);
     atrInfoTable[2]  = new AtrInfoTable(AttributeName.MAXVERSION, 0x33333111, AttributeInfo.EnumAttributeType.JDFJMFVersion, EnumVersion.getEnum(0), null);
     atrInfoTable[3]  = new AtrInfoTable(AttributeName.RESPONSEURL, 0x33333311, AttributeInfo.EnumAttributeType.URL, null, null);
     atrInfoTable[4]  = new AtrInfoTable(AttributeName.SENDERID, 0x22222222, AttributeInfo.EnumAttributeType.shortString, null, null);
     atrInfoTable[5]  = new AtrInfoTable(AttributeName.TIMESTAMP, 0x22222222, AttributeInfo.EnumAttributeType.dateTime, null, null);
     atrInfoTable[6]  = new AtrInfoTable(AttributeName.VERSION, 0x22222222, AttributeInfo.EnumAttributeType.JDFJMFVersion, null, null);
     elemInfoTable[0] = new ElemInfoTable(ElementName.COMMAND, 0x33333333);
     elemInfoTable[1] = new ElemInfoTable(ElementName.ACKNOWLEDGE, 0x33333333);
     elemInfoTable[2] = new ElemInfoTable(ElementName.RESPONSE, 0x33333333);
     elemInfoTable[3] = new ElemInfoTable(ElementName.SIGNAL,0x33333333);
     elemInfoTable[4] = new ElemInfoTable(ElementName.QUERY,0x33333333);
     elemInfoTable[5] = new ElemInfoTable(ElementName.REGISTRATION,0x33333333);
 }