org.globus.cog.karajan.util.serialization
Class RestrictedClassMapper

java.lang.Object
  extended by com.thoughtworks.xstream.mapper.MapperWrapper
      extended by org.globus.cog.karajan.util.serialization.RestrictedClassMapper
All Implemented Interfaces:
ClassMapper, com.thoughtworks.xstream.mapper.Mapper

public class RestrictedClassMapper
extends MapperWrapper


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.alias.ClassMapper
ClassMapper.Null
 
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping
 
Field Summary
static String PROPERTIES
           
 
Constructor Summary
RestrictedClassMapper(ClassMapper wrapped)
           
 
Method Summary
protected  Class checkClass(Class cls)
           
 Class defaultImplementationOf(Class type)
           
 com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName)
           
 Class getItemTypeForItemFieldName(Class definedIn, String itemFieldName)
           
 Class getOverrideRootType()
           
 Class lookupDefaultType(Class baseType)
           
 Class lookupType(String elementName)
           
 Class realClass(String elementName)
           
 
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper
alias, attributeForClassDefiningField, attributeForImplementationClass, attributeForReadResolveField, getFieldNameForItemTypeAndName, isImmutableValueType, lookupName, mapNameFromXML, mapNameToXML, realMember, serializedClass, serializedMember, setOverrideRootType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES

public static final String PROPERTIES
See Also:
Constant Field Values
Constructor Detail

RestrictedClassMapper

public RestrictedClassMapper(ClassMapper wrapped)
Method Detail

checkClass

protected Class checkClass(Class cls)

lookupType

public Class lookupType(String elementName)
Specified by:
lookupType in interface ClassMapper
Overrides:
lookupType in class MapperWrapper

lookupDefaultType

public Class lookupDefaultType(Class baseType)
Specified by:
lookupDefaultType in interface ClassMapper
Overrides:
lookupDefaultType in class MapperWrapper

getOverrideRootType

public Class getOverrideRootType()
Specified by:
getOverrideRootType in interface ClassMapper
Overrides:
getOverrideRootType in class MapperWrapper

realClass

public Class realClass(String elementName)
Specified by:
realClass in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
realClass in class MapperWrapper

defaultImplementationOf

public Class defaultImplementationOf(Class type)
Specified by:
defaultImplementationOf in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
defaultImplementationOf in class MapperWrapper

getImplicitCollectionDefForFieldName

public com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType,
                                                                                                             String fieldName)
Specified by:
getImplicitCollectionDefForFieldName in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
getImplicitCollectionDefForFieldName in class MapperWrapper

getItemTypeForItemFieldName

public Class getItemTypeForItemFieldName(Class definedIn,
                                         String itemFieldName)
Specified by:
getItemTypeForItemFieldName in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
getItemTypeForItemFieldName in class MapperWrapper