|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.kilim.description.TemplateElementImpl
org.objectweb.kilim.description.Instance
Field Summary | |
private java.lang.String |
localName
|
private int |
status
|
private TemplateDescription |
template
|
Fields inherited from class org.objectweb.kilim.description.TemplateElementImpl |
|
Constructor Summary | |
Instance(java.lang.String aName,
int aStatus,
TemplateDescription aTemplate,
TemplateDescription aContain)
Constructs a new Instance in a template |
Method Summary | |
private void |
checkStatus(int aStatus)
|
java.lang.String |
getLocalName()
returns the name of the element. |
int |
getStatus()
returns the status of the element. |
TemplateDescription |
getTemplate()
returns the template describing the instance. |
void |
setLocalName(java.lang.String aName)
sets a name to the element. |
void |
setStatus(int aStatus)
sets the element status. |
void |
setTemplate(TemplateDescription aTemplate)
set the template describing the instance. |
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.kilim.description.TemplateElementImpl |
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.kilim.description.TemplateElement |
clone, getContainingTemplate, getTemplateDefHierarchy, setContainingTemplate |
Field Detail |
private java.lang.String localName
private int status
private TemplateDescription template
Constructor Detail |
public Instance(java.lang.String aName, int aStatus, TemplateDescription aTemplate, TemplateDescription aContain) throws KilimException
aName
- identifies the Instance in its TemplateaStatus
- :indicates the status of the template
(should be one of KILIM.PUBLIC, KILIM.PROTECTED, KILIM.PRIVATE)aTemplate
- :indicates the templates in which the template is defined.aContain
- :
KilimException
- : thrown when the name is null or the statu illegal.Method Detail |
public void setLocalName(java.lang.String aName) throws KilimException
NamedElement
setLocalName
in interface NamedElement
aName
- : the name to be set
KilimException
- : generated when aName is null.NamedElement.setLocalName(String)
public java.lang.String getLocalName()
NamedElement
getLocalName
in interface NamedElement
NamedElement.getLocalName()
public int getStatus()
NamedElement
getStatus
in interface NamedElement
NamedElement.getStatus()
public void setStatus(int aStatus) throws KilimException
NamedElement
setStatus
in interface NamedElement
aStatus
- : The value must be one of KILIM.PRIVATE, KILIM.PROTECTED, KILIM.PUBLIC.
KilimException
- generated if the value for aStatus is not valid.org.objectweb.kilim.description.TemplateElement#setStatus(int)
public TemplateDescription getTemplate()
public void setTemplate(TemplateDescription aTemplate)
aTemplate
- :public java.lang.String toString()
Object.toString()
private void checkStatus(int aStatus) throws KilimException
KilimException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |