Examples of validateContent()


Examples of net.sf.saxon.type.SimpleType.validateContent()

        SimpleType schemaType = getSchemaType();
        int validationAction = getValidationAction();
        if (schemaType != null) {
            // test whether the value actually conforms to the given type
            try {
                ValidationFailure err = schemaType.validateContent(
                        value, DummyNamespaceResolver.getInstance(), context.getConfiguration().getNameChecker());
                if (err != null) {
                    ValidationException ve = new ValidationException(
                            "Attribute value " + Err.wrap(value, Err.VALUE) +
                                               " does not match the required type " +
View Full Code Here

Examples of org.apache.xerces.validators.dtd.XMLContentModel.validateContent()

            // Get the content model for this element, faulting it in if needed
            XMLContentModel cmElem = null;
            try
            {
                cmElem = getContentModel(elementIndex);
                return cmElem.validateContent(childCount, children);
            }

            catch(CMException excToCatch)
            {
                int majorCode = excToCatch.getErrorCode();
View Full Code Here

Examples of org.apache.xerces.validators.dtd.XMLContentModel.validateContent()

        {

            XMLContentModel cmElem = null;
            try {
                cmElem = getContentModel(elementIndex);
                return cmElem.validateContent(1, new int[] { fStringPool.addString(fDatatypeBuffer.toString()) });
            } catch (CMException cme) {
                System.out.println("Internal Error in datatype validation");
            } catch (InvalidDatatypeValueException idve) {
                reportSchemaError(SchemaMessageProvider.DatatypeError,
                                  new Object [] { idve.getMessage() });
View Full Code Here

Examples of org.apache.xerces.validators.dtd.XMLContentModel.validateContent()

            // Get the content model for this element, faulting it in if needed
            XMLContentModel cmElem = null;
            try
            {
                cmElem = getContentModel(elementIndex);
                return cmElem.validateContent(childCount, children);
            }

            catch(CMException excToCatch)
            {
                int majorCode = excToCatch.getErrorCode();
View Full Code Here

Examples of org.apache.xerces.validators.dtd.XMLContentModel.validateContent()

        {

            XMLContentModel cmElem = null;
            try {
                cmElem = getContentModel(elementIndex);
                return cmElem.validateContent(1, new int[] { fStringPool.addString(fDatatypeBuffer.toString()) });
            } catch (CMException cme) {
                System.out.println("Internal Error in datatype validation");
            } catch (InvalidDatatypeValueException idve) {
                reportSchemaError(SchemaMessageProvider.DatatypeError,
                                  new Object [] { idve.getMessage() });
View Full Code Here

Examples of org.dyno.visual.swing.designer.VisualDesigner.validateContent()

  }

  public void validateContent() {
    VisualDesigner designer = getDesigner();
    if (designer != null)
      designer.validateContent();
  }

  public IUndoContext getUndoContext() {
    VisualDesigner designer = getDesigner();
    if (designer != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.