Represents attributes used as arguments to relational constraints.
Instances of this class are usually obtained using Query.
.
An AttributeValueExp
may be used anywhere a
ValueExp
is required.
Modifier and Type | Field and Description |
---|---|
private String | |
private static final long |
Access | Constructor and Description |
---|---|
public | AttributeValueExp()
Deprecated
An instance created with this constructor cannot be
used in a query.
An |
public | AttributeValueExp(String
the name of the attribute whose value is the value
of this attr)ValueExp .Creates a new |
Modifier and Type | Method and Description |
---|---|
public ValueExp | Returns: TheValueExp .The name of the MBean on which the name)AttributeValueExp will be applied.Implements javax. Applies the |
protected Object | Returns: the value of the attribute, or null if it could not be obtained.the name of the MBean whose attribute is to be returned. name)Return the value of the given attribute in the named MBean. |
public String | Returns: the attribute name.Returns a string representation of the name of the attribute. |
public void | setMBeanServer(MBeanServer
The MBean server on which the query is to be performed. s)Implements javax.
Deprecated
This method has no effect. The MBean Server used to
obtain an attribute value is
QueryEval#getMBeanServer() .
Sets the MBean server on which the query is to be performed. |
public String |
attr | back to summary |
---|---|
private String attr |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
AttributeValueExp | back to summary |
---|---|
public AttributeValueExp()
Deprecated An instance created with this constructor cannot be used in a query. An
|
AttributeValueExp | back to summary |
---|---|
public AttributeValueExp(String attr) Creates a new |
apply | back to summary |
---|---|
public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException Implements javax. Applies the
|
getAttribute | back to summary |
---|---|
protected Object getAttribute(ObjectName name) Return the value of the given attribute in the named MBean. If the attempt to access the attribute generates an exception, return null. The MBean Server used is the one returned by
|
getAttributeName | back to summary |
---|---|
public String getAttributeName() Returns a string representation of the name of the attribute.
|
setMBeanServer | back to summary |
---|---|
public void setMBeanServer(MBeanServer s) Implements javax. Deprecated This method has no effect. The MBean Server used to
obtain an attribute value is Sets the MBean server on which the query is to be performed.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Returns the string representing its value.
|