org.iids.aos.util
Class TemplateHelper

java.lang.Object
  extended by org.iids.aos.util.TemplateHelper

public class TemplateHelper
extends java.lang.Object


Constructor Summary
TemplateHelper(Template template)
           
 
Method Summary
 void addCreationConstraint(Item item)
           
 void addSDT(ServiceDescriptionTerm sdt)
           
 int containsCreationConstraint(java.lang.String name)
          returns the identifier of the creationconstraint, if present.
 Item getCreationConstraint(java.lang.String name)
           
 java.util.Vector<java.lang.String> getCreationConstraintNames()
          returns a vector of Strings, specifying the names of the items if no constraints, an empty vector is returned.
 java.util.Vector<Item> getCreationConstraints()
           
 java.util.Vector<java.lang.String> getEnumValues(int index)
           
 int getIndexFor(java.lang.String constraintName)
           
 RestrictionModel getRestriction(int index)
           
 ServiceDescriptionTerm getSDT(java.lang.String serviceName)
           
 boolean hasEnumValue(int index, java.lang.String value)
           
 void setTemplate(Template template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateHelper

public TemplateHelper(Template template)
Method Detail

setTemplate

public void setTemplate(Template template)

containsCreationConstraint

public int containsCreationConstraint(java.lang.String name)
returns the identifier of the creationconstraint, if present. -1 otherwise

Parameters:
name -
Returns:
identifier of creationconstrait, -1 otherwise

getCreationConstraintNames

public java.util.Vector<java.lang.String> getCreationConstraintNames()
returns a vector of Strings, specifying the names of the items if no constraints, an empty vector is returned.

Returns:
vector of Strings, specifying names of items

getCreationConstraints

public java.util.Vector<Item> getCreationConstraints()

getRestriction

public RestrictionModel getRestriction(int index)
                                throws TemplateHelperException
Throws:
TemplateHelperException

hasEnumValue

public boolean hasEnumValue(int index,
                            java.lang.String value)

getEnumValues

public java.util.Vector<java.lang.String> getEnumValues(int index)
                                                 throws TemplateHelperException
Throws:
TemplateHelperException

addCreationConstraint

public void addCreationConstraint(Item item)

getCreationConstraint

public Item getCreationConstraint(java.lang.String name)
                           throws TemplateHelperException
Throws:
TemplateHelperException

getIndexFor

public int getIndexFor(java.lang.String constraintName)
                throws TemplateHelperException
Throws:
TemplateHelperException

getSDT

public ServiceDescriptionTerm getSDT(java.lang.String serviceName)
                              throws AgreementInterpreterException
Throws:
AgreementInterpreterException

addSDT

public void addSDT(ServiceDescriptionTerm sdt)


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.