org.andromda.core.namespace
Class Component

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

public class Component
extends Object

Stores information about a namespace component.

Author:
Chad Brandon

Constructor Summary
Component()
           
 
Method Summary
 void addPath(String path)
          Adds a path to the component's descriptor.
(package private)  void addPaths(String[] paths)
          Adds the given paths to the existing paths contained within this component.
 String getName()
          Gets the name of the component.
 String[] getPaths()
          Gets the component's descriptor paths (these are the paths where the component's descriptor may be found).
 Class getType()
          Gets the class that defines this component.
 void setName(String name)
          Sets the name of the component.
 void setTypeClass(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 String getName()
Gets the name of the component.

Returns:
the component name.

setName

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

Parameters:
name - the component's name.

getPaths

public 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(String path)
Adds a path to the component's descriptor.

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

addPaths

final void addPaths(String[] paths)
Adds the given paths to the existing paths contained within this component.

Parameters:
paths - the paths to add.

setTypeClass

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

Parameters:
typeClass - the name of the type.

getType

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

Returns:
the class that defines this component.


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