public class Kind
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Kind.Adaptable
The Adaptable interface is implemented by GData
ExtensionPoint
types that can be flexible adapted based upon the presence of GData
kind category elements. |
static class |
Kind.AdaptableHelper
A simple helper class implementation of the
Kind.Adaptable interface. |
static interface |
Kind.Adaptor
The Adaptor interface is implemented by
Extension classes
that provide extension declaration and data modeling support for
specific GData kinds. |
static class |
Kind.AdaptorException
The AdaptorException class defines a simple
ServiceException
type that is thrown on kind adaptation failures. |
static interface |
Kind.Term
The Term annnotation type is used to annotate
Kind.Adaptor
classes to declare the GData kind Category term value(s)
implemented by the adaptor type. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
META_DIRECTORY
The location of the
META-INF jar directory where GData kind
mapping information is stored. |
Constructor and Description |
---|
Kind() |
Modifier and Type | Method and Description |
---|---|
static Kind.Adaptor |
getAdaptor(java.lang.String kindTerm,
Kind.Adaptable adaptable)
Returns an
Kind.Adaptor instance associated with the specified
kind that is associated with the target Kind.Adaptable . |
static java.lang.Class<Kind.Adaptor> |
getAdaptorClass(java.lang.String kindTerm,
Kind.Adaptable adaptable)
Returns that
Kind.Adaptor class that handles the
declaration of extensions within an ExtensionProfile based
upon the kind term value. |
static java.lang.String |
getKindServiceName(java.lang.String kindTerm)
Returns the kind service name associatd with a particular Kind category
term value.
|
static boolean |
isKindCategory(Category category) |
public static final java.lang.String META_DIRECTORY
META-INF
jar directory where GData kind
mapping information is stored.public static boolean isKindCategory(Category category)
public static java.lang.String getKindServiceName(java.lang.String kindTerm)
Kind.Adaptor
class implementations
for the kind.public static java.lang.Class<Kind.Adaptor> getAdaptorClass(java.lang.String kindTerm, Kind.Adaptable adaptable) throws Kind.AdaptorException
Kind.Adaptor
class that handles the
declaration of extensions within an ExtensionProfile
based
upon the kind term value. A return value of null
indicates
that no adaptor class could be located for this cobintation of kind and
Kind.Adaptable
type.Kind.AdaptorException
public static Kind.Adaptor getAdaptor(java.lang.String kindTerm, Kind.Adaptable adaptable) throws Kind.AdaptorException
Kind.Adaptor
instance associated with the specified
kind that is associated with the target Kind.Adaptable
. Returns
null
if no Adaptor can be found.Kind.AdaptorException