org.ho.yaml.wrapper
Class OneArgConstructorTypeWrapper

java.lang.Object
  extended by org.ho.yaml.wrapper.AbstractWrapper
      extended by org.ho.yaml.wrapper.DefaultSimpleTypeWrapper
          extended by org.ho.yaml.wrapper.OneArgConstructorTypeWrapper
All Implemented Interfaces:
ObjectWrapper, SimpleObjectWrapper, WrapperFactory
Direct Known Subclasses:
ClassWrapper

public class OneArgConstructorTypeWrapper
extends DefaultSimpleTypeWrapper
implements WrapperFactory


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ho.yaml.wrapper.ObjectWrapper
ObjectWrapper.CreateListener
 
Constructor Summary
OneArgConstructorTypeWrapper()
           
OneArgConstructorTypeWrapper(java.lang.Class type)
           
OneArgConstructorTypeWrapper(java.lang.Class type, java.lang.String argType)
           
 
Method Summary
 java.lang.Class expectedArgType()
           
 java.lang.String getArgType()
           
 ObjectWrapper makeWrapper()
           
 void setArgType(java.lang.String argType)
           
 void setObject(java.lang.Object obj)
           
 void setType(java.lang.Class type)
           
 
Methods inherited from class org.ho.yaml.wrapper.DefaultSimpleTypeWrapper
getOutputValue
 
Methods inherited from class org.ho.yaml.wrapper.AbstractWrapper
addCreateHandler, createPrototype, getObject, getType, setYamlConfig, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ho.yaml.wrapper.ObjectWrapper
addCreateHandler, createPrototype, getObject, getType, setYamlConfig
 

Constructor Detail

OneArgConstructorTypeWrapper

public OneArgConstructorTypeWrapper()

OneArgConstructorTypeWrapper

public OneArgConstructorTypeWrapper(java.lang.Class type)

OneArgConstructorTypeWrapper

public OneArgConstructorTypeWrapper(java.lang.Class type,
                                    java.lang.String argType)
Method Detail

expectedArgType

public java.lang.Class expectedArgType()
Specified by:
expectedArgType in interface SimpleObjectWrapper
Overrides:
expectedArgType in class DefaultSimpleTypeWrapper

setObject

public void setObject(java.lang.Object obj)
Specified by:
setObject in interface ObjectWrapper
Overrides:
setObject in class AbstractWrapper

getArgType

public java.lang.String getArgType()

setArgType

public void setArgType(java.lang.String argType)

setType

public void setType(java.lang.Class type)

makeWrapper

public ObjectWrapper makeWrapper()
Specified by:
makeWrapper in interface WrapperFactory
Overrides:
makeWrapper in class AbstractWrapper