|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.common.TemplateObject
public class TemplateObject
Contains the configuration of a template object which are objects that are made available to the cartridge templates.
| Constructor Summary | |
|---|---|
TemplateObject()
|
|
| Method Summary | |
|---|---|
void |
addPropertyReference(java.lang.String reference)
Adds a templateObject property reference (used to customize templateObjects). |
protected org.apache.log4j.Logger |
getLogger()
Gets the namespace logger (the logger under which output for this template object should be written). |
java.lang.String |
getName()
Gets the current name of this TemplateObject. |
java.lang.String |
getNamespace()
Gets the namespace to which this template object belongs. |
java.lang.Object |
getObject()
Returns the actuall object instance described by this template object. |
java.net.URL |
getResource()
The resource in which the templateObject was found. |
void |
setClassName(java.lang.String className)
Sets the class of the transformation object. |
void |
setName(java.lang.String name)
Sets the name of the template object (this name will be what the template class is stored under in the template) |
void |
setNamespace(java.lang.String namespace)
Sets the namespace to which this template object belongs. |
protected void |
setProperties(java.lang.Object templateObject)
Sets all the nested properties on the templateObject object. |
void |
setResource(java.net.URL resource)
Sets the resource in which the templateObject was defined. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateObject()
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.Object getObject()
protected void setProperties(java.lang.Object templateObject)
templateObject - the template object on which to populate properties.public void setName(java.lang.String name)
name - the name of the template object.public void setClassName(java.lang.String className)
className - the name of the template object class.public void addPropertyReference(java.lang.String reference)
reference - the name of the property reference.public java.net.URL getResource()
public void setResource(java.net.URL resource)
resource - the resource on which this template object was defined.public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace - The namespace to set.protected org.apache.log4j.Logger getLogger()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||