org.andromda.core.namespace
Class Component

java.lang.Object
  extended by org.andromda.core.namespace.Component

public class Component
extends java.lang.Object

Stores information about a namespace component.

Author:
Chad Brandon

Constructor Summary
Component()
           
 
Method Summary
 void addPath(java.lang.String path)
          Adds a path to the component's descriptor.
 java.lang.String getName()
          Gets the name of the component.
 java.lang.String[] getPaths()
          Gets the component's descriptor paths (these are the paths where the component's descriptor may be found).
 java.lang.Class getType()
          Gets the class that defines this component.
 void setName(java.lang.String name)
          Sets the name of the component.
 void setTypeClass(java.lang.String typeClass)
          Sets the type class that defines this component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Component

public Component()
Method Detail

getName

public java.lang.String getName()
Gets the name of the component.

Returns:
the component name.

setName

public void setName(java.lang.String name)
Sets the name of the component.

Parameters:
name - the component's name.

getPaths

public java.lang.String[] getPaths()
Gets the component's descriptor paths (these are the paths where the component's descriptor may be found).

Returns:
the path to the component's descriptor.

addPath

public void addPath(java.lang.String path)
Adds a path to the component's descriptor.

Parameters:
path - that path to the component's descriptor.

setTypeClass

public void setTypeClass(java.lang.String typeClass)
Sets the type class that defines this component.

Parameters:
typeClass - the name of the type.

getType

public java.lang.Class getType()
Gets the class that defines this component.

Returns:
the class that defines this component.


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