|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.MQe | +--com.ibm.mqe.MQeRule | +--com.ibm.mqe.MQeAttributeRule
This class contains methods that are invoked when the attribute performs certain operations. The rules can affect the outcome of these operations. This class contains the default attribute rules. Typically, these default rules would be overridden to provide appropriate behavior for a given WebSphere MQ Everyplace solution.
Field Summary |
Constructor Summary | |
MQeAttributeRule()
|
Method Summary | |
MQeAttribute |
getOwner()
This method returns the owner of this rule. |
boolean |
isAcceptable(MQeAttribute parameter)
This rule checks if the input attribute is acceptable as a replacement. |
MQeAttributeRule |
newRule(java.lang.Object owner,
MQeAttributeRule thisRule)
Authorise change of rule class. |
java.lang.Object |
permit(java.lang.Object owner,
java.lang.Object from,
java.lang.Object to)
process a Permit request. |
Methods inherited from class com.ibm.mqe.MQeRule |
activate, close, newRule |
Methods inherited from class com.ibm.mqe.MQe |
abbreviate, alias, asciiToByte, byteToAscii, byteToHex, byteToHex, byteToInt, byteToLong, byteToShort, byteToUnicode, fileSeparator, getEventLogHandler, hexToAscii, hexToByte, intToByte, isCLDC, loadClass, loadObject, log, setEventLogHandler, setLoader, sliceByteArray, type, unicodeToByte, uniqueValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MQeAttributeRule()
Method Detail |
public MQeAttributeRule newRule(java.lang.Object owner, MQeAttributeRule thisRule) throws java.lang.Exception
Authorise change of rule class.
The current rule is being used to dictate the behavior of the owning object. This method is called when the owning object wishes to change the current rule for a different rule, to see if the current rule allows another rule to replace it.
By default, this method calls its super class' method.
java.lang.Exception
public boolean isAcceptable(MQeAttribute parameter)
This rule checks if the input attribute is acceptable as a replacement.
This is a default implementation: When the owner of this rule is an MQeAttribute, it
checks if the input MQeAttribute is not weaker than this attribute. If so,
a true is returned. Otherwise, a false is returned.
parameter
- an attribute to be used as a replacement.
public java.lang.Object permit(java.lang.Object owner, java.lang.Object from, java.lang.Object to) throws java.lang.Exception
process a Permit request.
owner
- from
- to
-
java.lang.Exception
public MQeAttribute getOwner()
This method returns the owner of this rule.
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |