FileDocCategorySizeDatePackage
NamespaceSelector.javaAPI DocApache Axis 1.42182Sat Apr 22 18:57:26 BST 2006org.apache.axis.wsdl.toJava

NamespaceSelector

public class NamespaceSelector extends Object
This class is used within the context of a FactorySpec to express namespaces that should be either included and/or excluded from source code generation. The ability to include/exclude specific namespaces from wsdl2java generation allows certain namespaces to be mapped to custom bean classes, have wsdl-generated stubs/skeletons declared to pass those types, and not have the wsdl2java process generate classes which would conflict with the externally developed custom beans.
author
Jim Stafford (jim.stafford@raba.com)

Fields Summary
private String
namespace_
Constructors Summary
public NamespaceSelector()

    
      
public NamespaceSelector(String namespace)

        namespace_ = namespace;
    
Methods Summary
public booleanequals(java.lang.Object value)

        boolean isEqual = false;
        if (value == null) {
            isEqual = false;
        }
        else if (value instanceof String) {
            isEqual = ((String)value).equals(namespace_);
        }
        else if (value instanceof NamespaceSelector) {
            isEqual = ((NamespaceSelector)value).namespace_.equals(namespace_);
        }
        return isEqual;
    
public java.lang.StringgetNamespace()

        return namespace_;
    
public voidsetNamespace(java.lang.String value)

        namespace_ = value;
    
public java.lang.StringtoString()

        if (namespace_ != null) {
            return "namespace=" + namespace_; 
        }
        else {
            return "";
        }