Package org.restlet.ext.wadl
Class GrammarsInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.GrammarsInfo
-
@Deprecated public class GrammarsInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Describes the grammars used by representation descriptions. This is especially useful to formally describe XML representations using XML Schema or Relax NG standards.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IncludeInfo>includesDeprecated.Definitions of data format descriptions to be included by reference.
-
Constructor Summary
Constructors Constructor Description GrammarsInfo()Deprecated.Constructor.GrammarsInfo(java.lang.String documentation)Deprecated.Constructor with a single documentation element.GrammarsInfo(java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.GrammarsInfo(DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<IncludeInfo>getIncludes()Deprecated.Returns the list of include elements.voidsetIncludes(java.util.List<IncludeInfo> includes)Deprecated.Sets the list of include elements.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
-
includes
private java.util.List<IncludeInfo> includes
Deprecated.Definitions of data format descriptions to be included by reference.
-
-
Constructor Detail
-
GrammarsInfo
public GrammarsInfo()
Deprecated.Constructor.
-
GrammarsInfo
public GrammarsInfo(DocumentationInfo documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
GrammarsInfo
public GrammarsInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.Constructor with a list of documentation elements.- Parameters:
documentations- The list of documentation elements.
-
GrammarsInfo
public GrammarsInfo(java.lang.String documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
-
Method Detail
-
getIncludes
public java.util.List<IncludeInfo> getIncludes()
Deprecated.Returns the list of include elements.- Returns:
- The list of include elements.
-
setIncludes
public void setIncludes(java.util.List<IncludeInfo> includes)
Deprecated.Sets the list of include elements.- Parameters:
includes- The list of include elements.
-
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
-
-