public class SampleMetacardValidator extends Object implements MetacardValidator, Describable
Constructor and Description |
---|
SampleMetacardValidator() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of the describable item.
|
Set<String> |
getErrorWords() |
String |
getId()
Returns the name, aka ID, of the describable item.
|
String |
getOrganization()
Returns the organization associated with the describable item.
|
String |
getTitle()
Returns the title of the describable item.
|
Set<String> |
getValidWords() |
String |
getVersion()
Retrieve the version.
|
Set<String> |
getWarningWords() |
void |
setErrorWords(Set<String> errorWords) |
void |
setId(String newId) |
void |
setValidWords(Set<String> validWords) |
void |
setWarningWords(Set<String> warningWords) |
void |
validate(Metacard metacard)
Validates a
Metacard |
public String getVersion()
Describable
getVersion
in interface Describable
public String getId()
Describable
html for a MetacardTransformer
that transforms Metacard
s to HTML
getId
in interface Describable
public String getTitle()
Describable
getTitle
in interface Describable
public void setId(String newId)
public String getDescription()
Describable
getDescription
in interface Describable
public String getOrganization()
Describable
getOrganization
in interface Describable
public void validate(Metacard metacard) throws ValidationException
MetacardValidator
Metacard
validate
in interface MetacardValidator
metacard
- Metacard
to validateValidationException
- if any validation error occursThis work is licensed under a Creative Commons Attribution 4.0 International License.