Examples of ElementMapping


Examples of org.apache.fop.fo.ElementMapping

     * add the element mapping with the given class name
     */
    public void addElementMapping(String mappingClassName)
    throws IllegalArgumentException {
        try {
            ElementMapping mapping =
                (ElementMapping)Class.forName(mappingClassName).newInstance();
            addElementMapping(mapping);
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException("Could not find "
                                               + mappingClassName);
View Full Code Here

Examples of org.apache.fop.fo.ElementMapping

     */
    public void addElementMapping(String mappingClassName)
  throws IllegalArgumentException
    {
  try {
            ElementMapping mapping = (ElementMapping) Class.forName(
                     mappingClassName).newInstance();
      addElementMapping(mapping);
  } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException("Could not find " + mappingClassName);
  }
View Full Code Here

Examples of org.wso2.carbon.cep.core.ElementMapping

    public static ElementMapping fromOM(OMElement elementMappingOMElement) {
        String documentElement =
                elementMappingOMElement.getAttributeValue(new QName(CEPConstants.CEP_CONT_ATTR_DOC_ELEMENT));
        String namespace = elementMappingOMElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ATTR_NAMESPACE));

        ElementMapping elementMapping = new ElementMapping();
        elementMapping.setDocumentElement(documentElement);
        elementMapping.setNamespace(namespace);

        for (Iterator iterator = elementMappingOMElement.getChildrenWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_PROPERTY)); iterator.hasNext();) {
            OMElement propertyElement = (OMElement) iterator.next();
            Property property = PropertyHelper.fromOM(propertyElement);
            property.setInputProperty(false);
            elementMapping.addProperty(property);
        }

        return elementMapping;
    }
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.