|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.negotiation.Service
public class Service
| Constructor Summary | |
|---|---|
Service(Template template,
ServiceDescriptionTerm sdt)
|
|
Service(Template template,
ServiceDescriptionTerm sdt,
boolean readonly)
|
|
| Method Summary | |
|---|---|
boolean |
canGetField(java.lang.String name)
See if a field can be set (case insensitive). |
boolean |
canSetField(java.lang.String name)
See if a field can be set (case insensitive). |
Service |
copy()
Try to copy a Service and all of the contents. |
java.lang.Object |
get(java.lang.String field)
Get value from Object contained within SDT. |
java.lang.Class<? extends java.lang.Object> |
getContentType()
Returns the Class type of the Objects that this service accepts. |
java.util.List<java.lang.String> |
getFields()
List all of the fields that can be set in this Object. |
java.lang.Class<? extends java.lang.Object> |
getFieldType(java.lang.String fieldName)
Find the Class type belonging to this field |
java.lang.Class<? extends java.lang.Object> |
getGetFieldType(java.lang.String fieldName)
|
java.util.List<java.lang.String> |
getGettableFields()
List all of the fields that can be set in this Object. |
java.util.List<Restriction> |
getRestrictions()
|
java.util.List<Restriction> |
getRestrictions(java.lang.String fieldName)
Get all the restrictions for the field name of this service. |
ServiceDescriptionTerm |
getSDT()
Obtain the underlying SDT. |
java.lang.String |
getServiceName()
Returns the name of the service that is provided. |
java.lang.Class<? extends java.lang.Object> |
getSetFieldType(java.lang.String fieldName)
Get the parameter class type for the set method of this field. |
java.util.List<java.lang.String> |
getSettableFields()
List all of the fields that can be set in this Object. |
boolean |
isReadOnly()
Check if the Service properties can be modified. |
void |
set(java.lang.String field,
java.lang.Object value)
Set value in Object contained within SDT. |
void |
setReadonly()
Make service non-mutable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Service(Template template,
ServiceDescriptionTerm sdt)
public Service(Template template,
ServiceDescriptionTerm sdt,
boolean readonly)
| Method Detail |
|---|
public Service copy()
isReadOnly() for the copy initially returns false.
public void setReadonly()
Request based on the
template.
There is no way to make a readonly template writable again. It can,
however, be copied
public boolean isReadOnly()
public java.lang.String getServiceName()
public ServiceDescriptionTerm getSDT()
public java.lang.Class<? extends java.lang.Object> getContentType()
public void set(java.lang.String field,
java.lang.Object value)
throws ServiceException,
RestrictionException
field - The property name of the service to set the value for.value - The value to set the service property to. If possible, and if there
are restrictions to the values of the service property, these will
be checked before actually setting the value of the property.
ServiceException - If the property field cannot be set. This can happen if the
field does not exist in the service, or if the Service is
readonly.
RestrictionException - If value is not in the allowed range for field.
public java.lang.Object get(java.lang.String field)
throws ServiceException
ServiceExceptionpublic java.util.List<Restriction> getRestrictions(java.lang.String fieldName)
public java.util.List<Restriction> getRestrictions()
public boolean canSetField(java.lang.String name)
public boolean canGetField(java.lang.String name)
public java.util.List<java.lang.String> getFields()
public java.util.List<java.lang.String> getSettableFields()
public java.util.List<java.lang.String> getGettableFields()
public java.lang.Class<? extends java.lang.Object> getFieldType(java.lang.String fieldName)
public java.lang.Class<? extends java.lang.Object> getSetFieldType(java.lang.String fieldName)
public java.lang.Class<? extends java.lang.Object> getGetFieldType(java.lang.String fieldName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||