JBoss Managed Parent POM 2.1.1.SP2

org.jboss.metatype.api.types
Class GenericMetaType

java.lang.Object
  extended by org.jboss.metatype.api.types.AbstractMetaType
      extended by 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

Field Summary
 
Fields inherited from interface org.jboss.metatype.api.types.MetaType
ALLOWED_CLASSNAMES
 
Constructor Summary
GenericMetaType(String typeName, String description)
          Create a new GenericMetaType.
 
Method Summary
 boolean equals(Object obj)
           
 boolean isGeneric()
          Retrieve whether the class name of the type is generic
 boolean isValue(Object obj)
          Whether the passed value is one of those described by this meta type.
 String toString()
           
 
Methods inherited from class org.jboss.metatype.api.types.AbstractMetaType
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isPrimitive, isProperties, isSimple, isTable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericMetaType

public GenericMetaType(String typeName,
                       String description)
Create a new GenericMetaType.

Parameters:
typeName - the type name
description - the description
Method Detail

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

JBoss Managed Parent POM 2.1.1.SP2

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.