Package java.util

Examples of java.util.Map.containsKey()


            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


            List fcsl = new ArrayList(fcs.getColumnCount());
            while (fcs.parseRow(fcsl)) {
                String featureclass = ((String) fcsl.get(featureClassColumn)).toLowerCase();
                String table1 = ((String) fcsl.get(table1Column)).toLowerCase();
                if (!ftypeinfo.containsKey(featureclass)) {
                    ftypeinfo.put(featureclass, null);
                    String type = null;
                    if (table1.endsWith(".cft")) {
                        type = "complex feature";
                    } else if (table1.endsWith(".pft")) {
View Full Code Here

    final boolean isPropertyRegistered(
        final MetafacadeBase metafacade,
        final String name)
    {
        final Map propertyNamespace = this.getMetafacadePropertyNamespace(metafacade);
        return propertyNamespace != null && propertyNamespace.containsKey(name);
    }

    /**
     * Finds the first property having the given <code>namespaces</code>, or
     * <code>null</code> if the property can <strong>NOT </strong> be found.
View Full Code Here

                // only add these if there is no parameter recorded yet with the same name
                final Collection forwardParameters = forward.getForwardParameters();
                for (final Iterator parameterIterator = forwardParameters.iterator(); parameterIterator.hasNext();)
                {
                    final ModelElementFacade facade = (ModelElementFacade)parameterIterator.next();
                    if (!formFieldMap.containsKey(facade.getName()))
                    {
                        formFieldMap.put(
                            facade.getName(),
                            facade);
                    }
View Full Code Here

    if (styleName != null)
    {
      JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);
      Map stylesMap = jasperDesign.getStylesMap();

      if (stylesMap.containsKey(styleName))
      {
        JRStyle style = (JRStyle) stylesMap.get(styleName);
        cell.setStyle(style);
      }
      else
View Full Code Here

    if (parameters == null)
    {
      parameters = new HashMap();
    }

    if (!parameters.containsKey(JRParameter.REPORT_FILE_RESOLVER))
    {
      SimpleFileResolver fileResolver =
        new SimpleFileResolver(
          Arrays.asList(new File[]{file.getParentFile(), new File(".")})
          );
View Full Code Here

    }
 
  public void remove(String key) {
    Map map = (Map) resources.get();
    if (map != null) {
      if ( map.containsKey(key)) {
        map.remove(key);
      }
    }
  }
View Full Code Here

            // for any missing parameters we just add the name of the column
            final Collection columnNames = this.getTableColumnNames();
            for (final Iterator columnNameIterator = columnNames.iterator(); columnNameIterator.hasNext();)
            {
                final String columnName = (String)columnNameIterator.next();
                if (!tableColumnsMap.containsKey(columnName))
                {
                    tableColumnsMap.put(
                        columnName,
                        columnName);
                }
View Full Code Here

      }
     
      Map map = StringPairTokenizer.parseToStringStringPairs(val.trim(), ",", "=");
      this.actions = (String)map.get(ACTION_KEY);
      if (this.actions == null) {
         if (map.containsKey(ACTION_KEY))
            this.actions = "";
         else
            this.actions = "IDU";
      }
      this.trigger = (String)map.get(TRIGGER_KEY);
View Full Code Here

    */
   public static I_DbPool getDbInfoPool(I_Info info) throws Exception {
      I_Info infoForDbInfo = (I_Info)info.getObject("infoForDbInfo");
      if (infoForDbInfo == null) {
         Map dbInfoMap = InfoHelper.getPropertiesStartingWith("dbinfo.", info, null, "db.");
         if (dbInfoMap.containsKey("db.url")) {
            infoForDbInfo = new PropertiesInfo(new Properties());
            InfoHelper.fillInfoWithEntriesFromMap(infoForDbInfo, dbInfoMap);
            info.putObject("infoForDbInfo", infoForDbInfo);
         }
      }
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.