Package java.util

Examples of java.util.HashMap.containsKey()


                                    if (vObjPlugin.shouldGenerate(javaClass)) {
                                        // Let's try to detect if overlapping value-objects are being generated
                                        String vObjectType = vObjPlugin.getVirtualType(javaClass).toString();

                                        if (vObjsNames.containsKey(vObjectType)) {
                                            if (log.isWarnEnabled()) {
                                                log.warn("There is already an value-object generate with same type '" +
                                                    vObjectType + "'. Ignoring new one.");
                                            }
View Full Code Here


    final StyleKey[] keys = StyleKey.getDefinedStyleKeys();
    for (int i = 0; i < keys.length; i++)
    {
      StyleKey key = keys[i];
      if (styles.containsKey(key.getName()) == false)
      {
        System.out.println (key);
      }
    }
View Full Code Here

        for (int i = 0; i < tags.length; i++) {
            EjbValueObjectFieldTag valueMethodMatchTag = (EjbValueObjectFieldTag) tags[i];
            String methodMatch = valueMethodMatchTag.getMatch();

            if (matchValues.containsKey(methodMatch)) {
                EjbValueObjectFieldTag savedTag = (EjbValueObjectFieldTag) matchValues.get(methodMatch);

                if (log.isWarnEnabled()) {
                    log.warn(EjbUtils.tagToString(valueMethodMatchTag) +
                        " is being ignored because there is already another tag for same match " +
View Full Code Here

            } else if (elemset.contains(lcname)) {
                style = ELEMENT_STYLE_INTEGER;
            }
           
            // check for existing customization
            if (namemap.containsKey(name)) {
               
                // fill in data missing from existing member customization
                cust = (ValueCustom)namemap.get(name);
               
            } else if (auto) {
View Full Code Here

                ArrayList parms = odef.getParameters();
                for (int j = 0; j < parms.size(); j++) {
                    ValueCustom parm = (ValueCustom)parms.get(j);
                    String type = parm.getWorkingType();
                    ElementElement pelem;
                    if (!typemap.containsKey(type)) {
                       
                        // add predefined mapping type to known types and require schema import
                        QName tname = (QName)classtypes.get(type);
                        if (tname != null) {
                            typemap.put(type, tname);
View Full Code Here

            int base = xmlwriter.getNamespaceCount();
            xmlwriter.pushExtensionNamespaces(uris);
           
            // build the arrays of namespace indexes and prefixes for use on marshalled root elements
            int length = count;
            if (!uritoprefix.containsKey(null)) {
                length++;
            }
            String[] prefixes = new String[length];
            int[] indexes = new int[length];
            int fill = 0;
View Full Code Here

      for (int i=0; i<nImgs; i++) {

        sSrc = ((ImageTag) oCollectionList.elementAt(i)).extractImageLocn();

        // Keep a reference to every related image name so that the same image is not included twice in the message
        if (!oDocumentImages.containsKey(sSrc)) {

          // Find last slash from image url
          int iSlash = sSrc.lastIndexOf('/');

          // Take image name
View Full Code Here

    int l;
    int iRetVal = -1;
    if (null==oAttrValue) {
      for (l=0; l<nLines && -1==iRetVal; l++) {
        oCurrentLine = (HashMap) oLines.get(l);
        if (oCurrentLine.containsKey(sAttrKey))
          if (oCurrentLine.get(sAttrKey)==null)
            iRetVal = l;
      } // next
    } else {
      for (l=0; l<nLines && -1==iRetVal; l++) {
View Full Code Here

                final Collection forwardParameters = forward.getForwardParameters();
                for (final Iterator forwardParameterIterator = forwardParameters.iterator();
                     forwardParameterIterator.hasNext();)
                {
                    final ModelElementFacade facade = (ModelElementFacade) forwardParameterIterator.next();
                    if (!formFieldMap.containsKey(facade.getName()))
                    {
                        formFieldMap.put(facade.getName(), facade);
                    }
                }
            }
View Full Code Here

      if (DebugFile.trace) DebugFile.writeln(String.valueOf(iChilds) + " childs loaded for " + aChild[0]);

      oProj = new Project(oConn, (String) aChild[0]);
      oProj.replace(DB.gu_project, Gadgets.generateUUID());
      if (oSubProjMap.containsKey(oProj.get(DB.id_parent)))
        oProj.replace(DB.id_parent, oSubProjMap.get(oProj.get(DB.id_parent)));
      oProj.store(oConn);

      iDuties = oDuties.load (oConn, new Object[]{oProj.get(DB.gu_project)});
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.