*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment
Class ConsumedResourceAdapter
java.lang.Object
com.sas.services.deployment.ConsumedResourceAdapter
- All Implemented Interfaces:
ConsumedResourceInterface,Cloneable
@SASScope("ALL")
@BinaryCompatibilityOnly
public class ConsumedResourceAdapter
extends Object
implements Cloneable, ConsumedResourceInterface
Adapter for a resource defined within a service configuration
which may be consumed by an application.
- Since:
- 9.2
-
Constructor Summary
ConstructorsConstructorDescriptionConsumedResourceAdapter(String id, String value, String type, int typeCode, String localizedType, boolean isRequired) Constructs an adapter for a consumed resource. -
Method Summary
Modifier and TypeMethodDescriptionObjectclone()Clones the resource.StringGets a localized value describing the resource's type.StringGets a localized value describing the resource's type and value.StringGets the id that uniquely identifies the resource within a service's configuration.StringGets a value describing the resource's type.intGets the code describing the resource's type.StringGets the value used to identify the service configuration resource.booleanDetermines if this resource is required by the service's configuration.voidsetResourceValue(String value) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ConsumedResourceAdapter
public ConsumedResourceAdapter(String id, String value, String type, int typeCode, String localizedType, boolean isRequired) Constructs an adapter for a consumed resource.- Parameters:
id- Unique identifier for a service configuration's resource.value- Service configuration resource's name.type- Service configuration resource's type.typeCode- Enumeration code for a service configuration resource's type.localizedType- Localized string representing the service configuration resource's type.isRequired-trueif this resource is always required by the service's configuration.
-
-
Method Details
-
getResourceID
public String getResourceID()Description copied from interface:ConsumedResourceInterfaceGets the id that uniquely identifies the resource within a service's configuration.- Specified by:
getResourceIDin interfaceConsumedResourceInterface- Returns:
- Resource's ID.
-
getResourceValue
public String getResourceValue()Description copied from interface:ConsumedResourceInterfaceGets the value used to identify the service configuration resource.- Specified by:
getResourceValuein interfaceConsumedResourceInterface- Returns:
- Service configuration resource's value.
-
getResourceType
public String getResourceType()Description copied from interface:ConsumedResourceInterfaceGets a value describing the resource's type.- Specified by:
getResourceTypein interfaceConsumedResourceInterface- Returns:
- Resource's type. For example, a Logging Service configuration's resource types would be "Context", "Output", and "Renderer".
-
getResourceTypeCode
public int getResourceTypeCode()Description copied from interface:ConsumedResourceInterfaceGets the code describing the resource's type.- Specified by:
getResourceTypeCodein interfaceConsumedResourceInterface- Returns:
- Resource's type code.
-
getLocalizedResourceType
public String getLocalizedResourceType()Description copied from interface:ConsumedResourceInterfaceGets a localized value describing the resource's type.- Specified by:
getLocalizedResourceTypein interfaceConsumedResourceInterface- Returns:
- Resource's type. For example, a Logging Service configuration's resource types would be localized values for "Context", "Output", and "Renderer".
-
getLocalizedResourceTypeAndValue
public String getLocalizedResourceTypeAndValue()Description copied from interface:ConsumedResourceInterfaceGets a localized value describing the resource's type and value.- Specified by:
getLocalizedResourceTypeAndValuein interfaceConsumedResourceInterface- Returns:
- Resource's type. For example,
a Logging Service configuration's resource types would be
localized values for
- "Context : com.sas.services"
- "Output : A1"
- "Renderer: com.sas.MyRenderer"
-
setResourceValue
public void setResourceValue(String value) -
isRequired
public boolean isRequired()Description copied from interface:ConsumedResourceInterfaceDetermines if this resource is required by the service's configuration.- Specified by:
isRequiredin interfaceConsumedResourceInterface- Returns:
trueif this resource is required by the service's configuration.
-
clone
public Object clone() throws CloneNotSupportedExceptionDescription copied from interface:ConsumedResourceInterfaceClones the resource.- Specified by:
clonein interfaceConsumedResourceInterface- Overrides:
clonein classObject- Returns:
- Clone of this resource.
- Throws:
CloneNotSupportedException
-