Examples of SequencedHashMap


Examples of org.apache.xmlbeans.impl.common.SequencedHashMap

        return result;
    }

    private static Map buildDocumentMap(SchemaType[] types)
    {
        Map result = new SequencedHashMap();
        for (int i = 0; i < types.length; i++)
            result.put(types[i].getDocumentElementName(), types[i].getRef());
        return result;
    }
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.SequencedHashMap

        return result;
    }

    private static Map buildAttributeTypeMap(SchemaType[] types)
    {
        Map result = new SequencedHashMap();
        for (int i = 0; i < types.length; i++)
            result.put(types[i].getAttributeTypeAttributeName(), types[i].getRef());
        return result;
    }
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.SequencedHashMap

        }

        void startWriteMode()
        {
            _started = true;
            _componentsToHandles = new SequencedHashMap();
            for (Iterator i = _handlesToRefs.keySet().iterator(); i.hasNext(); )
            {
                String handle = (String)i.next();
//                System.err.println("Writing preexisting handle " + handle);
                SchemaComponent comp = ((SchemaComponent.Ref)_handlesToRefs.get(handle)).getComponent();
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.SequencedHashMap

                    attrModel.setWildcardSet(readQNameSet());
                    attrModel.setWildcardProcess(readShort());

                    // Attribute Property Table
                    Map attrProperties = new SequencedHashMap();
                    short attrPropCount = readShort();
                    for (int i = 0; i < attrPropCount; i++)
                    {
                        SchemaProperty prop = readPropertyData();
                        if (!prop.isAttribute())
                            throw new SchemaTypeLoaderException("Attribute property " + i + " is not an attribute", _name, _handle, SchemaTypeLoaderException.WRONG_PROPERTY_TYPE);
                        attrProperties.put(prop.getName(), prop);
                    }

                    SchemaParticle contentModel = null;
                    Map elemProperties = null;
                    short isAll = 0;

                    if (complexVariety == SchemaType.ELEMENT_CONTENT || complexVariety == SchemaType.MIXED_CONTENT)
                    {
                        // Content Model Tree
                        isAll = readShort();
                        SchemaParticle[] parts = readParticleArray();
                        if (parts.length == 1)
                            contentModel = parts[0];
                        else if (parts.length == 0)
                            contentModel = null;
                        else
                            throw new SchemaTypeLoaderException("Content model not well-formed", _name, _handle, SchemaTypeLoaderException.MALFORMED_CONTENT_MODEL);

                        // Element Property Table

                        elemProperties = new SequencedHashMap();
                        short elemPropCount = readShort();
                        for (int i = 0; i < elemPropCount; i++)
                        {
                            SchemaProperty prop = readPropertyData();
                            if (prop.isAttribute())
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.SequencedHashMap

    private QNameSet wcSet;
    private int wcProcess;

    public SchemaAttributeModelImpl()
    {
        attrMap = new SequencedHashMap();
        wcSet = null;
        wcProcess = NONE;
    }
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.SequencedHashMap

        wcProcess = NONE;
    }

    public SchemaAttributeModelImpl(SchemaAttributeModel sam)
    {
        attrMap = new SequencedHashMap();
        if (sam == null)
        {
            wcSet = null;
            wcProcess = NONE;
        }
View Full Code Here

Examples of org.enhydra.shark.utilities.SequencedHashMap

            return choices;
        }

        if (cbutton.getChoiceType() == Participant.class) {
            WorkflowProcess wp = selectedGraph.getWorkflowProcess();
            SequencedHashMap choiceMap = XMLUtil.getPossibleParticipants(wp, JaWEManager.getInstance().getXPDLHandler());

            //CUSTOM
            if (!JaWE.BASIC_MODE) {
                choiceMap.put(FreeTextExpressionParticipant.getInstance().getName(), FreeTextExpressionParticipant.getInstance());
            }
            //END CUSTOM

            List toRemove = selectedGraph.getGraphManager().getDisplayedParticipants();

            Iterator it = choiceMap.entrySet().iterator();
            while (it.hasNext()) {
                Map.Entry me = (Map.Entry) it.next();
                if (toRemove.contains(me.getValue())) {
                    it.remove();
                }
            }

            choices.addAll(choiceMap.values());
        } else if (cbutton.getChoiceType() == ActivitySet.class) {
            WorkflowProcess wp = selectedGraph.getWorkflowProcess();
            choices = wp.getActivitySets().toElements();
        }
View Full Code Here

Examples of org.enhydra.shark.utilities.SequencedHashMap

    }

    public void makeAs(XMLElement el) {
        super.makeAs(el);
        this.namespaces.makeAs(((Package) el).namespaces);
        extPkgRefsToIds = new SequencedHashMap(((Package) el).extPkgRefsToIds);
        this.isTransient = ((Package) el).isTransient;
    }
View Full Code Here

Examples of org.enhydra.shark.utilities.SequencedHashMap

    public Object clone() {
        Package d = (Package) super.clone();
        d.namespaces = (Namespaces) this.namespaces.clone();
        d.namespaces.setParent(d);
        d.extPkgRefsToIds = new SequencedHashMap(extPkgRefsToIds);
        d.isTransient = isTransient;
        d.clearCaches();
        if (d.isReadOnly) {
            d.initCaches();
        }
View Full Code Here

Examples of org.enhydra.shark.utilities.SequencedHashMap

   }

   public String getTooltip(Activity el) {
      // CUSTOM: hide unused fields
      LabelGenerator lg = JaWEManager.getInstance().getLabelGenerator();
      Map toDisplay = new SequencedHashMap();
      putKeyValue(toDisplay, el.get("Id"));
      putKeyValue(toDisplay, el.get("Name"));
//      putKeyValue(toDisplay, el.get("Description"));
//      putKeyValue(toDisplay, el.get("Performer"));
//      putKeyValue(toDisplay, el.getStartMode());
//      putKeyValue(toDisplay, el.getFinishMode());
//      putKeyValue(toDisplay, el.get("Priority"));
      putKeyValue(toDisplay, el.get("Limit"));
      if (el.getTransitionRestrictions().size() > 0) {
         TransitionRestriction tr = (TransitionRestriction) el.getTransitionRestrictions().get(0);
         putKeyValue(toDisplay, tr.getJoin());
         putKeyValue(toDisplay, tr.getSplit());
      } else {
         toDisplay.put(lg.getLabel(new Join(null)), "");
         toDisplay.put(lg.getLabel(new Split(null)), "");
      }
      fillTypePartOfTooltip(el, toDisplay);
      return makeTooltip(toDisplay);
      // END CUSTOM
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.