org.restlet.data
Class Metadata

java.lang.Object
  extended by org.restlet.data.Metadata
Direct Known Subclasses:
ChallengeScheme, CharacterSet, Encoding, Language, MediaType, Method, Protocol, Status, Tag

public class Metadata
extends java.lang.Object

Description of data contained in a resource representation. "A representation consists of data, metadata describing the data, and, on occasion, metadata to describe the metadata (usually for the purpose of verifying message integrity).

Metadata is in the form of name-value pairs, where the name corresponds to a standard that defines the value's structure and semantics. Response messages may include both representation metadata and resource metadata: information about the resource that is not specific to the supplied representation." Roy T. Fielding

Author:
Jerome Louvel
See Also:
Source dissertation

Constructor Summary
Metadata(java.lang.String name)
          Constructor.
Metadata(java.lang.String name, java.lang.String description)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Metadata

public Metadata(java.lang.String name)
Constructor.

Parameters:
name - The unique name.

Metadata

public Metadata(java.lang.String name,
                java.lang.String description)
Constructor.

Parameters:
name - The unique name.
description - The description.
Method Detail

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
The description.

getName

public java.lang.String getName()
Returns the name (ex: "text/html" or "compress" or "iso-8851-1").

Returns:
The name (ex: "text/html" or "compress" or "iso-8851-1").

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Returns the metadata name.

Overrides:
toString in class java.lang.Object
Returns:
The metadata name.


Copyright © 2005-2008 Noelios Technologies.