org.openrdf.http.object.util
Class MessageType
java.lang.Object
org.openrdf.repository.object.util.GenericType
org.openrdf.http.object.util.MessageType
public class MessageType
- extends GenericType
Utility class for dealing with generic types.
- Author:
- James Leigh
| Methods inherited from class org.openrdf.repository.object.util.GenericType |
equals, getClassType, getComponentClass, getComponentType, getGenericType, getKeyClass, getKeyType, hashCode, is, isAnnotation, isArray, isComponent, isEnum, isInterface, isKey, isMap, isPrimitive, isSet, isUnknown, toString |
MessageType
@Deprecated
public MessageType(Class<?> type,
Type genericType,
String mimeType,
ObjectConnection con)
- Deprecated.
MessageType
public MessageType(String media,
Class<?> ptype,
Type gtype,
ObjectConnection con)
getMimeType
public String getMimeType()
getObjectConnection
public ObjectConnection getObjectConnection()
getObjectFactory
public ObjectFactory getObjectFactory()
getValueFactory
public ValueFactory getValueFactory()
clas
public Class<?> clas()
type
public Type type()
isConcept
public boolean isConcept(Class<?> component)
isDatatype
public boolean isDatatype(Class<?> type2)
as
public MessageType as(Class<?> t)
key
public MessageType key(String mimetype)
component
public MessageType component()
component
public MessageType component(String mimetype)
as
public MessageType as(String mimetype)
as
public MessageType as(Class<?> clas,
Type type)
isSetOrArray
public boolean isSetOrArray()
isSetOrArrayOf
public boolean isSetOrArrayOf(Type componentType)
isOrIsSetOf
public boolean isOrIsSetOf(Type type)
getKeyGenericType
public MessageType getKeyGenericType()
cast
public Object cast(Object obj)
castComponent
public Object castComponent(Object obj)
castSet
public Object castSet(Set<?> set)
castArray
public Object castArray(Object ar)
castMap
public Object castMap(Map<?,Collection<?>> map)
iteratorOf
public Iterator<?> iteratorOf(Object obj)
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.