|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.ws.wadl.ast.AbstractNode
org.jvnet.ws.wadl.ast.MethodNode
public class MethodNode
Represents a WADL method
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jvnet.ws.wadl.ast.AbstractNode |
|---|
AbstractNode.NodeVisitor |
| Constructor Summary | |
|---|---|
MethodNode(Method m,
ResourceNode r)
Creates a new instance of MethodNode and attach it to a resource |
|
MethodNode(Method m,
ResourceTypeNode r)
Creates a new instance of MethodNode and attach it to a resource type |
|
| Method Summary | |
|---|---|
List<Doc> |
getDoc()
List of child documentation elements |
javax.ws.rs.core.MultivaluedMap<List<Long>,FaultNode> |
getFaults()
Get a list of the faults for this method |
List<Param> |
getHeaderParameters()
Get all the header parameters |
Locator |
getLocation()
|
List<Param> |
getMatrixParameters()
Get all the matrix parameters for this and enclosing resources |
String |
getName()
Get the method name |
List<Param> |
getOptionalParameters()
Get the parameters marked as optional |
ResourceNode |
getOwningResource()
|
List<Param> |
getQueryParameters()
Get all the query parameters |
List<Param> |
getRequiredParameters()
Get the parameters marked as required |
List<RepresentationNode> |
getSupportedInputs()
Get a list of the supported input types, these correspond to the body of a PUT, or POST request |
List<RepresentationNode> |
getSupportedOutputs()
Get a list of the output representations that the method supports, these correspond to the body of a GET, POST or PUT response. |
boolean |
hasOptionalParameters()
Checks if there are any optional parameters |
void |
visit(AbstractNode.NodeVisitor visitor)
Allow the provided parameter to visit the current node and any child nodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodNode(Method m,
ResourceNode r)
m - the unmarshalled JAXB-generated method objectr - the resource to attach the method to
public MethodNode(Method m,
ResourceTypeNode r)
m - the unmarshalled JAXB-generated method objectr - the resource to attach the method to| Method Detail |
|---|
public String getName()
public ResourceNode getOwningResource()
public List<Param> getQueryParameters()
public List<Param> getHeaderParameters()
public List<Param> getMatrixParameters()
public List<Param> getRequiredParameters()
public List<Param> getOptionalParameters()
public boolean hasOptionalParameters()
public List<RepresentationNode> getSupportedInputs()
public List<RepresentationNode> getSupportedOutputs()
public javax.ws.rs.core.MultivaluedMap<List<Long>,FaultNode> getFaults()
public List<Doc> getDoc()
public Locator getLocation()
getLocation in class AbstractNodepublic void visit(AbstractNode.NodeVisitor visitor)
visit in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||