|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.ws.wadl.ast.ElementResolver
public class ElementResolver
Maintains a map of file+ref to element.
| Constructor Summary | |
|---|---|
ElementResolver(MessageListener messageListener)
|
|
| Method Summary | ||
|---|---|---|
String |
addReference(URI file,
String id,
Object o)
Add a reference to an element if it has an identifier. |
|
Object |
get(String ref)
Get the element for a ref. |
|
|
resolve(URI file,
String href,
T object)
Resolve a href and return the element if it is of the expected type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementResolver(MessageListener messageListener)
| Method Detail |
|---|
public Object get(String ref)
ref - the element reference as returned by addReference(java.net.URI, java.lang.String, java.lang.Object).
public <T> T resolve(URI file,
String href,
T object)
throws InvalidWADLException
file - the URI of the file in which the referenced element is located, used
to absolutize references.href - the reference to resolve.object - the original referring object.
InvalidWADLException - when WADL is invalid and cannot be processed.
public String addReference(URI file,
String id,
Object o)
file - the URI of the file that contains the element.id - the id of the element, may be null.o - the element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||