|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.codegen.templates.ApplicationCGTemplate
public class ApplicationCGTemplate
This class is a template for the IApplication interface method implementations. The CodeGen will copy these methods to the class implementing the interface IApplication. Some methods will be copied "as is", other will be tweaked.
Constructor Summary | |
---|---|
ApplicationCGTemplate()
|
Method Summary | |
---|---|
void |
__CG__initialize()
Application initializer |
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 |
IProvider |
getProvider()
Returns the Application's provider. |
Map<String,IService> |
getServices()
Returns a list of all services associated to the Application. |
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 ApplicationCGTemplate()
Method Detail |
---|
public void __CG__initialize()
IApplicationPrivate
__CG__initialize
in interface IApplicationPrivate
IApplicationPrivate.__CG__initialize()
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 IProvider getProvider()
IApplication
getProvider
in interface IApplication
IApplication.getProvider()
public Map<String,IService> getServices()
IApplication
getServices
in interface IApplication
IApplication.getServices()
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 |