org.iids.aos.util
Class TemplateHelper
java.lang.Object
org.iids.aos.util.TemplateHelper
public class TemplateHelper
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateHelper
public TemplateHelper(Template template)
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.