AttributeChecker
FieldRefChecker
public class RefChecker extends java.lang.Object implements AttributeChecker
Constructor | Description |
---|---|
RefChecker(java.lang.String legalReferent) |
Constructs a RefChecker which can only sensibly reference a single
given element type.
|
RefChecker(java.lang.String[] legalReferents) |
Constructs a RefChecker which can only sensibly reference a given
list of element types.
|
Modifier and Type | Method | Description |
---|---|---|
void |
check(java.lang.String id,
ElementHandler handler) |
Performs a syntactic and/or semantic check on an attribute
value for a given element.
|
void |
checkLink(VotLintContext context,
java.lang.String id,
ElementRef from,
ElementRef to) |
Checks that an IDREF->ID arc is sensible.
|
public RefChecker(java.lang.String[] legalReferents)
legalReferents
- list of element local names which this
ref can sensibly point topublic RefChecker(java.lang.String legalReferent)
legalReferent
- sole element local name which this ref can
sensibly point topublic void check(java.lang.String id, ElementHandler handler)
AttributeChecker
check
in interface AttributeChecker
id
- the value of the attribute to checkhandler
- the element on which attValue appearspublic void checkLink(VotLintContext context, java.lang.String id, ElementRef from, ElementRef to)
context
- lint contextid
- ID valuefrom
- element with IDREF value of idto
- element with ID value of idCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.