public class Metadata
extends java.lang.Object
Constructor and Description |
---|
Metadata(java.lang.String name)
Constructor.
|
Metadata(java.lang.String name,
java.lang.String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getName()
Returns the name (ex: "text/html" or "compress" or "iso-8851-1").
|
int |
hashCode() |
java.lang.String |
toString()
Returns the metadata name.
|
public Metadata(java.lang.String name)
name
- The unique name.public Metadata(java.lang.String name, java.lang.String description)
name
- The unique name.description
- The description.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String getDescription()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object