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 classIdentityConstraint.ConstraintStateclassIdentityConstraint.FieldStateclassIdentityConstraint.IdRefStateclassIdentityConstraint.IdStateclassIdentityConstraint.KeyrefStateclassIdentityConstraint.SelectorState -
Constructor Summary
Constructors Constructor Description IdentityConstraint(Collection errorListener, boolean trackIdrefs) -
Method Summary
Modifier and Type Method Description voidattr(ValidatorListener.Event e, QName name, SchemaType st, String value)voidelement(ValidatorListener.Event e, SchemaType st, SchemaIdentityConstraint[] ics)voidendElement(ValidatorListener.Event e)static XmlErrorerrorForEvent(String msg, int severity, ValidatorListener.Event event)static XmlErrorerrorForEvent(String code, Object[] args, int severity, ValidatorListener.Event event)booleanisValid()voidtext(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
-