Class SchemaDescriptionDocument
java.lang.Object
org.springframework.extensions.webscripts.AbstractBaseDescription
org.springframework.extensions.webscripts.AbstractBaseDescriptionDocument
org.springframework.extensions.webscripts.SchemaDescriptionDocument
- All Implemented Interfaces:
BaseDescription,BaseDescriptionDocument
Schema description document
- Author:
- drq
-
Field Summary
FieldsFields inherited from class org.springframework.extensions.webscripts.AbstractBaseDescriptionDocument
COMMON_XML_HEADER, COMMON_XML_NS, NEW_LINE, TAB -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorSchemaDescriptionDocument(String id, String shortName, String description) Constructor with id, shortName and desription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTypeDescription(TypeDescription typeDescription) static SchemaDescriptionDocumentReturn a new instance of SchemaDescriptDocumentvoidparse(org.dom4j.Element elem) Populates fields from given XML element without validationvoidsetTypeDescriptionList(ArrayList<TypeDescription> typeDescriptionList) voidsetTypeDescriptions(TypeDescription[] typeDescriptions) toString()Methods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescriptionDocument
getDescDocument, getDescPath, getStore, getStorePath, parseDocument, setDescPath, setStoreMethods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescription
compareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.extensions.webscripts.BaseDescription
getDescription, getId, getShortName
-
Field Details
-
ROOT_ELEMENT_NAME
- See Also:
-
DESC_NAME_POSTFIX
- See Also:
-
DESC_NAME_PATTERN
- See Also:
-
typeDescriptionList
-
-
Constructor Details
-
SchemaDescriptionDocument
Constructor with id, shortName and desription- Parameters:
id- StringshortName- Stringdescription- String
-
SchemaDescriptionDocument
public SchemaDescriptionDocument()Default constructor
-
-
Method Details
-
getTypeDescriptionList
- Returns:
- the typeDescriptionList
-
setTypeDescriptionList
- Parameters:
typeDescriptionList- the typeDescriptionList to set
-
getTypeDescriptions
- Returns:
- the schemaDescriptions
-
setTypeDescriptions
- Parameters:
typeDescriptions- TypeDescription[]
-
addTypeDescription
- Parameters:
typeDescription- TypeDescription
-
parse
public void parse(org.dom4j.Element elem) Description copied from class:AbstractBaseDescriptionPopulates fields from given XML element without validation- Overrides:
parsein classAbstractBaseDescription- Parameters:
elem- root element for parsing
-
toString
-
newInstance
Return a new instance of SchemaDescriptDocument- Returns:
- SchemaDescriptionDocument
-