Class TypeDescription
java.lang.Object
org.springframework.extensions.webscripts.AbstractBaseDescription
org.springframework.extensions.webscripts.TypeDescription
- All Implemented Interfaces:
BaseDescription
type description
- Author:
- drq
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConstructor with id, shortName, description, format and definition -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(TypeDescription newTypeDescription) Utility function for comparing this instance to another instance of TypeDescriptiongetUrl()static TypeDescriptionReturn a new instance of TypeDescriptionvoidparse(org.dom4j.Element elem) Populates fields from given XML element without validationvoidsetDefinition(String definition) voidvoidtoString()Methods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescription
compareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElement
-
Field Details
-
ROOT_ELEMENT_NAME
- See Also:
-
FORMAT_ELEMENT_NAME
- See Also:
-
DEFINITION_ELEMENT_NAME
- See Also:
-
DEFINITION_ELEMENT_URL
- See Also:
-
format
-
definition
-
url
-
-
Constructor Details
-
TypeDescription
public TypeDescription(String id, String shortName, String description, String format, String definition) Constructor with id, shortName, description, format and definition- Parameters:
id- StringshortName- Stringdescription- Stringformat- Stringdefinition- String
-
TypeDescription
public TypeDescription()Default constructor
-
-
Method Details
-
getFormat
- Returns:
- the format
-
setFormat
- Parameters:
format- the format to set
-
getDefinition
- Returns:
- the definition
-
setDefinition
- Parameters:
definition- the definition to set
-
getUrl
- Returns:
- the url
-
setUrl
- Parameters:
url- the url to set
-
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 TypeDescription- Returns:
- TypeDescription
-
compare
Utility function for comparing this instance to another instance of TypeDescription- Parameters:
newTypeDescription- instance to be compared to- Returns:
- true if they are different
-