|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.codegen.templates.ServiceCGTemplate
public class ServiceCGTemplate
This class is a template for the IService interface method implementations. The CodeGen will copy these methods to the class implementing the interface IService. Some methods will be copied "as is", other will be tweaked.
Constructor Summary | |
---|---|
ServiceCGTemplate()
|
Method Summary | |
---|---|
IApplication |
getApplication()
Returns the Service application. |
String |
getID()
Returns the Entity ID. |
LicenseEditionType |
getLicenseEdition()
Get the License Edition. |
String |
getMessage(String messageID)
Returns a message associated with a given ID |
Map<String,String> |
getMessages()
Returns all messages associated with the Entity. |
String |
getName()
Returns the Entity name. |
String |
getOriginalClassName()
Returns the original entity class name |
Map<String,IStage> |
getStages()
Returns the list of Service stages. |
protected TemplateResources |
getTemplateResources()
|
String |
getUID()
Returns the entity's unique ID. |
boolean |
isRegistered()
Returns information about if the Entity is registered. |
boolean |
isRegistrable()
Returns information about if the Entity can be registered. |
boolean |
register(String name,
String key)
Registers the Entity with a given key. |
void |
unregister()
Unregisters the Entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceCGTemplate()
Method Detail |
---|
public IApplication getApplication()
IService
getApplication
in interface IService
IService.getApplication()
public LicenseEditionType getLicenseEdition()
IRegistrable
getLicenseEdition
in interface IRegistrable
LicenseEditionType
IRegistrable.getLicenseEdition()
public String getID()
IEntity
getID
in interface IEntity
IEntity.getID()
public String getMessage(String messageID)
IMessage
getMessage
in interface IMessage
messageID
- the message ID
IMessage.getMessage(java.lang.String)
public Map<String,String> getMessages()
IMessage
getMessages
in interface IMessage
IMessage.getMessages()
public String getName()
IEntity
getName
in interface IEntity
IEntity.getName()
public String getOriginalClassName()
IEntity
getOriginalClassName
in interface IEntity
IEntity.getOriginalClassName()
public Map<String,IStage> getStages()
IService
getStages
in interface IService
IService.getStages()
protected TemplateResources getTemplateResources()
public String getUID()
IEntity
getUID
in interface IEntity
IEntity.getUID()
public boolean isRegistered()
IRegistrable
isRegistered
in interface IRegistrable
IRegistrable.isRegistered()
public boolean isRegistrable()
IRegistrable
isRegistrable
in interface IRegistrable
IRegistrable.isRegistrable()
public boolean register(String name, String key)
IRegistrable
register
in interface IRegistrable
name
- the name to register tokey
- the encripted registration key
IRegistrable.register(java.lang.String, java.lang.String)
public void unregister()
IRegistrable
unregister
in interface IRegistrable
IRegistrable.unregister()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |