|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.wadl.DocumentedInfo
org.restlet.ext.wadl.ApplicationInfo
public class ApplicationInfo
Root of a WADL description document.
Constructor Summary | |
---|---|
ApplicationInfo()
Constructor. |
|
ApplicationInfo(DocumentationInfo documentation)
Constructor with a single documentation element. |
|
ApplicationInfo(java.util.List<DocumentationInfo> documentations)
Constructor with a list of documentation elements. |
|
ApplicationInfo(java.lang.String documentation)
Constructor with a single documentation element. |
Method Summary | |
---|---|
java.util.List<FaultInfo> |
getFaults()
Returns the list of fault elements. |
GrammarsInfo |
getGrammars()
Returns the grammar elements. |
java.util.List<MethodInfo> |
getMethods()
Returns the list of method elements. |
java.util.Map<java.lang.String,java.lang.String> |
getNamespaces()
Returns the map of namespaces used in the WADL document. |
java.util.List<RepresentationInfo> |
getRepresentations()
Returns the list of representation elements. |
ResourcesInfo |
getResources()
Returns the resources root element. |
java.util.List<ResourceTypeInfo> |
getResourceTypes()
Returns the list of resource type elements. |
void |
setFaults(java.util.List<FaultInfo> faults)
Sets the list of fault elements. |
void |
setGrammars(GrammarsInfo grammars)
Sets the grammars element. |
void |
setMethods(java.util.List<MethodInfo> methods)
Sets the list of documentation elements. |
void |
setNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Sets the map of namespaces used in the WADL document. |
void |
setRepresentations(java.util.List<RepresentationInfo> representations)
Sets the list of representation elements. |
void |
setResources(ResourcesInfo resources)
Sets the list of resource elements. |
void |
setResourceTypes(java.util.List<ResourceTypeInfo> resourceTypes)
Sets the list of resource type elements. |
void |
updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Completes the given map of namespaces with the namespaces used in the documentation elements. |
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer. |
Methods inherited from class org.restlet.ext.wadl.DocumentedInfo |
---|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationInfo()
public ApplicationInfo(DocumentationInfo documentation)
documentation
- A single documentation element.public ApplicationInfo(java.util.List<DocumentationInfo> documentations)
documentations
- The list of documentation elements.public ApplicationInfo(java.lang.String documentation)
documentation
- A single documentation element.Method Detail |
---|
public java.util.List<FaultInfo> getFaults()
public GrammarsInfo getGrammars()
public java.util.List<MethodInfo> getMethods()
public java.util.Map<java.lang.String,java.lang.String> getNamespaces()
public java.util.List<RepresentationInfo> getRepresentations()
public ResourcesInfo getResources()
public java.util.List<ResourceTypeInfo> getResourceTypes()
public void setFaults(java.util.List<FaultInfo> faults)
faults
- The list of documentation elements.public void setGrammars(GrammarsInfo grammars)
grammars
- The grammars element.public void setMethods(java.util.List<MethodInfo> methods)
methods
- The list of method elements.public void setNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
namespaces
- The map of namespaces used in the WADL document.public void setRepresentations(java.util.List<RepresentationInfo> representations)
representations
- The list of representation elements.public void setResources(ResourcesInfo resources)
resources
- The list of resource elements.public void setResourceTypes(java.util.List<ResourceTypeInfo> resourceTypes)
resourceTypes
- The list of resource type elements.public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |