Package org.apache.xmlbeans.impl.common
Class IdentityConstraint
java.lang.Object
org.apache.xmlbeans.impl.common.IdentityConstraint
public class IdentityConstraint extends Object
Identity constraint engine. Performs streaming validation of identity constraints.
This includes key, keyref, & unique, as well as ID & IDRef.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
IdentityConstraint.ConstraintState
class
IdentityConstraint.FieldState
class
IdentityConstraint.IdRefState
class
IdentityConstraint.IdState
class
IdentityConstraint.KeyrefState
class
IdentityConstraint.SelectorState
-
Constructor Summary
Constructors Constructor Description IdentityConstraint(Collection errorListener, boolean trackIdrefs)
-
Method Summary
Modifier and Type Method Description void
attr(ValidatorListener.Event e, QName name, SchemaType st, String value)
void
element(ValidatorListener.Event e, SchemaType st, SchemaIdentityConstraint[] ics)
void
endElement(ValidatorListener.Event e)
static XmlError
errorForEvent(String msg, int severity, ValidatorListener.Event event)
static XmlError
errorForEvent(String code, Object[] args, int severity, ValidatorListener.Event event)
boolean
isValid()
void
text(ValidatorListener.Event e, SchemaType st, String value, boolean emptyContent)
-
Constructor Details
-
Method Details
-
element
-
endElement
-
attr
-
text
-
isValid
public boolean isValid() -
errorForEvent
public static XmlError errorForEvent(String code, Object[] args, int severity, ValidatorListener.Event event) -
errorForEvent
-