org.openarchitectureware.type.baseimpl.types
Class StringTypeImpl
java.lang.Object
org.openarchitectureware.type.AbstractTypeImpl
org.openarchitectureware.type.baseimpl.types.BuiltinBaseType
org.openarchitectureware.type.baseimpl.types.StringTypeImpl
- All Implemented Interfaces:
- Type
public class StringTypeImpl
- extends BuiltinBaseType
- implements Type
- Author:
- Sven Efftinge (http://www.efftinge.de), Arno Haase
Method Summary |
java.lang.Object |
convert(java.lang.Object src,
java.lang.Class targetType)
converts the given Object to an instance of the given Class, if this type
is responsible for java objects of the given Class and the given Object |
Feature[] |
getContributedFeatures()
|
java.util.Set<Type> |
getSuperTypes()
|
boolean |
isInstance(java.lang.Object o)
|
java.lang.Object |
newInstance()
|
Methods inherited from class org.openarchitectureware.type.AbstractTypeImpl |
equals, getAllFeatures, getAllOperations, getAllProperties, getAllStaticProperties, getDocumentation, getFeature, getName, getOperation, getProperty, getStaticProperty, getTypeSystem, hashCode, internalGetSuperTypes, internalIsAssignableFrom, isAbstract, isAssignableFrom, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openarchitectureware.type.Type |
getAllFeatures, getAllOperations, getAllProperties, getAllStaticProperties, getDocumentation, getFeature, getName, getOperation, getProperty, getStaticProperty, getTypeSystem, isAbstract, isAssignableFrom |
StringTypeImpl
public StringTypeImpl(TypeSystem ts,
java.lang.String name)
isInstance
public boolean isInstance(java.lang.Object o)
- Specified by:
isInstance
in interface Type
newInstance
public java.lang.Object newInstance()
- Specified by:
newInstance
in interface Type
getContributedFeatures
public Feature[] getContributedFeatures()
- Specified by:
getContributedFeatures
in class AbstractTypeImpl
getSuperTypes
public java.util.Set<Type> getSuperTypes()
- Specified by:
getSuperTypes
in interface Type
- Overrides:
getSuperTypes
in class AbstractTypeImpl
convert
public java.lang.Object convert(java.lang.Object src,
java.lang.Class targetType)
- Description copied from interface:
Type
- converts the given Object to an instance of the given Class, if this type
is responsible for java objects of the given Class and the given Object
- Specified by:
convert
in interface Type
- Overrides:
convert
in class AbstractTypeImpl
- Returns: