Package org.enhydra.shark.xpdl

Examples of org.enhydra.shark.xpdl.XMLAttribute


   }

   protected void fillStructure () {
      // CUSTOM: Remove unused types
      // required
      XMLAttribute attrType=new XMLAttribute(this,"Type",
         true,
         new String[] {
//            XPDLConstants.PARTICIPANT_TYPE_RESOURCE_SET,
//            XPDLConstants.PARTICIPANT_TYPE_RESOURCE,
            XPDLConstants.PARTICIPANT_TYPE_ROLE,
View Full Code Here


    protected void fillStructure() {
        //CUSTOM
        refDeadlineCondition = new DeadlineCondition(this); // min=1, max=1
        ExceptionName refExceptionName = new ExceptionName(this); // min=1, max=1
        refDeadlineLimit = new DeadlineLimit(this); //min=1, max=1
        XMLAttribute attrExecution = new XMLAttribute(this, "Execution",
                false, new String[]{
                    XPDLConstants.EXECUTION_NONE,
                    XPDLConstants.EXECUTION_ASYNCHR,
                    XPDLConstants.EXECUTION_SYNCHR
                }, 1);

        attrDurationUnit = new XMLAttribute(this, "DurationUnit",
                false, new String[]{
                    XPDLConstants.DURATION_UNIT_D,
                    XPDLConstants.DURATION_UNIT_h,
                    XPDLConstants.DURATION_UNIT_m,
                    XPDLConstants.DURATION_UNIT_s,
View Full Code Here

        if (changedDeadlines != null && changedDeadlines.size() > 0) {
            List deadlineList = changedInfo.getChangedSubElements();
            Deadline changedDeadline = (Deadline) deadlineList.get(0);
            if (changedDeadline == this) {
                XMLAttribute durationUnit = (XMLAttribute) changedDeadline.get("DurationUnit");

                String changedDeadlineLimit = changedDeadline.getDeadlineLimit();
                if (changedDeadlineLimit != null && changedDeadlineLimit.trim().length() > 0) {
                    char durationUnitChar = durationUnit.toValue().charAt(0);
                    String variableCondition = "";
                    switch (durationUnitChar) {
                        case 'D':
                            variableCondition += (24 * 60 * 60 * 1000);
                            break;
View Full Code Here

        extPkgRefsToIds = new SequencedHashMap(((Package) el).extPkgRefsToIds);
        this.isTransient = ((Package) el).isTransient;
    }

    protected void fillStructure() {
        XMLAttribute attrId = new XMLAttribute(this, "Id", true); // required
        XMLAttribute attrName = new XMLAttribute(this, "Name", false);
        PackageHeader refPackageHeader = new PackageHeader(this);
        RedefinableHeader refRedefinableHeader = new RedefinableHeader(this); // min=0
        ConformanceClass refConformanceClass = new ConformanceClass(this); // min=0
        Script refScript = new Script(this); // min=0
        refScript.setType(Script.DEFAULT_TYPE);
View Full Code Here

    }

    protected void fillStructure() {

        //CUSTOM
        XMLAttribute attrDurationUnit;

        if (!JaWE.BASIC_MODE) {
            attrDurationUnit = new XMLAttribute(this, "DurationUnit",
                    false, new String[]{
                        XPDLConstants.DURATION_UNIT_NONE,
                        XPDLConstants.DURATION_UNIT_Y,
                        XPDLConstants.DURATION_UNIT_M,
                        XPDLConstants.DURATION_UNIT_D,
                        XPDLConstants.DURATION_UNIT_h,
                        XPDLConstants.DURATION_UNIT_m,
                        XPDLConstants.DURATION_UNIT_s
                    }, 0);
        } else {
            attrDurationUnit = new XMLAttribute(this, "DurationUnit",
                    false, new String[]{
                        XPDLConstants.DURATION_UNIT_NONE,
                        XPDLConstants.DURATION_UNIT_D,
                        XPDLConstants.DURATION_UNIT_h,
                        XPDLConstants.DURATION_UNIT_m,
View Full Code Here

        Length refLength = new Length(this); // min=0
        Description refDescription = new Description(this); // min=0
        ExtendedAttributes refExtendedAttributes = new ExtendedAttributes(this); // min=0

        //XMLAttribute attrName=new XMLAttribute(this,"Name", false);
        XMLAttribute attrIsArray = new XMLAttribute(this, "IsArray",
                false, new String[]{
                    XPDLConstants.DATA_FIELD_IS_ARRAY_TRUE,
                    XPDLConstants.DATA_FIELD_IS_ARRAY_FALSE
                }, 1);
View Full Code Here

    public Participant(Participants parent) {
        super(parent, true);
    }

    protected void fillStructure() {
        XMLAttribute attrName = new XMLAttribute(this, "Name", false);
        ParticipantType refParticipantType = new ParticipantType(this);
        Description refDescription = new Description(this); // min=0
        ExternalReference refExternalReference = new ExternalReference(this, false); // min=0
        ExtendedAttributes refExtendedAttributes = new ExtendedAttributes(this); // min=0
View Full Code Here

        super(parent, false);
    }

    protected void fillStructure() {
        //CUSTOM
        XMLAttribute attrType = new XMLAttribute(this, "Type", true); // required
        add(attrType);

        if (!JaWE.BASIC_MODE) {

            XMLAttribute attrVersion = new XMLAttribute(this, "Version", false);
            XMLAttribute attrGrammar = new XMLAttribute(this, "Grammar", false);


            add(attrVersion);
            add(attrGrammar);
        }
View Full Code Here

                System.err.println("\n\tElement type=" + el.toName());
            } else if (el instanceof XMLComplexElement) {
                List attributes = ((XMLComplexElement) el).getXMLAttributes();
                String str = "\n\tElement type=" + el.toName();
                for (int i = 0; i < attributes.size(); i++) {
                    XMLAttribute attr = (XMLAttribute) attributes.get(i);
                    str += "\n\t    " + i + ". attribute [" + attr.toName() + "," + attr.toValue() + "]";
                }
                List elems = ((XMLComplexElement) el).getXMLElements();
                for (int i = 0; i < elems.size(); i++) {
                    XMLElement attr = (XMLElement) elems.get(i);
                    if (attr instanceof XMLSimpleElement) {
                        str += "\n\t    " + i + ". simple el [" + attr.toName() + "," + attr.toValue() + "]";
                    } else {
                        toString(attr);
                    }
                }
                System.err.println(str);
            } else if (el instanceof XMLCollection) {
                String str = "\n\tElement type=" + el.toName();
                List elems = ((XMLCollection) el).toElements();
                for (int i = 0; i < elems.size(); i++) {
                    XMLElement attr = (XMLElement) elems.get(i);
                    if (attr instanceof XMLAttribute) {
                        str += "\n\t    " + i + ". attribute [" + attr.toName() + "," + attr.toValue() + "]";
                    }
                    if (attr instanceof XMLSimpleElement) {
                        str += "\n\t    " + i + ". simple el [" + attr.toName() + "," + attr.toValue() + "]";
                    } else {
                        toString(attr);
                    }
                }
                System.err.println(str);
View Full Code Here

                    checkIt = false;
                } else if (el.toName().equals("Value")) {
                    checkIt = false;
                }
                if (checkIt) {
                    XMLAttribute attrEl = (XMLAttribute) el;
                    XMLAttribute attrTmplEl = (XMLAttribute) tmplEl;
                    ret = (attrEl.getChoices() == null ? attrTmplEl.getChoices() == null
                            : attrEl.getChoices().equals(attrTmplEl.getChoices()));
                    if (ret && !tmplEl.isEmpty()) {
                        ret = el.toValue().equals(tmplEl.toValue());
                    }
                }
            } else if (el instanceof XMLComplexElement) {
View Full Code Here

TOP

Related Classes of org.enhydra.shark.xpdl.XMLAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.