*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment
Class Consumer
java.lang.Object
com.sas.services.deployment.Consumer
- All Implemented Interfaces:
Cloneable
@SASScope("ALL")
@BinaryCompatibilityOnly
public final class Consumer
extends Object
implements Cloneable
A Consumer is an application which may consume resources within a foundation service's
configuration.
- Since:
- 9.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObjectclone()Clones this object.ElementcreateElement(Document document) Creates an XML Element representing this Consumer.booleanequals(Object other) Determines if the other object is equal to his object.StringgetID()Gets the consumer's ID.StringgetName()Gets the consumer's name.inthashCode()Gets this object's hash code.voidsetName(String name) Sets the consumer's name.StringtoString()Gets a string representation of this consumer.Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Consumer
public Consumer(String name) Constructs a consumer using the specified name.- Parameters:
name- Consumer's name.
-
Consumer
public Consumer(Element element) Constructs a consumer from an XML "Consumer" Element.- Parameters:
element- "Consumer" XML Element.
-
-
Method Details
-
getName
public String getName()Gets the consumer's name.- Returns:
- Consumer's name.
-
setName
public void setName(String name) Sets the consumer's name.- Parameters:
name- Consumer's name.
-
getID
public String getID()Gets the consumer's ID.- Returns:
- Consumer's ID.
-
createElement
public Element createElement(Document document) Creates an XML Element representing this Consumer.- Parameters:
document- XML document which will be used to create this Element.- Returns:
- XML Element representing this Consumer.
-
clone
public Object clone() throws CloneNotSupportedExceptionClones this object.- Overrides:
clonein classObject- Returns:
- Clone of this Consumer.
- Throws:
CloneNotSupportedException- if unable to clone.
-
equals
public boolean equals(Object other) Determines if the other object is equal to his object.- Overrides:
equalsin classObject- Returns:
trueif the other object is aConsumerand its ID and name match this object.
-
hashCode
public int hashCode()Gets this object's hash code.- Overrides:
hashCodein classObject- Returns:
- Hash code.
-
toString
public String toString()Gets a string representation of this consumer.- Overrides:
toStringin classObject- Returns:
- Non-localized string that presents "Consumer[name=xx][id=xx]".
-