Package org.apache.xmlbeans.impl.common
Class IdentityConstraint
- java.lang.Object
-
- org.apache.xmlbeans.impl.common.IdentityConstraint
-
public class IdentityConstraint extends java.lang.ObjectIdentity 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(java.util.Collection errorListener, boolean trackIdrefs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattr(ValidatorListener.Event e, javax.xml.namespace.QName name, SchemaType st, java.lang.String value)voidelement(ValidatorListener.Event e, SchemaType st, SchemaIdentityConstraint[] ics)voidendElement(ValidatorListener.Event e)static XmlErrorerrorForEvent(java.lang.String msg, int severity, ValidatorListener.Event event)static XmlErrorerrorForEvent(java.lang.String code, java.lang.Object[] args, int severity, ValidatorListener.Event event)booleanisValid()voidtext(ValidatorListener.Event e, SchemaType st, java.lang.String value, boolean emptyContent)
-
-
-
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, javax.xml.namespace.QName name, SchemaType st, java.lang.String value)
-
text
public void text(ValidatorListener.Event e, SchemaType st, java.lang.String value, boolean emptyContent)
-
isValid
public boolean isValid()
-
errorForEvent
public static XmlError errorForEvent(java.lang.String code, java.lang.Object[] args, int severity, ValidatorListener.Event event)
-
errorForEvent
public static XmlError errorForEvent(java.lang.String msg, int severity, ValidatorListener.Event event)
-
-