cgl.juddi.datatype.attribute
Class Attribute

java.lang.Object
  |
  +--cgl.juddi.datatype.attribute.Attribute
All Implemented Interfaces:
org.apache.juddi.datatype.RegistryObject, java.io.Serializable

public class Attribute
extends java.lang.Object
implements org.apache.juddi.datatype.RegistryObject

Author:
Mehmet S. Aktas (maktas@indiana.edu)
See Also:
Serialized Form

Field Summary
(package private)  AttributeValue attribute_value
           
(package private)  AttributeFindQualifier attributefindqualifier
           
(package private)  java.lang.String attributeKey
           
(package private)  AttributeName attributename
           
(package private)  AttributeType attributetype
           
(package private)  java.lang.String bindingKey
           
(package private)  org.apache.juddi.datatype.CategoryBag categoryBag
           
(package private)  Lease lease
           
(package private)  java.lang.String name
           
(package private)  int property_version
           
(package private)  java.lang.String serviceKey
           
(package private)  java.lang.String value
           
 
Constructor Summary
Attribute()
          Constructs a new empty ServiceAttribute.
Attribute(java.lang.String name, java.lang.String value)
           
 
Method Summary
 void addCategory(org.apache.juddi.datatype.KeyedReference ref)
          Add a category to the categorybag of this business service.
 AttributeFindQualifier getAttributeFindQualifier()
          Returns the tModelInstanceDetails of this binding template.
 java.lang.String getAttributeKey()
          Returns the servicekey of this bindingtemplate.
 AttributeName getAttributeName()
          Returns the accesspoint of this binding template.
 AttributeType getAttributeType()
          Returns the hosting redirector of this binding template.
 AttributeValue getAttributeValue()
          Returns the tModelInstanceDetails of this binding template.
 int getAttributeVersion()
          Returns the value of this property.
 java.lang.String getBindingKey()
          Returns the servicekey of this bindingtemplate.
 org.apache.juddi.datatype.CategoryBag getCategoryBag()
          Returns the categorybag of this business service.
 Lease getLease()
          Returns the categorybag of this business service.
 java.lang.String getName()
          Returns the name of the attribute.
 java.lang.String getServiceKey()
          Returns the attributekey of this service attribute.
 java.lang.String getValue()
          Returns the value of this attribute.
 void setAttributeFindQualifier(AttributeFindQualifier value)
          Sets the tModelInstanceDetails of this binding template.
 void setAttributeKey(java.lang.String key)
          Sets the servicekey of this bindingtemplate.
 void setAttributeName(AttributeName propertyname)
          Sets the AccessPoint of this BindingTemplate.
 void setAttributeType(AttributeType type)
          Sets the hosting redirector of this BindingTemplate.
 void setAttributeValue(AttributeValue value)
          Sets the tModelInstanceDetails of this binding template.
 void setAttributeVersion(int value)
           
 void setBindingKey(java.lang.String key)
          Sets the servicekey of this bindingtemplate.
 void setCategoryBag(org.apache.juddi.datatype.CategoryBag bag)
          Set the categorybag of this business service to the given one.
 void setLease(Lease lease)
          Set the categorybag of this business service to the given one.
 void setName(java.lang.String name)
          Sets the name of this attribute.
 void setServiceKey(java.lang.String key)
          Sets the attributekey of this service attribute.
 void setValue(java.lang.String value)
          Sets the value of this attribue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

java.lang.String name

value

java.lang.String value

serviceKey

java.lang.String serviceKey

bindingKey

java.lang.String bindingKey

attributeKey

java.lang.String attributeKey

attributename

AttributeName attributename

attributetype

AttributeType attributetype

attribute_value

AttributeValue attribute_value

attributefindqualifier

AttributeFindQualifier attributefindqualifier

categoryBag

org.apache.juddi.datatype.CategoryBag categoryBag

lease

Lease lease

property_version

int property_version
Constructor Detail

Attribute

public Attribute()
Constructs a new empty ServiceAttribute.


Attribute

public Attribute(java.lang.String name,
                 java.lang.String value)
Method Detail

setName

public void setName(java.lang.String name)
Sets the name of this attribute.

Parameters:
name - The name of this attribute.

getName

public java.lang.String getName()
Returns the name of the attribute.

Returns:
The name of the attribute.

setValue

public void setValue(java.lang.String value)
Sets the value of this attribue.

Parameters:
value - The value of this attribute

getValue

public java.lang.String getValue()
Returns the value of this attribute.

Returns:
The value of this attribute.

setServiceKey

public void setServiceKey(java.lang.String key)
Sets the attributekey of this service attribute.

Parameters:
key - The new attribute key.

getServiceKey

public java.lang.String getServiceKey()
Returns the attributekey of this service attribute.

Returns:
The attributekey of this service attribute.

setBindingKey

public void setBindingKey(java.lang.String key)
Sets the servicekey of this bindingtemplate.

Parameters:
key - The new service key.

getBindingKey

public java.lang.String getBindingKey()
Returns the servicekey of this bindingtemplate. This method can return null if the business service for this binding template has been set and if the service key for this binding template has not been set.

Returns:
The servicekey of this bindingtemplate.

setAttributeKey

public void setAttributeKey(java.lang.String key)
Sets the servicekey of this bindingtemplate.

Parameters:
key - The new service key.

getAttributeKey

public java.lang.String getAttributeKey()
Returns the servicekey of this bindingtemplate. This method can return null if the business service for this binding template has been set and if the service key for this binding template has not been set.

Returns:
The servicekey of this bindingtemplate.

setAttributeName

public void setAttributeName(AttributeName propertyname)
Sets the AccessPoint of this BindingTemplate. If the new AccessPoint is not null and if this BindingTemplate also contains a HostingRedirector, that HostingRedirector is set to null.


getAttributeName

public AttributeName getAttributeName()
Returns the accesspoint of this binding template.

Returns:
The accesspoint of this binding template, or null if the hosting redirector of this binding template has been set.

setAttributeType

public void setAttributeType(AttributeType type)
Sets the hosting redirector of this BindingTemplate. If the new HostingRedirector is not null and if this BindingTemplate also contains an AccessPoint, that AccessPoint is set to null.


getAttributeType

public AttributeType getAttributeType()
Returns the hosting redirector of this binding template.

Returns:
The hosting redirector of this BindingTemplate, or null if the AccessPoint of this BindingTemplate has been set.

getAttributeValue

public AttributeValue getAttributeValue()
Returns the tModelInstanceDetails of this binding template.

Returns:
The tModelInstanceDetails of this binding template. If this binding template doesn't contain any tModelInstanceDetails, an empty enumeration is returned.

setAttributeValue

public void setAttributeValue(AttributeValue value)
Sets the tModelInstanceDetails of this binding template.


getAttributeFindQualifier

public AttributeFindQualifier getAttributeFindQualifier()
Returns the tModelInstanceDetails of this binding template.

Returns:
The tModelInstanceDetails of this binding template. If this binding template doesn't contain any tModelInstanceDetails, an empty enumeration is returned.

setAttributeFindQualifier

public void setAttributeFindQualifier(AttributeFindQualifier value)
Sets the tModelInstanceDetails of this binding template.


addCategory

public void addCategory(org.apache.juddi.datatype.KeyedReference ref)
Add a category to the categorybag of this business service.


getCategoryBag

public org.apache.juddi.datatype.CategoryBag getCategoryBag()
Returns the categorybag of this business service. If this business service doesn't contain any categories, an empty enumeration is returned.

Returns:
The categorybag of this business service.

setCategoryBag

public void setCategoryBag(org.apache.juddi.datatype.CategoryBag bag)
Set the categorybag of this business service to the given one.

Parameters:
bag - The new categorybag.

getLease

public Lease getLease()
Returns the categorybag of this business service. If this business service doesn't contain any categories, an empty enumeration is returned.

Returns:
The categorybag of this business service.

setLease

public void setLease(Lease lease)
Set the categorybag of this business service to the given one.


setAttributeVersion

public void setAttributeVersion(int value)

getAttributeVersion

public int getAttributeVersion()
Returns the value of this property.

Returns:
The value of this property.