org.jvnet.ws.wadl.ast
Class FaultNode

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

public class FaultNode
extends AbstractNode

Represents a WADL fault.

Author:
mh124079

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.ws.wadl.ast.AbstractNode
AbstractNode.NodeVisitor
 
Constructor Summary
FaultNode(Representation f)
          Creates a new instance of FaultNode.
 
Method Summary
 String getClassName()
          Convenience function for generating a suitable Java class name for this WADL fault.
 List<Doc> getDoc()
          List of child documentation elements.
 QName getElement()
          Get the XML root element of the fault representation.
 Locator getLocation()
           
 String getMediaType()
          Get the media type of the fault.
 String getMediaTypeAsClassName()
          Convenience function for generating a suitable Java class name for this WADL fault based on the media type.
 List<Param> getParam()
          Get the child parameters.
 
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

FaultNode

public FaultNode(Representation f)
Creates a new instance of FaultNode.

Parameters:
f - the unmarshalled JAXB-generated fault object.
Method Detail

getClassName

public String getClassName()
Convenience function for generating a suitable Java class name for this WADL fault.

Returns:
a suitable class name.

getMediaTypeAsClassName

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

Returns:
a suitable class name.

getMediaType

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

Returns:
the media type

getElement

public QName getElement()
Get the XML root element of the fault representation.

Returns:
the XML qualified name of the root element.

getParam

public List<Param> getParam()
Get the child parameters.

Returns:
a list of child parameters.

getDoc

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

Returns:
documentation list, one item per language.

getLocation

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


Copyright © 2012. All Rights Reserved.