org.jboss.metatype.api.types
Class GenericMetaType
java.lang.Object
org.jboss.metatype.api.types.AbstractMetaType
org.jboss.metatype.api.types.GenericMetaType
- All Implemented Interfaces:
- Serializable, MetaType
public class GenericMetaType
- extends AbstractMetaType
GenericMetaType.
This type allows objects that otherwise wouldn't otherwise be metatypes
to be passed as is inside the type system. Assuming that both
sides understand the value.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
- See Also:
- Serialized Form
Methods inherited from class org.jboss.metatype.api.types.AbstractMetaType |
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isPrimitive, isProperties, isSimple, isTable |
GenericMetaType
public GenericMetaType(String typeName,
String description)
- Create a new GenericMetaType.
- Parameters:
typeName
- the type namedescription
- the description
isGeneric
public boolean isGeneric()
- Description copied from interface:
MetaType
- Retrieve whether the class name of the type is generic
- Specified by:
isGeneric
in interface MetaType
- Overrides:
isGeneric
in class AbstractMetaType
- Returns:
- true when it is generic or false otherwise
isValue
public boolean isValue(Object obj)
- Description copied from interface:
MetaType
- Whether the passed value is one of those described by this meta type.
- Specified by:
isValue
in interface MetaType
- Specified by:
isValue
in class AbstractMetaType
- Parameters:
obj
- the object to test
- Returns:
- true when it is value for this meta type, false otherwise
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.