org.openrdf.http.object.util
Class MessageType

java.lang.Object
  extended by org.openrdf.repository.object.util.GenericType
      extended by org.openrdf.http.object.util.MessageType

public class MessageType
extends GenericType

Utility class for dealing with generic types.

Author:
James Leigh

Constructor Summary
MessageType(Class<?> type, Type genericType, String mimeType, ObjectConnection con)
          Deprecated. 
MessageType(String media, Class<?> ptype, Type gtype, ObjectConnection con)
           
 
Method Summary
 MessageType as(Class<?> t)
           
 MessageType as(Class<?> clas, Type type)
           
 MessageType as(String mimetype)
           
 Object cast(Object obj)
           
 Object castArray(Object ar)
           
 Object castComponent(Object obj)
           
 Object castMap(Map<?,Collection<?>> map)
           
 Object castSet(Set<?> set)
           
 Class<?> clas()
           
 MessageType component()
           
 MessageType component(String mimetype)
           
 MessageType getKeyGenericType()
           
 String getMimeType()
           
 ObjectConnection getObjectConnection()
           
 ObjectFactory getObjectFactory()
           
 ValueFactory getValueFactory()
           
 boolean isConcept(Class<?> component)
           
 boolean isDatatype(Class<?> type2)
           
 boolean isOrIsSetOf(Type type)
           
 boolean isSetOrArray()
           
 boolean isSetOrArrayOf(Type componentType)
           
 Iterator<?> iteratorOf(Object obj)
           
 MessageType key(String mimetype)
           
 Type type()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageType

@Deprecated
public MessageType(Class<?> type,
                              Type genericType,
                              String mimeType,
                              ObjectConnection con)
Deprecated. 


MessageType

public MessageType(String media,
                   Class<?> ptype,
                   Type gtype,
                   ObjectConnection con)
Method Detail

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.