|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.codegen.templates.ProviderCGTemplate
public class ProviderCGTemplate
This class is a template for the IProvider interface method implementations. The CodeGen will copy these methods to the class implementing the interface IProvider. Some methods will be copied "as is", other will be tweaked.
Constructor Summary | |
---|---|
ProviderCGTemplate()
|
Method Summary | |
---|---|
Map<String,IApplication> |
getApplications()
Returns the applications associated with the Provider. |
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 |
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 ProviderCGTemplate()
Method Detail |
---|
public Map<String,IApplication> getApplications()
IProvider
getApplications
in interface IProvider
IProvider.getApplications()
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()
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 |