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