FileDocCategorySizeDatePackage
Notation.javaAPI DocApache Axis 1.44366Sat Apr 22 18:57:26 BST 2006org.apache.axis.types

Notation

public class Notation extends Object implements Serializable
Custom class for supporting XSD data type NOTATION.
author
Davanum Srinivas
see
XML Schema Part 1: 3.12 Notation Declarations

Fields Summary
NCName
name
URI
publicURI
URI
systemURI
private static org.apache.axis.description.TypeDesc
typeDesc
Constructors Summary
public Notation()

    
public Notation(NCName name, URI publicURI, URI systemURI)

        this.name = name;
        this.publicURI = publicURI;
        this.systemURI = systemURI;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (obj == null || !(obj instanceof Notation))
            return false;
        Notation other = (Notation) obj;
        if (name == null) {
            if (other.getName() != null) {
                return false;
            }
        } else if (!name.equals(other.getName())) {
            return false;
        }
        if (publicURI == null) {
            if (other.getPublic() != null) {
                return false;
            }
        } else if (!publicURI.equals(other.getPublic())) {
            return false;
        }
        if (systemURI == null) {
            if (other.getSystem() != null) {
                return false;
            }
        } else if (!systemURI.equals(other.getSystem())) {
            return false;
        }
        return true;
    
public NCNamegetName()

        return name;
    
public URIgetPublic()

        return publicURI;
    
public URIgetSystem()

        return systemURI;
    
public static org.apache.axis.description.TypeDescgetTypeDesc()

        typeDesc = new TypeDesc(Notation.class);
        FieldDesc field;

        // An attribute with a specified QName
        field = new AttributeDesc();
        field.setFieldName("name");
        field.setXmlName(Constants.XSD_NCNAME);
        typeDesc.addFieldDesc(field);

        // An attribute with a default QName
        field = new AttributeDesc();
        field.setFieldName("public");
        field.setXmlName(Constants.XSD_ANYURI);
        typeDesc.addFieldDesc(field);

        // An element with a specified QName
        ElementDesc element = null;
        element = new ElementDesc();
        element.setFieldName("system");
        element.setXmlName(Constants.XSD_ANYURI);
        // per, http://www.w3.org/TR/xmlschema-1/#element-notation,
        // "system" property can be null  
        element.setNillable(true);
        typeDesc.addFieldDesc(field);
    
        return typeDesc;
    
public inthashCode()
Returns the sum of the hashcodes of {name,publicURI,systemURI} for whichever properties in that set is non null. This is consistent with the implementation of equals, as required by {@link java.lang.Object#hashCode() Object.hashCode}.

return
an int value

        int hash = 0;
        if (null != name) {
            hash += name.hashCode();
        }
        if (null != publicURI) {
            hash += publicURI.hashCode();
        }
        if (null != systemURI) {
            hash += systemURI.hashCode();
        }
        return hash;
    
public voidsetName(NCName name)

        this.name = name;
    
public voidsetPublic(URI publicURI)

        this.publicURI = publicURI;
    
public voidsetSystem(URI systemURI)

        this.systemURI = systemURI;