public class ApplicationInfo extends DocumentedInfo
| Constructor and Description |
|---|
ApplicationInfo()
Constructor.
|
ApplicationInfo(DocumentationInfo documentation)
Constructor with a single documentation element.
|
ApplicationInfo(List<DocumentationInfo> documentations)
Constructor with a list of documentation elements.
|
ApplicationInfo(String documentation)
Constructor with a single documentation element.
|
| Modifier and Type | Method and Description |
|---|---|
GrammarsInfo |
getGrammars()
Returns the grammar elements.
|
List<MethodInfo> |
getMethods()
Returns the list of method elements.
|
Map<String,String> |
getNamespaces()
Returns the map of namespaces used in the WADL document.
|
List<RepresentationInfo> |
getRepresentations()
Returns the list of representation elements.
|
ResourcesInfo |
getResources()
Returns the resources root element.
|
List<ResourceTypeInfo> |
getResourceTypes()
Returns the list of resource type elements.
|
void |
setGrammars(GrammarsInfo grammars)
Sets the grammars element.
|
void |
setMethods(List<MethodInfo> methods)
Sets the list of documentation elements.
|
void |
setNamespaces(Map<String,String> namespaces)
Sets the map of namespaces used in the WADL document.
|
void |
setRepresentations(List<RepresentationInfo> representations)
Sets the list of representation elements.
|
void |
setResources(ResourcesInfo resources)
Sets the list of resource elements.
|
void |
setResourceTypes(List<ResourceTypeInfo> resourceTypes)
Sets the list of resource type elements.
|
void |
updateNamespaces(Map<String,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.
|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentationspublic ApplicationInfo()
public ApplicationInfo(DocumentationInfo documentation)
documentation - A single documentation element.public ApplicationInfo(List<DocumentationInfo> documentations)
documentations - The list of documentation elements.public ApplicationInfo(String documentation)
documentation - A single documentation element.public GrammarsInfo getGrammars()
public List<MethodInfo> getMethods()
public Map<String,String> getNamespaces()
public List<RepresentationInfo> getRepresentations()
public ResourcesInfo getResources()
public List<ResourceTypeInfo> getResourceTypes()
public void setGrammars(GrammarsInfo grammars)
grammars - The grammars element.public void setMethods(List<MethodInfo> methods)
methods - The list of method elements.public void setNamespaces(Map<String,String> namespaces)
namespaces - The map of namespaces used in the WADL document.public void setRepresentations(List<RepresentationInfo> representations)
representations - The list of representation elements.public void setResources(ResourcesInfo resources)
resources - The list of resource elements.public void setResourceTypes(List<ResourceTypeInfo> resourceTypes)
resourceTypes - The list of resource type elements.public void updateNamespaces(Map<String,String> namespaces)
DocumentedInfoupdateNamespaces in class DocumentedInfonamespaces - The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws SAXException
writer - The SAX writer.SAXExceptionCopyright © 2005–2015. All rights reserved.