org.restlet.ext.wadl
Class DocumentationInfo

java.lang.Object
  extended by org.restlet.ext.wadl.DocumentationInfo

public class DocumentationInfo
extends java.lang.Object

Document WADL description elements.

Author:
Jerome Louvel

Constructor Summary
DocumentationInfo()
          Constructor.
DocumentationInfo(org.w3c.dom.Node mixedContent)
          Constructor with mixed content.
DocumentationInfo(java.lang.String textContent)
          Constructor with text content.
 
Method Summary
 Language getLanguage()
          Returns the language of that documentation element.
 org.w3c.dom.Node getMixedContent()
          Returns the mixed content of that element.
 java.lang.String getTextContent()
          Returns the language of that documentation element.
 java.lang.String getTitle()
          Returns the title of that documentation element.
 void setLanguage(Language language)
          The language of that documentation element.
 void setMixedContent(org.w3c.dom.Node mixedContent)
          Sets the mixed content of that element.
 void setTextContent(java.lang.String textContent)
          Sets the content of that element as text.
 void setTitle(java.lang.String title)
          Sets the title of that documentation element.
 void writeElement(XmlWriter writer)
          Writes the current object as an XML element using the given SAX writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentationInfo

public DocumentationInfo()
Constructor.


DocumentationInfo

public DocumentationInfo(java.lang.String textContent)
Constructor with text content.

Parameters:
textContent - The text content.

DocumentationInfo

public DocumentationInfo(org.w3c.dom.Node mixedContent)
Constructor with mixed content.

Parameters:
mixedContent - The mixed content.
Method Detail

getLanguage

public Language getLanguage()
Returns the language of that documentation element.

Returns:
The language of this documentation element.

getMixedContent

public org.w3c.dom.Node getMixedContent()
Returns the mixed content of that element.

Returns:
The mixed content of that element.

getTextContent

public java.lang.String getTextContent()
Returns the language of that documentation element.

Returns:
The content of that element as text.

getTitle

public java.lang.String getTitle()
Returns the title of that documentation element.

Returns:
The title of that documentation element.

setLanguage

public void setLanguage(Language language)
The language of that documentation element.

Parameters:
language - The language of that documentation element.

setMixedContent

public void setMixedContent(org.w3c.dom.Node mixedContent)
Sets the mixed content of that element.

Parameters:
mixedContent - The mixed content of that element.

setTextContent

public void setTextContent(java.lang.String textContent)
Sets the content of that element as text.

Parameters:
textContent - The content of that element as text.

setTitle

public void setTitle(java.lang.String title)
Sets the title of that documentation element.

Parameters:
title - The title of that documentation element.

writeElement

public void writeElement(XmlWriter writer)
                  throws org.xml.sax.SAXException
Writes the current object as an XML element using the given SAX writer.

Parameters:
writer - The SAX writer.
Throws:
org.xml.sax.SAXException


Copyright © 2005-2008 Noelios Technologies.