Package com.lightcrafts.mediax.jai.util

Examples of com.lightcrafts.mediax.jai.util.CaselessStringKey


  String names[] = new String[registryModes.size()];

  int i = 0;

        for (Enumeration e = registryModes.keys(); e.hasMoreElements();) {
            CaselessStringKey key = (CaselessStringKey)e.nextElement();

      names[i++] = key.getName();
  }

  if (i <= 0)
      return null;
View Full Code Here


    /**
     * Get the registry mode corresponding to this name.
     */
    public static RegistryMode getMode(String name) {

  CaselessStringKey key = new CaselessStringKey(name);

  return (RegistryMode)registryModes.get(key);
    }
View Full Code Here

         Class productClass,
                           Method factoryMethod,
         boolean arePreferencesSupported,
                           boolean arePropertiesSupported) {

  this.name = new CaselessStringKey(name);
  this.descriptorClass = descriptorClass;
  this.productClass = productClass;
  this.factoryMethod = factoryMethod;
  this.arePreferencesSupported = arePreferencesSupported;
  this.arePropertiesSupported = arePropertiesSupported;
View Full Code Here

  // Lastly, honor all the copyPropertyFromSource directives
        // The propNames values are PropertySource instances.
  if (sourceForProp != null) {
      for (Enumeration e = sourceForProp.keys(); e.hasMoreElements(); ) {
    CaselessStringKey name = (CaselessStringKey)e.nextElement();

                if (!suppressed.containsKey(name)) {
                    Integer i = (Integer)sourceForProp.get(name);
                    PropertySource propertySource =
                        (PropertySource)sources.elementAt(i.intValue());
View Full Code Here

        if(propertyMap != null) {
            Iterator keys = propertyMap.keySet().iterator();
            while(keys.hasNext()) {
                Object key = keys.next();
                if(key instanceof String) {
                    properties.put(new CaselessStringKey((String)key),
                                   propertyMap.get(key));
                } else if(key instanceof CaselessStringKey) {
                    properties.put((CaselessStringKey)key,
                                   propertyMap.get(key));
                }
            }
        }

        if(propertySource != null) {
            String[] names = propertySource.getPropertyNames();
            if(names != null) {
                int length = names.length;
                for(int i = 0; i < length; i++) {
                    propertySources.put(new CaselessStringKey(names[i]),
                                        propertySource);
                }
            }
        }
    }
View Full Code Here

        if(propertyName == null) {
            throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
        }
        synchronized(properties) {
            Class propertyClass = null;
            Object value = properties.get(new CaselessStringKey(propertyName));
            if(value != null) {
                propertyClass = value.getClass();
            }
            return propertyClass;
        }
View Full Code Here

        if(propertyName == null) {
            throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
        }

        synchronized(properties) {
            CaselessStringKey key = new CaselessStringKey(propertyName);

            // Try to retrieve from value mapping.
            Object value = properties.get(key);

            if(value == null) {
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.util.CaselessStringKey

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.