## Uses of Class
org.restlet.data.Metadata

Packages that use Metadata
Package | Description
--- | ---
org.restlet.data | Information exchanged by components.
org.restlet.engine.application | Supports Restlet applications.
org.restlet.engine.http.header | Supports HTTP header parsing and formatting.
org.restlet.engine.util | General utilities.
org.restlet.service | Services used by applications and components.

### Uses of Metadata in org.restlet.data

Classes in org.restlet.data with type parameters of type Metadata
Modifier and Type | Class and Description
--- | ---
`class` | `Preference<T extends Metadata>` Metadata preference definition.

Subclasses of Metadata in org.restlet.data
Modifier and Type | Class and Description
--- | ---
`class` | `CharacterSet` Character set used to encode characters in textual representations.
`class` | `Encoding` Modifier of a representation's media type.
`class` | `Language` Language used in representations and preferences.
`class` | `MediaType` Media type used in representations and preferences.

Methods in org.restlet.data that return Metadata
Modifier and Type | Method and Description
--- | ---
`Metadata` | CharacterSet.`getParent()`
`abstract Metadata` | Metadata.`getParent()` Returns the parent metadata if available or null.
`Metadata` | Encoding.`getParent()`

Methods in org.restlet.data with parameters of type Metadata
Modifier and Type | Method and Description
--- | ---
`boolean` | Language.`includes(Metadata included)` Indicates if a given language is included in the current one.
`boolean` | CharacterSet.`includes(Metadata included)` Indicates if a given character set is included in the current one.
`abstract boolean` | Metadata.`includes(Metadata included)` Indicates if a given metadata is included in the current one.
`boolean` | Encoding.`includes(Metadata included)` Indicates if a given encoding is included in the current one.
`boolean` | MediaType.`includes(Metadata included)` Indicates if a given media type is included in the current one.
`boolean` | Metadata.`isCompatible(Metadata otherMetadata)` Checks if this metadata is compatible with the given metadata.

### Uses of Metadata in org.restlet.engine.application

Methods in org.restlet.engine.application that return Metadata
Modifier and Type | Method and Description
--- | ---
`Metadata` | MetadataExtension.`getMetadata()` Returns the metadata.

Constructors in org.restlet.engine.application with parameters of type Metadata
Constructor and Description
`MetadataExtension(java.lang.String name, Metadata metadata)` Constructor.

### Uses of Metadata in org.restlet.engine.http.header

Classes in org.restlet.engine.http.header with type parameters of type Metadata
Modifier and Type | Class and Description
--- | ---
`class` | `MetadataWriter<M extends Metadata>` Metadata header writer.
`class` | `PreferenceReader<T extends Metadata>` Preference header reader.

### Uses of Metadata in org.restlet.engine.util

Methods in org.restlet.engine.util with type parameters of type Metadata
Modifier and Type | Method and Description
--- | ---
`protected <T extends Metadata> java.util.List<Preference<T>>` | Conneg.`getEnrichedPreferences(java.util.List<Preference<T>> userPreferences, T defaultValue, T allValue)` Returns an enriched list of preferences.
`static <T extends Metadata> T` | ConnegUtils.`getPreferredMetadata(java.util.List<T> supported, java.util.List<Preference<T>> preferences)` Returns the preferred metadata taking into account both metadata supported by the server and client preferences.

### Uses of Metadata in org.restlet.service

Methods in org.restlet.service with type parameters of type Metadata
Modifier and Type | Method and Description
--- | ---
`<T extends Metadata> T` | MetadataService.`getMetadata(java.lang.String extension, java.lang.Class<T> metadataType)` Returns the metadata associated to this extension.

Methods in org.restlet.service that return Metadata
Modifier and Type | Method and Description
--- | ---
`Metadata` | MetadataService.`getMetadata(java.lang.String extension)` Returns the metadata associated to this extension.

Methods in org.restlet.service that return types with arguments of type Metadata
Modifier and Type | Method and Description
--- | ---
`java.util.List<Metadata>` | MetadataService.`getAllMetadata(java.lang.String extension)` Returns all the metadata associated to this extension.

Methods in org.restlet.service with parameters of type Metadata
Modifier and Type | Method and Description
--- | ---
`void` | MetadataService.`addExtension(java.lang.String extension, Metadata metadata)` Maps an extension to some metadata (media type, language or character set) to an extension.
`void` | MetadataService.`addExtension(java.lang.String extension, Metadata metadata, boolean preferred)` Maps an extension to some metadata (media type, language or character set) to an extension.
`java.lang.String` | MetadataService.`getExtension(Metadata metadata)` Returns the first extension mapping to this metadata.