public abstract class Metadata
extends java.lang.Object
Preference
,
Source dissertationConstructor 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").
|
abstract Metadata |
getParent()
Returns the parent metadata if available or null.
|
int |
hashCode() |
abstract boolean |
includes(Metadata included)
Indicates if a given metadata is included in the current one.
|
boolean |
isCompatible(Metadata otherMetadata)
Checks if this metadata is compatible with the given metadata.
|
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 abstract Metadata getParent()
public int hashCode()
hashCode
in class java.lang.Object
public abstract boolean includes(Metadata included)
MediaType.ALL
includes all
media types.
Examples:
included
- The metadata to test for inclusion.isCompatible(Metadata)
public boolean isCompatible(Metadata otherMetadata)
Examples:
otherMetadata
- The other metadata to compare.includes(Metadata)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.