|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.archive.crawler.settings.Constraint org.archive.crawler.settings.LegalValueListConstraint
public class LegalValueListConstraint
A constraint that checks that an attribute value matches one of the items in the list of legal values.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.archive.crawler.settings.Constraint |
---|
Constraint.FailedCheck |
Constructor Summary | |
---|---|
LegalValueListConstraint()
Constructs a new LegalValueListConstraint using default severity level ( Level.WARNING ) and default error message. |
|
LegalValueListConstraint(java.util.logging.Level level)
Constructs a new LegalValueListConstraint using default error message. |
|
LegalValueListConstraint(java.util.logging.Level level,
java.lang.String msg)
Constructs a new LegalValueListConstraint. |
|
LegalValueListConstraint(java.lang.String msg)
Constructs a new LegalValueListConstraint using default severity level ( Level.WARNING ). |
Method Summary | |
---|---|
Constraint.FailedCheck |
innerCheck(CrawlerSettings settings,
ComplexType owner,
Type definition,
java.lang.Object value)
The method all subclasses should implement to do the actual checking. |
Methods inherited from class org.archive.crawler.settings.Constraint |
---|
check, compareTo, getDefaultMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegalValueListConstraint(java.util.logging.Level level, java.lang.String msg)
level
- the severity level.msg
- the default error message.public LegalValueListConstraint(java.lang.String msg)
Level.WARNING
).
msg
- the default error message.public LegalValueListConstraint(java.util.logging.Level level)
level
- public LegalValueListConstraint()
Level.WARNING
) and default error message.
Method Detail |
---|
public Constraint.FailedCheck innerCheck(CrawlerSettings settings, ComplexType owner, Type definition, java.lang.Object value)
Constraint
innerCheck
in class Constraint
owner
- the ComplexType owning the attribute to check.definition
- the definition to check the attribute against.value
- the value to check.
Constraint.FailedCheck
if the check
failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |