***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.discovery
Class IdAttribute

com.sas.services.discovery.IdAttribute
All Implemented Interfaces:
ServiceAttributeInterface, java.io.Serializable
Direct Known Subclasses:
JVMAttribute

public class IdAttribute

A foundation service discovery attribute representing an ID and ID type.

This attribute may be subclassed to create an attribute which can initialize the idType attribute to a well-known constant value.

Since:
1.0
See Also:
Serialized Form

Field Summary
 java.lang.String id
          An ID associated with a service.
 java.lang.String idType
          An additional attribute that may be used in the event that multiple IdAttribute objects are being used to represent different ids.
 
Constructor Summary
IdAttribute()
          Constructs a default instance with a null ID and null ID type.
IdAttribute(java.lang.String attributeID)
          Constructs an instance initialized with the specified ID.
IdAttribute(java.lang.String attributeID, java.lang.String attributeIDType)
          Constructs an instance initialized with the specified ID and ID type.
 
Method Summary
 java.util.Map getFieldNameToValueMap()
          Gets a map of this attribute's fields and their values.
 
Methods inherited from class com.sas.services.AbstractServiceAttribute
equals, hashCode, toString
 

Field Detail

id

public java.lang.String id
An ID associated with a service.


idType

public java.lang.String idType
An additional attribute that may be used in the event that multiple IdAttribute objects are being used to represent different ids.

Constructor Detail

IdAttribute

public IdAttribute()
Constructs a default instance with a null ID and null ID type.


IdAttribute

public IdAttribute(java.lang.String attributeID)
Constructs an instance initialized with the specified ID.

Parameters:
attributeID - An ID associated with a service.

IdAttribute

public IdAttribute(java.lang.String attributeID,
                   java.lang.String attributeIDType)
Constructs an instance initialized with the specified ID and ID type. The ID type may be used in the event that multiple IDs are associated with an object. For example, if we had a metadata ServiceComponent we could use "ServiceComponent" as the type.

Parameters:
attributeID - An ID associated with a service.
attributeIDType - An additional type qualifier to help to distinguish what this ID represents.
Method Detail

getFieldNameToValueMap

public java.util.Map getFieldNameToValueMap()
Gets a map of this attribute's fields and their values.


***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.