|
||||||||||
| 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.ResourceTypeNode
public class ResourceTypeNode
Represents a WADL resource_type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jvnet.ws.wadl.ast.AbstractNode |
|---|
AbstractNode.NodeVisitor |
| Constructor Summary | |
|---|---|
ResourceTypeNode(ResourceType resourceType,
URI file,
ElementResolver idMap)
Create a new instance of ResourceTypeNode. |
|
| Method Summary | |
|---|---|
ResourceNode |
addChild(Resource r,
URI file,
ElementResolver idMap)
Create a new resource and add it as a child. |
String |
getClassName()
Convenience function for generating a suitable Java class name for this WADL resource. |
List<Doc> |
getDoc()
List of child documentation elements |
com.sun.codemodel.JDefinedClass |
getGeneratedInterface()
|
List<Param> |
getHeaderParams()
Get the header parameters. |
Locator |
getLocation()
|
List<Param> |
getMatrixParams()
Get the matrix parameters. |
List<MethodNode> |
getMethods()
Get the methods for this resource type. |
List<Param> |
getQueryParams()
Get the query parameters. |
List<ResourceNode> |
getResources()
Get the resources for this resource type. |
void |
setGeneratedInterface(com.sun.codemodel.JDefinedClass iface)
|
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 ResourceTypeNode(ResourceType resourceType,
URI file,
ElementResolver idMap)
throws InvalidWADLException
resourceType - the unmarshalled JAXB-generated object.file - the URI of the WADL file that contains the resource type element.idMap - a map of URI reference to WADL definition element.
InvalidWADLException - when WADL is invalid and cannot be processed.| Method Detail |
|---|
public ResourceNode addChild(Resource r,
URI file,
ElementResolver idMap)
throws InvalidWADLException
r - the unmarshalled JAXB resource element.file - the URI of the WADL file that contains the resource type element.idMap - a map of URI reference to WADL definition element.
InvalidWADLException - when WADL is invalid and cannot be processed.public String getClassName()
public List<MethodNode> getMethods()
public List<ResourceNode> getResources()
public List<Param> getQueryParams()
public List<Param> getHeaderParams()
public List<Param> getMatrixParams()
public List<Doc> getDoc()
public void setGeneratedInterface(com.sun.codemodel.JDefinedClass iface)
public com.sun.codemodel.JDefinedClass getGeneratedInterface()
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 | |||||||||