org.jvnet.ws.wadl.ast
Class RepresentationNode

java.lang.Object
  extended by org.jvnet.ws.wadl.ast.AbstractNode
      extended by org.jvnet.ws.wadl.ast.RepresentationNode

public class RepresentationNode
extends AbstractNode

Represents a WADL representation.

Author:
mh124079

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.ws.wadl.ast.AbstractNode
AbstractNode.NodeVisitor
 
Constructor Summary
RepresentationNode(Representation r)
          Creates a new instance of RepresentationNode.
 
Method Summary
 List<Doc> getDoc()
          List of child documentation elements.
 QName getElement()
          Get the XML root element name for the representation.
 String getId()
          Get the representation id (if any).
 Locator getLocation()
           
 String getMediaType()
          Get the media type of the representation.
 String getMediaTypeAsClassName()
          Convenience function for generating a suitable Java class name for this WADL representation based on the media type.
 List<Param> getParam()
          Get a list of child parameters.
 List<String> getProfiles()
          Get the list of link profiles used to described the relationships of embedded links.
 
Methods inherited from class org.jvnet.ws.wadl.ast.AbstractNode
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepresentationNode

public RepresentationNode(Representation r)
Creates a new instance of RepresentationNode.

Parameters:
r - the unmarshalled JAXB-generated representation object.
Method Detail

getMediaTypeAsClassName

public String getMediaTypeAsClassName()
Convenience function for generating a suitable Java class name for this WADL representation based on the media type.

Returns:
a suitable name.

getMediaType

public String getMediaType()
Get the media type of the representation.

Returns:
the media type.

getProfiles

public List<String> getProfiles()
Get the list of link profiles used to described the relationships of embedded links.

Returns:
list of profiles.

getElement

public QName getElement()
Get the XML root element name for the representation.

Returns:
the qualified name of the root XML element.

getParam

public List<Param> getParam()
Get a list of child parameters.

Returns:
child parameters

getDoc

public List<Doc> getDoc()
List of child documentation elements.

Returns:
documentation list, one item per language.

getId

public String getId()
Get the representation id (if any).

Returns:
the id or null if no id.

getLocation

public Locator getLocation()
Specified by:
getLocation in class AbstractNode
Returns:
The location of the node


Copyright © 2012. All Rights Reserved.