|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Environment.Lookup<PK,C,O,P>
Optional adapter interface for look-up methods that throw
LookupException
s on abnormal failures (usually ambiguous names).
Method Summary | |
---|---|
C |
tryLookupAssociationClassReference(C owner,
String name)
Finds a reference in the specified class to the named association class. |
C |
tryLookupClassifier(List<String> names)
Finds the classifier identified by the specified sequence of names (a qualified name). |
O |
tryLookupOperation(C owner,
String name,
List<? extends TypedElement<C>> args)
Find an operation in the specified class. |
PK |
tryLookupPackage(List<String> names)
Finds the package identified by the specified sequence of names (a qualified name). |
P |
tryLookupProperty(C owner,
String name)
Finds a property defined or inherited by the specified classifier. |
C |
tryLookupSignal(C owner,
String name,
List<? extends TypedElement<C>> args)
Finds a received signal in the specified classifier. |
Method Detail |
---|
PK tryLookupPackage(List<String> names) throws LookupException
names
- the qualified name
null
if not found
LookupException
- if lookup fails due to an error such as an ambiguityC tryLookupClassifier(List<String> names) throws LookupException
names
- the qualified name
null
if not found
LookupException
- if lookup fails due to an error such as an ambiguityO tryLookupOperation(C owner, String name, List<? extends TypedElement<C>> args) throws LookupException
owner
- the owner type of the called operation, or null
to find an implicit owner type (in iteration expressions)name
- the name of the called operationargs
- the arguments (expressions or variables) to be matched against
the parameter signature of the operation
null
if not found
LookupException
- if lookup fails due to an error such as an ambiguityP tryLookupProperty(C owner, String name) throws LookupException
owner
- the owner of the property that we are looking for, or
null
to find an implicit owner type (in iteration
expressions)name
- the property name
null
if it could not be found
LookupException
- if lookup fails due to an error such as an ambiguityC tryLookupAssociationClassReference(C owner, String name) throws LookupException
owner
- the referencing class to search, or
null
to find an implicit owner type (in iteration
expressions)name
- the association class name (with an initial lower case as
per the OCL convention)
null
if the specified owner
is not at the
end of an association with this particular name
LookupException
- if lookup fails due to an error such as an ambiguityC tryLookupSignal(C owner, String name, List<? extends TypedElement<C>> args) throws LookupException
owner
- the owner type of the signal receptionname
- the name of the signalargs
- the arguments (expressions or variables) matching the
properties of the signal (parameters of the reception feature)
null
if not found
LookupException
- if lookup fails due to an error such as an ambiguity
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |