Package com.lightcrafts.mediax.jai.util

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


     * @throws IllegalArgumentException if descriptorName is null
     */
    OperationGraph addProduct(String descriptorName,
            String productName) {
  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);

  if (productName == null)
      throw new IllegalArgumentException(JaiI18N.getString("Generic0"));

  ProductOperationGraph pog =
View Full Code Here


     *
     * @throws IllegalArgumentException if descriptorName is null
     */
    boolean removeProduct(String descriptorName, String productName) {
  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);

  if (productName == null)
      throw new IllegalArgumentException(JaiI18N.getString("Generic0"));

  ProductOperationGraph pog =
View Full Code Here

     * @throws IllegalArgumentException if descriptorName is null
     */
    OperationGraph lookupProduct(String descriptorName,
         String productName) {
  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);

  if (productName == null)
      throw new IllegalArgumentException(JaiI18N.getString("Generic0"));

  ProductOperationGraph pog =
View Full Code Here

  if (preferredProductName.equalsIgnoreCase(otherProductName)) {
      return false;
  }
 
  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);
 
  if (descriptorNames.containsKey(key) == false) {
      throw new IllegalArgumentException(
    JaiI18N.formatMsg("DescriptorCache1",
        new Object[] {descriptorName, modeName}));
View Full Code Here

  if (preferredProductName.equalsIgnoreCase(otherProductName)) {
      return false;
  }

  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);
   
  if (descriptorNames.containsKey(key) == false) {
      throw new IllegalArgumentException(
    JaiI18N.formatMsg("DescriptorCache1",
        new Object[] {descriptorName, modeName}));
View Full Code Here

    JaiI18N.formatMsg("DescriptorCache6",
        new Object[] {modeName}));
  }

  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);

  if (descriptorNames.containsKey(key) == false) {
      throw new IllegalArgumentException(
    JaiI18N.formatMsg("DescriptorCache1",
        new Object[] {descriptorName, modeName}));
View Full Code Here

    JaiI18N.formatMsg("DescriptorCache6",
        new Object[] {modeName}));
  }

  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);

  Vector v;

  if (productPrefs.containsKey(key) == false) {
      // No product preferences have been set.
View Full Code Here

 
  if (!arePreferencesSupported)
      return null;

  // Use a caseless version of the key.
  CaselessStringKey key = new CaselessStringKey(descriptorName);
 
  if (descriptorNames.containsKey(key) == false) {
      return null;
  }
View Full Code Here

    // Property management

    private boolean arePropertiesSupported(String descriptorName) {
   
  CaselessStringKey key = new CaselessStringKey(descriptorName);

  RegistryElementDescriptor rdesc =
    (RegistryElementDescriptor)descriptorNames.get(key);

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

      throw new IllegalArgumentException(
    JaiI18N.formatMsg("DescriptorCache7",
            new Object[] {modeName}));
  }

  CaselessStringKey key = new CaselessStringKey(descriptorName);
 
  Vector v = (Vector)properties.get(key);

  if (v == null) {
      v = new Vector();
      properties.put(key, v);
  }

  v.addElement(generator);

  v = (Vector)suppressed.get(key);
  Hashtable h = (Hashtable)sourceForProp.get(key);

  String names[] = generator.getPropertyNames();

  for (int j=0; j<names.length; j++) {
      CaselessStringKey name = new CaselessStringKey(names[j]);

      if (v != null) v.remove(name);
      if (h != null) h.remove(name);
  }
    }
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.