|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.util.TemplateInfo
public class TemplateInfo
TemplateInfo is a wrapper class to make interaction with templates a little easier. It allows querying a template directly for all its SDTs and restrictions that are described in the template, without the need to know anything about the structure of the template.
| Constructor Summary | |
|---|---|
TemplateInfo(Template template)
Create a new TemplateInfo wrapper on a single template. |
|
| Method Summary | |
|---|---|
java.util.List<Restriction> |
getRestrictions()
|
java.util.List<Restriction> |
getRestrictions(java.lang.String serviceName)
|
java.util.List<ServiceDescriptionTerm> |
getSDTs()
Obtain a list of all the ServiceDescriptionTerm terms in
the template. |
java.util.List<java.lang.String> |
getServiceNames()
List the names of all the services that are described in this template. |
static void |
main(java.lang.String[] args)
|
boolean |
provides(java.lang.String serviceName)
Query the template to see if it provides a certain service. |
static Template |
readTemplate(java.io.File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateInfo(Template template)
| Method Detail |
|---|
public java.util.List<java.lang.String> getServiceNames()
ServiceDescriptionTerm terms are queried
for the name of the service they provide.
public boolean provides(java.lang.String serviceName)
serviceName - Name of the service to look for.
true if the service name is defined
in the template, otherwise false.public java.util.List<ServiceDescriptionTerm> getSDTs()
ServiceDescriptionTerm terms in
the template.
public java.util.List<Restriction> getRestrictions()
public java.util.List<Restriction> getRestrictions(java.lang.String serviceName)
public static Template readTemplate(java.io.File file)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||