Package org.restlet.ext.wadl
Class ResourcesInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.ResourcesInfo
-
@Deprecated public class ResourcesInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Describes the root resources of an application.
-
-
Field Summary
Fields Modifier and Type Field Description private ReferencebaseRefDeprecated.Base URI for each child resource identifier.private java.util.List<ResourceInfo>resourcesDeprecated.List of child resources.
-
Constructor Summary
Constructors Constructor Description ResourcesInfo()Deprecated.Constructor.ResourcesInfo(java.lang.String documentation)Deprecated.Constructor with a single documentation element.ResourcesInfo(java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.ResourcesInfo(DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ReferencegetBaseRef()Deprecated.Returns the base URI for each child resource identifier.java.util.List<ResourceInfo>getResources()Deprecated.Returns the list of child resources.voidsetBaseRef(Reference baseRef)Deprecated.Sets the base URI for each child resource identifier.voidsetResources(java.util.List<ResourceInfo> resources)Deprecated.Sets the list of child resources.voidupdateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)Deprecated.Completes the given map of namespaces with the namespaces used in the documentation elements.voidwriteElement(XmlWriter writer)Deprecated.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
-
-
-
-
Field Detail
-
baseRef
private Reference baseRef
Deprecated.Base URI for each child resource identifier.
-
resources
private java.util.List<ResourceInfo> resources
Deprecated.List of child resources.
-
-
Constructor Detail
-
ResourcesInfo
public ResourcesInfo()
Deprecated.Constructor.
-
ResourcesInfo
public ResourcesInfo(DocumentationInfo documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
ResourcesInfo
public ResourcesInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.Constructor with a list of documentation elements.- Parameters:
documentations- The list of documentation elements.
-
ResourcesInfo
public ResourcesInfo(java.lang.String documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
-
Method Detail
-
getBaseRef
public Reference getBaseRef()
Deprecated.Returns the base URI for each child resource identifier.- Returns:
- The base URI for each child resource identifier.
-
getResources
public java.util.List<ResourceInfo> getResources()
Deprecated.Returns the list of child resources.- Returns:
- The list of child resources.
-
setBaseRef
public void setBaseRef(Reference baseRef)
Deprecated.Sets the base URI for each child resource identifier.- Parameters:
baseRef- The base URI for each child resource identifier.
-
setResources
public void setResources(java.util.List<ResourceInfo> resources)
Deprecated.Sets the list of child resources.- Parameters:
resources- The list of child resources.
-
updateNamespaces
public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Deprecated.Description copied from class:DocumentedInfoCompletes the given map of namespaces with the namespaces used in the documentation elements. The key is the URI of the namespace and the value, the prefix.- Specified by:
updateNamespacesin classDocumentedInfo- Parameters:
namespaces- The given map of namespaces to complete.
-
writeElement
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
Deprecated.Writes the current object as an XML element using the given SAX writer.- Parameters:
writer- The SAX writer.- Throws:
org.xml.sax.SAXException
-
-