public abstract class Metadata extends Object
Preference
,
Source dissertationConstructor and Description |
---|
Metadata(String name)
Constructor.
|
Metadata(String name,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getDescription()
Returns the description.
|
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.
|
String |
toString()
Returns the metadata name.
|
public Metadata(String name)
name
- The unique name.public String getDescription()
public String getName()
public abstract Metadata getParent()
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)
Copyright © 2005–2015. All rights reserved.