public abstract class AbstractDetector extends Object implements Detector
| Modifier and Type | Field and Description |
|---|---|
protected List<Detector> |
childList |
protected String |
message
Designation for this type in 'magic' file
|
protected boolean |
valid
Set this if parsing of magic file fails
|
| Constructor and Description |
|---|
AbstractDetector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Detector detector,
int level)
Add an embedded detector object that searches for more details after an initial match.
|
void |
configure(Element e) |
String |
getDesignation() |
String |
getExtension() |
List<String> |
getExtensions() |
String |
getMimeType() |
void |
setDesignation(String designation) |
void |
setExtension(String extension)
Adds a possible extension.
|
void |
setMimeType(String mimetype) |
void |
setValid(boolean v) |
String |
toString() |
boolean |
valid() |
protected String message
protected boolean valid
public void addChild(Detector detector, int level)
public void setExtension(String extension)
setExtension in interface Detectorpublic String getExtension()
getExtension in interface Detectorpublic List<String> getExtensions()
getExtensions in interface Detectorpublic void setMimeType(String mimetype)
setMimeType in interface Detectorpublic String getMimeType()
getMimeType in interface Detectorpublic void setDesignation(String designation)
public String getDesignation()
getDesignation in interface Detectorpublic boolean valid()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}