Methods Summary |
---|
public boolean | equals(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 NCName | getName()
return name;
|
public URI | getPublic()
return publicURI;
|
public URI | getSystem()
return systemURI;
|
public static org.apache.axis.description.TypeDesc | getTypeDesc()
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 int | hashCode()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}.
int hash = 0;
if (null != name) {
hash += name.hashCode();
}
if (null != publicURI) {
hash += publicURI.hashCode();
}
if (null != systemURI) {
hash += systemURI.hashCode();
}
return hash;
|
public void | setName(NCName name)
this.name = name;
|
public void | setPublic(URI publicURI)
this.publicURI = publicURI;
|
public void | setSystem(URI systemURI)
this.systemURI = systemURI;
|