|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.crawler.settings.Constraint
org.archive.crawler.settings.LegalValueTypeConstraint
public class LegalValueTypeConstraint
A constraint that checks that an attribute value is of the right type
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.archive.crawler.settings.Constraint |
|---|
Constraint.FailedCheck |
| Constructor Summary | |
|---|---|
LegalValueTypeConstraint()
Constructs a new LegalValueListConstraint using default severity level ( Level.WARNING) and default error message. |
|
LegalValueTypeConstraint(java.util.logging.Level level)
Constructs a new LegalValueListConstraint using default error message. |
|
LegalValueTypeConstraint(java.util.logging.Level level,
java.lang.String msg)
Constructs a new LegalValueListConstraint. |
|
LegalValueTypeConstraint(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 LegalValueTypeConstraint(java.util.logging.Level level,
java.lang.String msg)
level - the severity level.msg - the default error message.public LegalValueTypeConstraint(java.lang.String msg)
Level.WARNING).
msg - the default error message.public LegalValueTypeConstraint(java.util.logging.Level level)
level - public LegalValueTypeConstraint()
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 Constraintowner - the ComplexType owning the attribute to check.definition - the definition to check the attribute against.value - the value to check.
Constraint.FailedCheckif the check
failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||