|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.flex.runtime.util.common.PortableExpression
public class PortableExpression
A portable expression where one token can be subtituted in the expression. The token can appear in the expression more than once but a portable expression can only perform subtitution for one token.
Constructor Summary | |
---|---|
protected |
PortableExpression(java.lang.String expr)
Constructs a portable expression that does not require token subtitution. |
protected |
PortableExpression(java.lang.String token,
java.lang.String encodedExpr)
Constructs a portable expression that requires token subtitution. |
Method Summary | |
---|---|
static java.lang.String |
getClassName(java.lang.String s)
Gets the class name in a String returned by toString() . |
java.lang.String |
getExpression()
Gets the decoded expression. |
java.lang.String |
getExpression(java.lang.String tokenReplacement)
Gets the expression where the original token is replaced by a replacement. |
java.lang.String |
getToken()
Gets the raw token. |
java.lang.String |
toString()
Returns a String representation of this object. |
static PortableExpression |
valueOf(java.lang.String s)
Constructs a PortableExpression from a String returned by
the toString() method of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected PortableExpression(java.lang.String token, java.lang.String encodedExpr)
token
- the raw token used in the expressionencodedExpr
- the expression that contains the encoded token
java.lang.IllegalArgumentException
- if the given token or expression is
nullencodeToken(java.lang.String)
protected PortableExpression(java.lang.String expr)
expr
- the expression
java.lang.IllegalArgumentException
- if the given expression is nullMethod Detail |
---|
public final java.lang.String getToken()
public java.lang.String getExpression()
getExpression(String)
public java.lang.String getExpression(java.lang.String tokenReplacement)
tokenReplacement
- the replacement
java.lang.IllegalArgumentException
- if the given token replacement is nullpublic java.lang.String toString()
this.getClass().getName()
followed
by "#" while the rest of the String may be subclass-specific.
Subclasses that override this method must always start the String with the full class name followed by "#".
toString
in class java.lang.Object
valueOf(String)
public static java.lang.String getClassName(java.lang.String s)
toString()
.
To check if a String is created by a certain subclass, calling
java.lang.String#startsWith
is sufficient, because a String
representation of a PortableExpression
object, if valid, must start with the full class name followed by "#".
s
- a String representation of a PortableExpression
object
public static PortableExpression valueOf(java.lang.String s)
PortableExpression
from a String returned by
the toString()
method of this class. A subclass must define
its own valueOf(String)
if it overrides
toString()
.
s
- the string representation of a PortableExpression
object
PortableExpression
object; null if the string
is null or not valid
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |