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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
IdentityConstraint
public IdentityConstraint(Collection errorListener, boolean trackIdrefs)
-
-
Method Detail
-
element
public void element(ValidatorListener.Event e, SchemaType st, SchemaIdentityConstraint[] ics)
-
endElement
public void endElement(ValidatorListener.Event e)
-
attr
public void attr(ValidatorListener.Event e, QName name, SchemaType st, String value)
-
text
public void text(ValidatorListener.Event e, SchemaType st, String value, boolean emptyContent)
-
isValid
public boolean isValid()
-
errorForEvent
public static XmlError errorForEvent(String code, Object[] args, int severity, ValidatorListener.Event event)
-
errorForEvent
public static XmlError errorForEvent(String msg, int severity, ValidatorListener.Event event)
-
-