Exemplo n.º 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>
 ///
 public MISGoldenTicket(int icsLevel, EnumVersion jdfVersion, int jmfLevel)
     : base(2, jdfVersion) // mis always requires base 2
 {
     misICSLevel = icsLevel;
     jmfICSLevel = jmfLevel;
     fillCatMaps();
 }
Exemplo n.º 2
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>
 ///
 public BaseGoldenTicket(int icsLevel, EnumVersion jdfVersion)
 {
     baseICSLevel     = icsLevel;
     theVersion       = jdfVersion == null ? EnumVersion.Version_1_3 : jdfVersion;
     theStatusCounter = new StatusCounter(null, null, null);
     JDFElement.setLongID(false);
 }
Exemplo n.º 3
0
 protected internal virtual void setVersion()
 {
     if (theVersion == null)
     {
         theVersion = theNode.getVersion(true);
     }
     if (theVersion == null)
     {
         theVersion = JDFElement.getDefaultJDFVersion();
     }
 }
Exemplo n.º 4
0
 ///
 ///	 <summary> * create a BaseGoldenTicket
 ///	 *  </summary>
 ///	 * <param name="parent">
 ///	 *  </param>
 ///
 public BaseGoldenTicket(BaseGoldenTicket parent)
 {
     baseICSLevel           = parent.baseICSLevel;
     theVersion             = parent.theVersion;
     theStatusCounter       = new StatusCounter(null, null, null);
     bExpandGrayBox         = parent.bExpandGrayBox;
     bPartitionedPlateMedia = parent.bPartitionedPlateMedia;
     cols          = new VString(parent.cols);
     colsActual    = new VString(parent.colsActual);
     nCols         = parent.nCols;
     devID         = parent.devID;
     good          = parent.good;
     waste         = parent.waste;
     paperMedia    = parent.paperMedia;
     partsAtOnce   = parent.partsAtOnce;
     theParentNode = parent.getNode();
     vParts        = new VJDFAttributeMap(parent.vParts);
     partIDKeys    = new VString(parent.partIDKeys);
     workStyle     = parent.workStyle;
     JDFElement.setLongID(false);
     parent.addKid(this);
 }
Exemplo n.º 5
0
        private string parseArgs(string[] commandLineArgs)
        {
            MyArgs args = new MyArgs(commandLineArgs, "?cmqPQvVntwU", "dlfLuhpTxX", null);

            if (args.boolParameter('?', false))
            {
                sysOut.println("JDFValidator:\n" + version + '\n' + usage);
                Application.Exit();
            }
            bWarning         = args.boolParameter('w', false);
            bTiming          = args.boolParameter('t', false);
            bQuiet           = args.boolParameter('q', false);
            bWarnDanglingURL = args.boolParameter('U', false);

            this.setPrint(!args.boolParameter('Q', false));
            xmlOutputName = args.parameterString('x');
            xslStyleSheet = args.parameterString('X');
            getTranslation(args);
            pOut = new XMLDoc("CheckOutput", null);
            KElement xmlRoot = pOut.getRoot();

            xmlRoot.setAttribute("Language", "EN");

            bool bVersion = !bQuiet || args.boolParameter('V', false);

            if (bVersion)
            {
                sysOut.println('\n' + version + '\n');
                sysOut.println(args.ToString());
                xmlRoot.setAttribute("Arguments", StringUtil.setvString(commandLineArgs, " ", null, null));
            }

            bPrintNameSpace = args.boolParameter('n', false);
            bMultiID        = args.boolParameter('m', false);

            if (args.hasParameter('h'))
            {
                proxyHost = args.parameterString('h');
                proxyPort = args.parameterString('p');
            }

            if (args.hasParameter('c'))
            {
                if (args.boolParameter('c', false))
                {
                    level = EnumValidationLevel.Complete;
                }
                else
                {
                    level = EnumValidationLevel.Incomplete;
                }
            }

            string parameterString = args.parameterString('L');

            if (parameterString != null)
            {
                setJDFSchemaLocation(new FileInfo(parameterString));
            }

            string schemaLocation0 = args.parameterString('l');

            // convert "," to blank
            if (schemaLocation0 != null)
            {
                VString vs = new VString(schemaLocation0, JDFConstants.COMMA);
                if (vs.Count % 2 != 0)
                {
                    sysOut.println("error in schema location: format is \"NameSpaceURI1,Location1,NameSpaceURI2,Location2\"\n - bailing out!" + usage);
                    Application.Exit();
                }
                schemaLocation0 = StringUtil.setvString(vs, JDFConstants.BLANK, JDFConstants.EMPTYSTRING, JDFConstants.EMPTYSTRING);
                schemaLocation += schemaLocation0;
            }

            if (args.hasParameter('d'))
            {
                devCapFile = args.parameterString('d');
                FileInfo fDC = UrlUtil.urlToFile(devCapFile);
                if (fDC == null || !fDC.Exists)
                {
                    sysOut.println("Error reading devcap file: " + devCapFile + "\n - bailing out!\n" + usage);
                    Application.Exit();
                }
            }

            bValidate = (args.boolParameter('v', false)) || (schemaLocation != null);
            string jdfVersion = args.parameterString('f');

            if (jdfVersion != null)
            {
                EnumVersion v = EnumVersion.getEnum(jdfVersion);
                JDFElement.setDefaultJDFVersion(v);
                JDFVersions.ForceVersion = true;
            }

            if (args.nargs() == 0)
            {
                sysOut.println(args.usage(usage));
                Application.Exit();
            }

            testlists = EnumFitsValue.Allowed;
            if (args.boolParameter('P', false))
            {
                testlists = EnumFitsValue.Present;
            }

            string url = args.parameterString('u');

            setAllFiles(args);
            return(url);
        }