Tabnine Logo
org.milyn.cdr
Code IndexAdd Tabnine to your IDE (free)

How to use org.milyn.cdr

Best Java code snippets using org.milyn.cdr (Showing top 20 results out of 315)

origin: smooks/smooks

  /**
   * Lookup an existing resource configuration from the global config list.
   * <p/>
   * Note that this is resource config order-dependent.  It will not locate configs that
   * have not yet been loaded.
   *
   * @param searchCriteria The resource lookup criteria.
   * @return List of matches resources, or an empty List if no matches are found.
   */
  public List<SmooksResourceConfiguration> lookupResource(ConfigSearch searchCriteria) {
    return xmlConfigDigester.getResourceList().lookupResource(searchCriteria);
  }
}
origin: org.milyn/milyn-smooks-core

/**
 * Get the named parameter String value.
 * @param name Name of parameter to get. 
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return Parameter value, or null if not set.
 */
public static String getStringParameter(String name, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue();
  }
  
  return null;
}
origin: org.milyn/milyn-smooks-all

/**
 * Set the named SmooksResourceConfiguration parameter value (default type - String).
 * <p/>
 * Overwrites previous value of the same name.
 *
 * @param name  Parameter name.
 * @param value Parameter value.
 * @return The parameter instance.
 */
public Parameter setParameter(String name, String value) {
  Parameter param = new Parameter(name, value);
  setParameter(param);
  return param;
}
origin: org.milyn/milyn-smooks-all

private void digestReaderConfig(Element configElement, String defaultProfile) {
  String profiles = DomUtils.getAttributeValue(configElement, "targetProfile");
  String readerClass = DomUtils.getAttributeValue(configElement, "class");
  SmooksResourceConfiguration resourceConfig = new SmooksResourceConfiguration(
      "org.xml.sax.driver",
      (profiles != null ? profiles : defaultProfile),
      readerClass);
  // Add the reader resource...
  configureHandlers(configElement, resourceConfig);
  configureFeatures(configElement, resourceConfig);
  configureParams(configElement, resourceConfig);
  resourcelist.add(resourceConfig);
}
origin: smooks/smooks

  public SmooksResourceConfigurationList getUserDefinedResourceList() {
    SmooksResourceConfigurationList userDefinedResources = new SmooksResourceConfigurationList("userDefinedResources");

    for(SmooksResourceConfigurationList configList : configLists) {
      if(!configList.isSystemConfigList()) {
        userDefinedResources.addAll(configList);
      }
    }

    return userDefinedResources;
  }
}
origin: smooks/smooks

/**
 * Get the named SmooksResourceConfiguration parameter as a boolean.
 * @param name Name of parameter to get. 
 * @param defaultVal The default value to be returned if there are no 
 * parameters on the this SmooksResourceConfiguration instance, or the parameter is not defined.
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return true if the parameter is set to true, defaultVal if not defined, otherwise false.
 */
public static boolean getBoolParameter(String name, boolean defaultVal, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  return toBoolean(param, defaultVal);
}
origin: smooks/smooks

/**
 * Is this resource a Java Class.
 *
 * @return True if this resource is a Java class, otherwise false.
 */
public boolean isJavaContentHandler() {
  Class runtimeClass = toJavaResource();
  return (runtimeClass != null);
}
origin: smooks/smooks

/**
 * Get the active resource configuration list.
 * <p/>
 * This is the global config list i.e. not just the config list for the config
 * being processed.
 * 
 * @return The active resource configuration list.
 */
public SmooksResourceConfigurationList getResourceList() {
  return xmlConfigDigester.getResourceList();
}
origin: org.virtuslab/milyn-smooks-core

private void digestReaderConfig(Element configElement, String defaultProfile) {
  String profiles = DomUtils.getAttributeValue(configElement, "targetProfile");
  String readerClass = DomUtils.getAttributeValue(configElement, "class");
  SmooksResourceConfiguration resourceConfig = new SmooksResourceConfiguration(
      "org.xml.sax.driver",
      (profiles != null ? profiles : defaultProfile),
      readerClass);
  // Add the reader resource...
  configureHandlers(configElement, resourceConfig);
  configureFeatures(configElement, resourceConfig);
  configureParams(configElement, resourceConfig);
  resourcelist.add(resourceConfig);
}
origin: org.milyn/milyn-smooks-core

/**
 * Set the named SmooksResourceConfiguration parameter value (default type - String).
 * <p/>
 * Overwrites previous value of the same name.
 *
 * @param name  Parameter name.
 * @param value Parameter value.
 * @return The parameter instance.
 */
public Parameter setParameter(String name, String value) {
  Parameter param = new Parameter(name, value);
  setParameter(param);
  return param;
}
origin: org.milyn/milyn-smooks-all

/**
 * Get the named parameter String value.
 * @param name Name of parameter to get. 
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return Parameter value, or null if not set.
 */
public static String getStringParameter(String name, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue();
  }
  
  return null;
}
origin: org.milyn/milyn-smooks-core

  /**
   * Lookup an existing resource configuration from the global config list.
   * <p/>
   * Note that this is resource config order-dependent.  It will not locate configs that
   * have not yet been loaded.
   *
   * @param searchCriteria The resource lookup criteria.
   * @return List of matches resources, or an empty List if no matches are found.
   */
  public List<SmooksResourceConfiguration> lookupResource(ConfigSearch searchCriteria) {
    return xmlConfigDigester.getResourceList().lookupResource(searchCriteria);
  }
}
origin: smooks/smooks

/**
 * Get the named parameter String value.
 * @param name Name of parameter to get. 
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return Parameter value, or null if not set.
 */
public static String getStringParameter(String name, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue();
  }
  
  return null;
}
origin: org.virtuslab/milyn-smooks-core

  /**
   * Lookup an existing resource configuration from the global config list.
   *
   * Note that this is resource config order-dependent.  It will not locate configs that
   * have not yet been loaded.
   *
   * @param searchCriteria The resource lookup criteria.
   * @return List of matches resources, or an empty List if no matches are found.
   */
  public List<SmooksResourceConfiguration> lookupResource(ConfigSearch searchCriteria) {
    return xmlConfigDigester.getResourceList().lookupResource(searchCriteria);
  }
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Get the named parameter String value.
 * @param name Name of parameter to get. 
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return Parameter value, or null if not set.
 */
public static String getStringParameter(String name, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue();
  }
  
  return null;
}
origin: org.milyn/milyn-smooks-all

  /**
   * Lookup an existing resource configuration from the global config list.
   * <p/>
   * Note that this is resource config order-dependent.  It will not locate configs that
   * have not yet been loaded.
   *
   * @param searchCriteria The resource lookup criteria.
   * @return List of matches resources, or an empty List if no matches are found.
   */
  public List<SmooksResourceConfiguration> lookupResource(ConfigSearch searchCriteria) {
    return xmlConfigDigester.getResourceList().lookupResource(searchCriteria);
  }
}
origin: smooks/smooks

/**
 * Get the named parameter String value.
 * @param name Name of parameter to get. 
 * @param defaultVal Default value returned if the parameter is not defined.
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return Parameter value, or null if not set.
 */
public static String getStringParameter(String name, String defaultVal, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue();
  }
  
  return defaultVal;
}
origin: org.milyn/milyn-smooks-core

/**
 * Get the named parameter String value.
 * @param name Name of parameter to get. 
 * @param defaultVal Default value returned if the parameter is not defined.
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return Parameter value, or null if not set.
 */
public static String getStringParameter(String name, String defaultVal, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue();
  }
  
  return defaultVal;
}
origin: org.milyn/milyn-smooks-all

/**
 * Get the named parameter String value.
 * @param name Name of parameter to get. 
 * @param defaultVal Default value returned if the parameter is not defined.
 * @param config The {@link ContentDeliveryConfig} for the requesting device.
 * @return Parameter value, or null if not set.
 */
public static String getStringParameter(String name, String defaultVal, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue();
  }
  
  return defaultVal;
}
origin: smooks/smooks

/**
 * Get the named parameter instance (decode).
 * @param name Parameter name.
 * @param config Device Delivery Configuration.
 * @return The Parameter instance for the named parameter (<a href="#decode">decoded to an Object</a>), 
 * or null if not defined.
 */
public static Object getParameterObject(String name, ContentDeliveryConfig config) {
  Parameter param = getParamter(name, config);
  
  if(param != null) {
    return param.getValue(config);
  }
  
  return null;
}
org.milyn.cdr

Most used classes

  • ConfigParam
  • SmooksConfigurationException
    Smooks resource configuration exception.
  • SmooksResourceConfiguration
    Smooks Resource Targeting Configuration. A Smooks Resource is anything that can be used by Smooks in
  • AppContext
  • Config
  • Parameter,
  • ConfigSearch,
  • ParameterAccessor,
  • SmooksResourceConfigurationList,
  • SmooksResourceConfigurationStore,
  • XMLConfigDigester,
  • ExtensionContext,
  • SelectorStep,
  • SelectorStepBuilder,
  • ParameterDecodeException,
  • ParameterDecoder,
  • ProfileTargetingExpression$ExpressionToken,
  • ProfileTargetingExpression,
  • SmooksResourceConfiguration$ContextIndex
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now