public class DocClassSpec extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
DocClassSpec.MatchItem |
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected boolean |
allMetadata |
protected ArrayList |
matchItems |
protected HashMap |
metadataFields |
Constructor and Description |
---|
DocClassSpec() |
DocClassSpec(SpecificationNode sn) |
Modifier and Type | Method and Description |
---|---|
int |
appendMatch(String matchType,
String matchField,
String matchValue)
Add a match
|
boolean |
checkMetadataIncluded(String fieldName)
Check if a metadata field is included
|
boolean |
getAllMetadata()
Get 'all metadata' flag
|
int |
getMatchCount()
Get the number of matches
|
String |
getMatchField(int matchIndex)
For a given match, get its field name
|
String |
getMatchType(int matchIndex)
For a given match, get its type
|
String |
getMatchValue(int matchIndex)
For a given match, get its match value
|
String[] |
getMetadataFields()
Get the list of metadata fields
|
void |
setAllMetadata(boolean value)
Set metadata to "all metadata"
|
void |
setMetadataField(String fieldName)
Add a metadata field to include
|
public static final String _rcsid
protected boolean allMetadata
protected HashMap metadataFields
protected ArrayList matchItems
public DocClassSpec()
public DocClassSpec(SpecificationNode sn)
public void setAllMetadata(boolean value)
public void setMetadataField(String fieldName)
public int appendMatch(String matchType, String matchField, String matchValue)
public boolean getAllMetadata()
public String[] getMetadataFields()
public boolean checkMetadataIncluded(String fieldName)
public int getMatchCount()
public String getMatchType(int matchIndex)
public String getMatchField(int matchIndex)
public String getMatchValue(int matchIndex)