|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom.contrib.schema.Schema.Type
public static final class Schema.Type
Class to support type-safe enumeration design pattern to represent schema types
Constructor Summary | |
---|---|
protected |
Schema.Type(java.lang.String name,
java.lang.String language)
Type constructor, private on purpose. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Tests for type equality. |
java.lang.String |
getLanguage()
Returns the URI that uniquemy identifies this schema type. |
java.lang.String |
getName()
Returns the printable name of this schema type. |
int |
hashCode()
Returns a unique identifier for this type. |
java.lang.String |
toString()
Returns a string representation of this type suitable for debugging and diagnosis. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Schema.Type(java.lang.String name, java.lang.String language)
name
- the schema type printable name.language
- the unique identifier for the schema
type (URI).Method Detail |
---|
public java.lang.String getName()
public java.lang.String getLanguage()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object o)
Type
objects are loaded by
different class loaders.
equals
in class java.lang.Object
o
- the object compared for equality to this type.
true
if and only if o
represents the same type as this object.Object.equals(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |