示例#1
0
 ///
 ///	 <summary> * create a BaseGoldenTicket
 ///	 *  </summary>
 ///	 * <param name="_icsLevel"> the level to init to (1,2 or 3) </param>
 ///	 * <param name="jdfVersion"> the version to generate a golden ticket for </param>
 ///	 * <param name="_jmfLevel"> level of jmf ICS to support </param>
 ///	 * <param name="_misLevel"> level of MIS ICS to support </param>
 ///	 * <param name="vPartMap"> list of parts to process </param>
 ///
 public MISPreGoldenTicket(int _icsLevel, EnumVersion jdfVersion, int _jmfLevel, int _misLevel, VJDFAttributeMap vPartMap)
     : base(_misLevel, jdfVersion, _jmfLevel)
 {
     partIDKeys = new VString("SignatureName,SheetName,Side,Separation", ",");
     vParts     = vPartMap;
     icsLevel   = _icsLevel;
 }
示例#2
0
        // private JDFMediaIntent mediaIntent;

        public ProductGoldenTicket(int _icsLevel, EnumVersion jdfVersion, int _jmfLevel, int _misLevel)
            : base(_misLevel, jdfVersion, _jmfLevel)
        {
            cols[4]  = "Blue"; // want hd blue here
            icsLevel = _icsLevel;
            devID    = null;
        }
示例#3
0
 ///
 ///	 <summary> * create a BaseGoldenTicket
 ///	 *  </summary>
 ///	 * <param name="_icsLevel"> the level to init to (1,2 or 3) </param>
 ///	 * <param name="jdfVersion"> the version to generate a golden ticket for </param>
 ///	 * <param name="_jmfLevel"> level of jmf ICS to support </param>
 ///	 * <param name="_misLevel"> level of MIS ICS to support </param>
 ///	 * <param name="isGrayBox"> if true, write a grayBox </param>
 ///	 * <param name="vPartMap"> the partmap vector for this node </param>
 ///
 public MISCPGoldenTicket(int _icsLevel, EnumVersion jdfVersion, int _jmfLevel, int _misLevel, bool isGrayBox, VJDFAttributeMap vPartMap)
     : base(_misLevel, jdfVersion, _jmfLevel)
 {
     icsLevel = _icsLevel;
     vParts   = vPartMap;
     grayBox  = isGrayBox;
     setup();
 }
示例#4
0
 ///
 ///	 <summary> * create a BaseGoldenTicket
 ///	 *  </summary>
 ///	 * <param name="icsLevel"> the level to init to (1,2 or 3) </param>
 ///	 * <param name="jdfVersion"> the version to generate a golden ticket for </param>
 ///	 * <param name="jmfLevel"> level of jmf ICS to support </param>
 ///	 * <param name="misLevel"> level of MIS ICS to support </param>
 ///	 * <param name="isGrayBox"> if true, write a grayBox </param>
 ///
 public MISFinGoldenTicket(int _icsLevel, EnumVersion jdfVersion, int _jmfLevel, int _misLevel, bool isGrayBox, VJDFAttributeMap vPartMap)
     : base(_misLevel, jdfVersion, _jmfLevel)
 {
     catMap.Add(MISFIN_SHEETFIN, new VString("Cutting Folding", null));
     partIDKeys = new VString("SignatureName,SheetName", ",");
     vParts     = vPartMap;
     icsLevel   = _icsLevel;
 }
示例#5
0
        ///
        ///	 <summary> * getIndexFromVersion
        ///	 *  </summary>
        ///	 * <param name="v">
        ///	 * @return </param>
        ///
        private static int getIndexFromVersion(EnumVersion v)
        {
            int i = v.getValue();

            if (forceVersion || (i <= 0) || (i > jdfVersions.Length))
            {
                i = JDFElement.getDefaultJDFVersion().getValue();
            }

            i--; // must be removed if unknown is removed
            return(i);
        }
示例#6
0
 ///
 ///	 <summary> * get the last jdf version where an attrinute of this type is valid
 ///	 *
 ///	 * @return </summary>
 ///
 public virtual EnumVersion getLastVersion()
 {
     for (int i = 7; i >= 0; i--)
     {
         long masked = elemValidityStatus & 0xFL << (4 * i);
         masked = masked >> (4 * i);
         if (masked == 2 || masked == 3 || masked == 5 || masked == 6)
         {
             return(EnumVersion.getEnum(i + 1));
         }
     }
     return(null);
 }
示例#7
0
 ///
 ///	 <summary> * get the first jdf version where an attribute of this type is valid
 ///	 *
 ///	 * @return </summary>
 ///
 public virtual EnumVersion getFirstVersion()
 {
     for (int i = 0; i < 8; i++)
     {
         long masked = atrValidityStatus & (0xFL << (4 * i));
         masked = masked >> (4 * i);
         if (masked == 2 || masked == 3)
         {
             return(EnumVersion.getEnum(i + 1));
         }
     }
     return(null);
 }
示例#8
0
        public AttributeInfo(AttributeInfo attrInfo_super, AtrInfoTable[] attrInfo_own)
        {
            // use AttributeInfo of super as a starting point
            if (attrInfo_super != null)
            {
                attribInfoTable = new Hashtable(attrInfo_super.attribInfoTable);
                version         = attrInfo_super.version;
            }

            // fill table with the attributes specific to this element type (if any)
            updateReplace(attrInfo_own);

            // now all schema-based knowledge should be in the attribute info table
        }
示例#9
0
        public virtual bool validAttribute(string key, string attribute, KElement.EnumValidationLevel level)
        {
            EnumAttributeType typ = getAttributeType(key);

            if (typ == null) // unknown attributes are by definition valid, the
            // check is done in the unknown method
            {
                return(true);
            }

            // get the correct enumeration lists
            ValuedEnum enu = null;

            if ((typ == EnumAttributeType.enumeration) || (typ == EnumAttributeType.enumerations))
            {
                enu = getAttributeEnum(key);
            }
            else if (typ == EnumAttributeType.JDFJMFVersion)
            {
                enu = EnumVersion.getEnum(0);
            }

            EnumAttributeValidity val = getAttributeValidity(key);

            if (val == EnumAttributeValidity.Unknown)
            {
                return(attribute == null);
            }
            else if (val == EnumAttributeValidity.Deprecated)
            {
                return((attribute == null) || EnumValidationLevel.isNoWarn(level));
            }
            else if (val == EnumAttributeValidity.None) // prerelease may be set
            // by schema validating
            // parser
            {
                return((attribute == null) || attribute.Equals(getAttributeDefault(key)) || EnumValidationLevel.isNoWarn(level));
            }
            else if ((val == EnumAttributeValidity.Optional) || ((level != EnumValidationLevel.Complete) && (level != EnumValidationLevel.RecursiveComplete)))
            {
                return((attribute == null) || validStringForType(attribute, typ, enu));
            }
            else if (val == EnumAttributeValidity.Required)
            {
                return((attribute != null) && validStringForType(attribute, typ, enu));
            }

            return(true);
        }
示例#10
0
        ///
        ///	 <summary> * Constructor
        ///	 *  </summary>
        ///	 * <param name="ElementInfo"> elemInfo_super: corresponding element info of super; if null: start from scratch, otherwise
        ///	 *            initialize from other ElementInfo </param>
        ///	 * <param name="ElemInfoTable"> [] elemInfo_own: table with element-specific element info </param>
        ///
        public ElementInfo(ElementInfo elemInfo_super, ElemInfoTable[] elemInfo_own)
        {
            // use ElementInfo of super as a starting point
            if (elemInfo_super != null)
            {
                elementInfoTable = new Hashtable(elemInfo_super.elementInfoTable);
                version          = elemInfo_super.version;
            }

            // fill table with the element info specific to this element type (if
            // any)
            updateAdd(elemInfo_own);

            // now all schema-based knowledge should be in the element info table
        }
示例#11
0
 protected internal JDFVersion(EnumVersion v, long m, long o)
 {
     version        = v;
     validityMask   = m;
     validityOffset = o;
 }
示例#12
0
 ///
 ///	 <summary> * getTheOffset
 ///	 *  </summary>
 ///	 * <param name="v"> </param>
 ///	 * <returns> Returns the theOffset. </returns>
 ///
 public static long getTheOffset(EnumVersion v)
 {
     return(jdfVersions[getIndexFromVersion(v)].validityOffset);
 }
示例#13
0
 ///
 ///	 <summary> * getTheMask
 ///	 *  </summary>
 ///	 * <param name="v"> the version to look for </param>
 ///	 * <returns> Returns the bit mask for isolating the appropriate validity bits. </returns>
 ///
 public static long getTheMask(EnumVersion v)
 {
     return(jdfVersions[getIndexFromVersion(v)].validityMask);
 }
示例#14
0
 public static void setDefaultVersion(EnumVersion v)
 {
     JDFElement.setDefaultJDFVersion(v);
 }
示例#15
0
 public virtual void setVersion(EnumVersion v)
 {
     version = v;
 }