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

The following examples show how to use com.sun.org.apache.xerces.internal.impl.xs.models.XSCMValidator. 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 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 #4
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 #5
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 #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-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 #8
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 #9
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 #10
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 #11
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 #12
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 #13
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 #14
Source File: XMLSchemaValidator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #15
Source File: XMLSchemaValidator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #16
Source File: XMLSchemaValidator.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #17
Source File: XMLSchemaValidator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #18
Source File: XMLSchemaValidator.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #19
Source File: XMLSchemaValidator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #20
Source File: XMLSchemaValidator.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #21
Source File: XMLSchemaValidator.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #22
Source File: XMLSchemaValidator.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #23
Source File: XMLSchemaValidator.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}
 
Example #24
Source File: XMLSchemaValidator.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/** ensure element stack capacity */
void ensureStackCapacity() {

    if (fElementDepth == fElemDeclStack.length) {
        int newSize = fElementDepth + INC_STACK_SIZE;
        boolean[] newArrayB = new boolean[newSize];
        System.arraycopy(fSubElementStack, 0, newArrayB, 0, fElementDepth);
        fSubElementStack = newArrayB;

        XSElementDecl[] newArrayE = new XSElementDecl[newSize];
        System.arraycopy(fElemDeclStack, 0, newArrayE, 0, fElementDepth);
        fElemDeclStack = newArrayE;

        newArrayB = new boolean[newSize];
        System.arraycopy(fNilStack, 0, newArrayB, 0, fElementDepth);
        fNilStack = newArrayB;

        XSNotationDecl[] newArrayN = new XSNotationDecl[newSize];
        System.arraycopy(fNotationStack, 0, newArrayN, 0, fElementDepth);
        fNotationStack = newArrayN;

        XSTypeDefinition[] newArrayT = new XSTypeDefinition[newSize];
        System.arraycopy(fTypeStack, 0, newArrayT, 0, fElementDepth);
        fTypeStack = newArrayT;

        XSCMValidator[] newArrayC = new XSCMValidator[newSize];
        System.arraycopy(fCMStack, 0, newArrayC, 0, fElementDepth);
        fCMStack = newArrayC;

        newArrayB = new boolean[newSize];
        System.arraycopy(fSawTextStack, 0, newArrayB, 0, fElementDepth);
        fSawTextStack = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStringContent, 0, newArrayB, 0, fElementDepth);
        fStringContent = newArrayB;

        newArrayB = new boolean[newSize];
        System.arraycopy(fStrictAssessStack, 0, newArrayB, 0, fElementDepth);
        fStrictAssessStack = newArrayB;

        int[][] newArrayIA = new int[newSize][];
        System.arraycopy(fCMStateStack, 0, newArrayIA, 0, fElementDepth);
        fCMStateStack = newArrayIA;
    }

}