APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.util

pack-priv final Class XMLErrorCode

extends Object
Class Inheritance

A structure that represents an error code, characterized by a domain and a message key.

Author
Naela Nissar, IBM

Field Summary

Modifier and TypeField and Description
private String
fDomain

error domain

private String
fKey

message key

Constructor Summary

AccessConstructor and Description
public
XMLErrorCode(String
The error domain.
domain
,
String
The key of the error message.
key
)

Constructs an XMLErrorCode with the given domain and key.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other object is equal to this XMLErrorCode.

public int

Returns:

a hash code value for this XMLErrorCode.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this XMLErrorCode.

public void
setValues(String
The error domain.
domain
,
String
The key of the error message.
key
)

Convenience method to set the values of an XMLErrorCode.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

fDomainback to summary
private String fDomain

error domain

fKeyback to summary
private String fKey

message key

Constructor Detail

XMLErrorCodeback to summary
public XMLErrorCode(String domain, String key)

Constructs an XMLErrorCode with the given domain and key.

Parameters
domain:String

The error domain.

key:String

The key of the error message.

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Indicates whether some other object is equal to this XMLErrorCode.

Parameters
obj:Object

the object with which to compare.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this XMLErrorCode.

Returns:int

a hash code value for this XMLErrorCode.

setValuesback to summary
public void setValues(String domain, String key)

Convenience method to set the values of an XMLErrorCode.

Parameters
domain:String

The error domain.

key:String

The key of the error message.