org.objectweb.kilim.description
Interface NamedElement

All Superinterfaces:
java.lang.Cloneable, TemplateElement
All Known Subinterfaces:
BasicNamedElement
All Known Implementing Classes:
BasicNamedElementImpl, Instance, Slot

public interface NamedElement
extends TemplateElement

Named elements are template elements that have a name and a status (which is one of KILIM.PUBLIC, KILIM.PROTECTED, KILIM.PRIVATE).

Author:
horn

Method Summary
 java.lang.String getLocalName()
          returns the name of the element.
 int getStatus()
          returns the status of the element.
 void setLocalName(java.lang.String aName)
          sets a name to the element.
 void setStatus(int aStatus)
          sets the element status.
 
Methods inherited from interface org.objectweb.kilim.description.TemplateElement
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate
 

Method Detail

getLocalName

public java.lang.String getLocalName()
returns the name of the element.

Returns:
String

setLocalName

public void setLocalName(java.lang.String aName)
                  throws KilimException
sets a name to the element.

Parameters:
aName - : the name to be set
Throws:
KilimException - : generated when aName is null.

getStatus

public int getStatus()
returns the status of the element.

Returns:
int. The value is one of KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.

setStatus

public void setStatus(int aStatus)
               throws KilimException
sets the element status.

Parameters:
aStatus - : The value must be one of KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.
Throws:
KilimException - generated if the value for aStatus is not valid.