public abstract class AbstractBaseDescription extends Object implements BaseDescription
| Constructor and Description |
|---|
AbstractBaseDescription()
Default constructor
|
AbstractBaseDescription(String id,
String shortName,
String description)
Constructor with id, shortName and description
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareField(String text1,
String text2)
Utility function for comparing two strings
|
String |
getDescription()
Gets the description of this base description
|
String |
getId()
Gets the id of this base description
|
String |
getShortName()
Gets the short name of this base description
|
void |
parse(org.dom4j.Element rootElement)
Populates fields from given XML element without validation
|
void |
setDescription(String description)
Sets the service description
|
void |
setId(String id)
Sets the service id
|
void |
setShortName(String shortName)
Sets the service short name
|
boolean |
validateRootElement(org.dom4j.Element rootElement,
String name)
Validate XML root element which will be used for parsing
|
public AbstractBaseDescription(String id, String shortName, String description)
id - StringshortName - Stringdescription - Stringpublic AbstractBaseDescription()
public void setId(String id)
id - Stringpublic String getId()
BaseDescriptiongetId in interface BaseDescriptionpublic void setShortName(String shortName)
shortName - Stringpublic void setDescription(String description)
description - Stringpublic String getDescription()
BaseDescriptiongetDescription in interface BaseDescriptionpublic String getShortName()
BaseDescriptiongetShortName in interface BaseDescriptionpublic boolean validateRootElement(org.dom4j.Element rootElement,
String name)
rootElement - root elementname - required root element namepublic void parse(org.dom4j.Element rootElement)
rootElement - root element for parsingCopyright © 2005–2017 Alfresco Software. All rights reserved.