org.andromda.core.cartridge.template
Class Type

java.lang.Object
  extended by org.andromda.core.cartridge.template.Type

public class Type
extends java.lang.Object

Represents the <type/> element nested within the <modelElement/> element.

Author:
Chad Brandon
See Also:
ModelElement

Nested Class Summary
static class Type.Property
          Stores and provides access to the type's <property/> elements.
 
Constructor Summary
Type()
           
 
Method Summary
 void addProperty(java.lang.String name, java.lang.String variable, java.lang.String value)
          Adds a property having the given name and value.
 java.lang.String getName()
          Gets the name of this type (typically the fully qualified class name of the type).
 java.util.Collection getProperties()
          Gets the properties defined for this type.
 void setName(java.lang.String name)
          Sets the name of this type (this is the fully qualified class name of the type).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Type

public Type()
Method Detail

getName

public java.lang.String getName()
Gets the name of this type (typically the fully qualified class name of the type).

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Sets the name of this type (this is the fully qualified class name of the type).

Parameters:
name - The name to set.

getProperties

public java.util.Collection getProperties()
Gets the properties defined for this type.

Returns:
Returns the properties.

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String variable,
                        java.lang.String value)
Adds a property having the given name and value. The value is what the property must be in order to be collected.

Parameters:
name - the name of the property.
variable - the optional variable name in which the contents of this property's value should be stored within a template.
value - the option value the property must be in order to be considered valid.


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.