JBoss Managed Parent POM 2.1.1.SP2

org.jboss.metatype.plugins.types
Class MutableCompositeMetaType

java.lang.Object
  extended by org.jboss.metatype.api.types.AbstractMetaType
      extended by org.jboss.metatype.plugins.types.AbstractCompositeMetaType
          extended by org.jboss.metatype.plugins.types.MutableCompositeMetaType
All Implemented Interfaces:
Serializable, CompositeMetaType, MetaType

public class MutableCompositeMetaType
extends AbstractCompositeMetaType

MutableCompositeMetaType.

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
MutableCompositeMetaType(String typeName, String description)
          Construct a composite meta type with no items.
 
Method Summary
 void addItem(String itemName, String itemDescription, MetaType itemType)
          Add an item
 boolean equals(Object obj)
           
 void freeze()
          Freeze the metatype
 int hashCode()
           
 void setKeys(Set<String> keySet)
          Set the keys
 String toString()
           
 
Methods inherited from class org.jboss.metatype.plugins.types.AbstractCompositeMetaType
containsItem, equalsImpl, getDescription, getType, hashCodeImpl, isComposite, isValue, itemSet, keySet
 
Methods inherited from class org.jboss.metatype.api.types.AbstractMetaType
getClassName, getDescription, getTypeName, isArray, isCollection, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metatype.api.types.MetaType
getClassName, getDescription, getTypeName, isArray, isCollection, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable
 

Constructor Detail

MutableCompositeMetaType

public MutableCompositeMetaType(String typeName,
                                String description)
Construct a composite meta type with no items.

Parameters:
typeName - the name of the composite type, cannot be null or empty
description - the human readable description of the composite type, cannot be null or empty
Throws:
IllegalArgumentException - when a parameter does not match what is described above.
Method Detail

addItem

public void addItem(String itemName,
                    String itemDescription,
                    MetaType itemType)
Description copied from class: AbstractCompositeMetaType
Add an item

Overrides:
addItem in class AbstractCompositeMetaType
Parameters:
itemName - the item name
itemDescription - the item description
itemType - the item type

setKeys

public void setKeys(Set<String> keySet)
Description copied from class: AbstractCompositeMetaType
Set the keys

Overrides:
setKeys in class AbstractCompositeMetaType
Parameters:
keySet - the key set

freeze

public void freeze()
Freeze the metatype


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class AbstractCompositeMetaType

JBoss Managed Parent POM 2.1.1.SP2

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