FileDocCategorySizeDatePackage
JaxrpcMappingDescriptor.javaAPI DocGlassfish v2 API4069Fri May 04 22:31:22 BST 2007com.sun.enterprise.deployment

JaxrpcMappingDescriptor

public class JaxrpcMappingDescriptor extends Descriptor
Holds namespace-to-package mapping information from a "non-exhaustive" jaxrpc mapping file.
author
Kenneth Saks

Fields Summary
private Map
packageToNamespaceUriMap
private Map
namespaceUriToPackageMap
private boolean
simpleMapping
Constructors Summary
public JaxrpcMappingDescriptor()


      
    
Methods Summary
public voidaddMapping(java.lang.String javaPackage, java.lang.String namespaceUri)

        packageToNamespaceUriMap.put(javaPackage, namespaceUri);
        namespaceUriToPackageMap.put(namespaceUri, javaPackage);
    
public java.util.CollectiongetMappings()

return
Collection of Mapping elements

        Collection mappings = new HashSet();
        for(Iterator nIter = namespaceUriToPackageMap.keySet().iterator(); 
            nIter.hasNext();) {
            String namespaceUri = (String) nIter.next();
            String javaPackage = (String) 
                namespaceUriToPackageMap.get(namespaceUri);
            Mapping mapping = new Mapping(namespaceUri, javaPackage);
            mappings.add(mapping);
        }
        return mappings;
    
public booleanisSimpleMapping()

return
true if only mapping info only contains package->namespace mapping.

        return simpleMapping;
    
public voidsetIsSimpleMapping(boolean flag)

        simpleMapping = flag;
    
public voidsetSpecVersion(java.lang.String version)

        // ignore