com.sun.org.apache.xerces.internal.impl.xs.models.CMBuilder Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.impl.xs.models.CMBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XSComplexTypeDecl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public synchronized XSCMValidator getContentModel(CMBuilder cmBuilder, boolean forUPA) {
    if (fCMValidator == null) {
        if (forUPA) {
            if (fUPACMValidator == null) {
                fUPACMValidator = cmBuilder.getContentModel(this, true);

                if (fUPACMValidator != null && !fUPACMValidator.isCompactedForUPA()) {
                    fCMValidator = fUPACMValidator;
                }
            }
            return fUPACMValidator;
        }
        else {
            fCMValidator = cmBuilder.getContentModel(this, false);
        }
    }
    return fCMValidator;
}
 
Example #2
Source File: XSComplexTypeDecl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
public synchronized XSCMValidator getContentModel(CMBuilder cmBuilder, boolean forUPA) {
    if (fCMValidator == null) {
        if (forUPA) {
            if (fUPACMValidator == null) {
                fUPACMValidator = cmBuilder.getContentModel(this, true);

                if (fUPACMValidator != null && !fUPACMValidator.isCompactedForUPA()) {
                    fCMValidator = fUPACMValidator;
                }
            }
            return fUPACMValidator;
        }
        else {
            fCMValidator = cmBuilder.getContentModel(this, false);
        }
    }
    return fCMValidator;
}
 
Example #3
Source File: XSComplexTypeDecl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #4
Source File: XSComplexTypeDecl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #5
Source File: XSComplexTypeDecl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #6
Source File: XSComplexTypeDecl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #7
Source File: XSComplexTypeDecl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null) {
        fCMValidator = getContentModel(cmBuilder, false);
    }
    return fCMValidator;
}
 
Example #8
Source File: XSComplexTypeDecl.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null) {
        fCMValidator = getContentModel(cmBuilder, false);
    }
    return fCMValidator;
}
 
Example #9
Source File: XSComplexTypeDecl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #10
Source File: XSComplexTypeDecl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #11
Source File: XSComplexTypeDecl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #12
Source File: XSComplexTypeDecl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #13
Source File: XSComplexTypeDecl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public XSCMValidator getContentModel(CMBuilder cmBuilder) {
    // for complex type with empty or simple content,
    // there is no content model validator
    if (fContentType == XSComplexTypeDecl.CONTENTTYPE_SIMPLE ||
        fContentType == XSComplexTypeDecl.CONTENTTYPE_EMPTY) {
        return null;
    }
    if (fCMValidator == null)
        synchronized (this) {
            if (fCMValidator == null) {
                fCMValidator = cmBuilder.getContentModel(this);
            }
        }
    return fCMValidator;
}
 
Example #14
Source File: XMLSchemaLoader.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter, XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #15
Source File: XMLSchemaLoader.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter, XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #16
Source File: XMLSchemaLoader.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter, XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #17
Source File: XMLSchemaLoader.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter, XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #18
Source File: XMLSchemaLoader.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter,
        XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #19
Source File: XMLSchemaLoader.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter,
        XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #20
Source File: XMLSchemaLoader.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter,
        XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #21
Source File: XMLSchemaLoader.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter,
        XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #22
Source File: XMLSchemaLoader.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter, XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #23
Source File: XMLSchemaLoader.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter,
        XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}
 
Example #24
Source File: XMLSchemaLoader.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager,
 * will be passed during reset(XMLComponentManager).
 * @param errorReporter
 * @param grammarBucket
 * @param sHandler
 * @param builder
 */
XMLSchemaLoader(XMLErrorReporter errorReporter,
        XSGrammarBucket grammarBucket,
        SubstitutionGroupHandler sHandler, CMBuilder builder) {
    this(null, errorReporter, null, grammarBucket, sHandler, builder);
}