public class TypeDescription extends AbstractBaseDescription
| Modifier and Type | Field and Description |
|---|---|
String |
definition |
static String |
DEFINITION_ELEMENT_NAME |
static String |
DEFINITION_ELEMENT_URL |
String |
format |
static String |
FORMAT_ELEMENT_NAME |
static String |
ROOT_ELEMENT_NAME |
String |
url |
| Constructor and Description |
|---|
TypeDescription()
Default constructor
|
TypeDescription(String id,
String shortName,
String description,
String format,
String definition)
Constructor with id, shortName, description, format and definition
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(TypeDescription newTypeDescription)
Utility function for comparing this instance to another instance of TypeDescription
|
String |
getDefinition() |
String |
getFormat() |
String |
getUrl() |
static TypeDescription |
newInstance()
Return a new instance of TypeDescription
|
void |
parse(org.dom4j.Element elem)
Populates fields from given XML element without validation
|
void |
setDefinition(String definition) |
void |
setFormat(String format) |
void |
setUrl(String url) |
String |
toString() |
compareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElementpublic static final String ROOT_ELEMENT_NAME
public static final String FORMAT_ELEMENT_NAME
public static final String DEFINITION_ELEMENT_NAME
public static final String DEFINITION_ELEMENT_URL
public String format
public String definition
public String url
public TypeDescription(String id, String shortName, String description, String format, String definition)
id - StringshortName - Stringdescription - Stringformat - Stringdefinition - Stringpublic TypeDescription()
public String getFormat()
public void setFormat(String format)
format - the format to setpublic String getDefinition()
public void setDefinition(String definition)
definition - the definition to setpublic String getUrl()
public void setUrl(String url)
url - the url to setpublic void parse(org.dom4j.Element elem)
AbstractBaseDescriptionparse in class AbstractBaseDescriptionelem - root element for parsingpublic static TypeDescription newInstance()
public boolean compare(TypeDescription newTypeDescription)
newTypeDescription - instance to be compared toCopyright © 2005–2017 Alfresco Software. All rights reserved.