Examples of mapTypeToElementName()


Examples of org.apache.commons.betwixt.strategy.NameMapper.mapTypeToElementName()

        if (descriptor instanceof AttributeDescriptor) {
            // we want to use the attributemapper only when it is an attribute..
            nameMapper = configuration.getAttributeNameMapper();
       
        }          
        descriptor.setLocalName( nameMapper.mapTypeToElementName( propertyName ));
        descriptor.setPropertyName( getPropertyName() );
        descriptor.setPropertyType( getPropertyType() );
    }
   
    /**
 
View Full Code Here

Examples of org.apache.commons.betwixt.strategy.NameMapper.mapTypeToElementName()

       
        if ( configuration.isWrapCollectionsInElement() ) {
            ElementDescriptor wrappingDescriptor = new ElementDescriptor();
            wrappingDescriptor.setElementDescriptors( new ElementDescriptor[] { entryDescriptor } );
            NameMapper nameMapper = configuration.getElementNameMapper();  
            wrappingDescriptor.setLocalName( nameMapper.mapTypeToElementName( propertyName ));          
            result = wrappingDescriptor;
                       
        } else {
            result = entryDescriptor;
        }
View Full Code Here

Examples of org.apache.commons.betwixt.strategy.NameMapper.mapTypeToElementName()

        if (descriptor instanceof AttributeDescriptor) {
            // we want to use the attributemapper only when it is an attribute..
            nameMapper = configuration.getAttributeNameMapper();
       
        }          
        descriptor.setLocalName( nameMapper.mapTypeToElementName( propertyName ));
        descriptor.setPropertyName( getPropertyName() );
        descriptor.setPropertyType( getPropertyType() );
    }
   
    /**
 
View Full Code Here

Examples of org.apache.commons.betwixt.strategy.NameMapper.mapTypeToElementName()

       
        if ( configuration.isWrapCollectionsInElement() ) {
            ElementDescriptor wrappingDescriptor = new ElementDescriptor();
            wrappingDescriptor.setElementDescriptors( new ElementDescriptor[] { entryDescriptor } );
            NameMapper nameMapper = configuration.getElementNameMapper();  
            wrappingDescriptor.setLocalName( nameMapper.mapTypeToElementName( propertyName ));          
            result = wrappingDescriptor;
                       
        } else {
            result = entryDescriptor;
        }
View Full Code Here

Examples of org.apache.commons.betwixt.strategy.NameMapper.mapTypeToElementName()

        if (descriptor instanceof AttributeDescriptor) {
            // we want to use the attributemapper only when it is an attribute..
            nameMapper = configuration.getAttributeNameMapper();
       
        }          
        descriptor.setLocalName( nameMapper.mapTypeToElementName( propertyName ));
        descriptor.setPropertyName( getPropertyName() );
        descriptor.setPropertyType( getPropertyType() );
    }
   
    /**
 
View Full Code Here

Examples of org.apache.commons.betwixt.strategy.NameMapper.mapTypeToElementName()

       
        if ( configuration.isWrapCollectionsInElement() ) {
            ElementDescriptor wrappingDescriptor = new ElementDescriptor();
            wrappingDescriptor.setElementDescriptors( new ElementDescriptor[] { entryDescriptor } );
            NameMapper nameMapper = configuration.getElementNameMapper();  
            wrappingDescriptor.setLocalName( nameMapper.mapTypeToElementName( propertyName ));          
            result = wrappingDescriptor;
                       
        } else {
            result = entryDescriptor;
        }
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.