Java Code Examples for com.sun.org.apache.xerces.internal.xs.StringList#item()
The following examples show how to use
com.sun.org.apache.xerces.internal.xs.StringList#item() .
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: XSDHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 2
Source File: XSDHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 3
Source File: XSDHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 4
Source File: XSDHandler.java From JDKSourceCode1.8 with MIT License | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 5
Source File: XSDHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 6
Source File: XSDHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 7
Source File: ElementPSVImpl.java From Bytecoder with Apache License 2.0 | 5 votes |
public ElementPSVImpl(boolean isConstant, ElementPSVI elementPSVI) { fDeclaration = elementPSVI.getElementDeclaration(); fTypeDecl = elementPSVI.getTypeDefinition(); fNil = elementPSVI.getNil(); fSpecified = elementPSVI.getIsSchemaSpecified(); fValue.copyFrom(elementPSVI.getSchemaValue()); fNotation = elementPSVI.getNotation(); fValidationAttempted = elementPSVI.getValidationAttempted(); fValidity = elementPSVI.getValidity(); fValidationContext = elementPSVI.getValidationContext(); if (elementPSVI instanceof ElementPSVImpl) { final ElementPSVImpl elementPSVIImpl = (ElementPSVImpl) elementPSVI; fErrors = (elementPSVIImpl.fErrors != null) ? elementPSVIImpl.fErrors.clone() : null; elementPSVIImpl.copySchemaInformationTo(this); } else { final StringList errorCodes = elementPSVI.getErrorCodes(); final int length = errorCodes.getLength(); if (length > 0) { final StringList errorMessages = elementPSVI.getErrorMessages(); final String[] errors = new String[length << 1]; for (int i = 0, j = 0; i < length; ++i) { errors[j++] = errorCodes.item(i); errors[j++] = errorMessages.item(i); } fErrors = errors; } fSchemaInformation = elementPSVI.getSchemaInformation(); } fIsConstant = isConstant; }
Example 8
Source File: AttributePSVImpl.java From Bytecoder with Apache License 2.0 | 5 votes |
public AttributePSVImpl(boolean isConstant, AttributePSVI attrPSVI) { fDeclaration = attrPSVI.getAttributeDeclaration(); fTypeDecl = attrPSVI.getTypeDefinition(); fSpecified = attrPSVI.getIsSchemaSpecified(); fValue.copyFrom(attrPSVI.getSchemaValue()); fValidationAttempted = attrPSVI.getValidationAttempted(); fValidity = attrPSVI.getValidity(); if (attrPSVI instanceof AttributePSVImpl) { final AttributePSVImpl attrPSVIImpl = (AttributePSVImpl) attrPSVI; fErrors = (attrPSVIImpl.fErrors != null) ? attrPSVIImpl.fErrors.clone() : null; } else { final StringList errorCodes = attrPSVI.getErrorCodes(); final int length = errorCodes.getLength(); if (length > 0) { final StringList errorMessages = attrPSVI.getErrorMessages(); final String[] errors = new String[length << 1]; for (int i = 0, j = 0; i < length; ++i) { errors[j++] = errorCodes.item(i); errors[j++] = errorMessages.item(i); } fErrors = errors; } } fValidationContext = attrPSVI.getValidationContext(); fIsConstant = isConstant; }
Example 9
Source File: XSDHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 10
Source File: ElementPSVImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ElementPSVImpl(boolean isConstant, ElementPSVI elementPSVI) { fDeclaration = elementPSVI.getElementDeclaration(); fTypeDecl = elementPSVI.getTypeDefinition(); fNil = elementPSVI.getNil(); fSpecified = elementPSVI.getIsSchemaSpecified(); fValue.copyFrom(elementPSVI.getSchemaValue()); fNotation = elementPSVI.getNotation(); fValidationAttempted = elementPSVI.getValidationAttempted(); fValidity = elementPSVI.getValidity(); fValidationContext = elementPSVI.getValidationContext(); if (elementPSVI instanceof ElementPSVImpl) { final ElementPSVImpl elementPSVIImpl = (ElementPSVImpl) elementPSVI; fErrors = (elementPSVIImpl.fErrors != null) ? (String[]) elementPSVIImpl.fErrors.clone() : null; elementPSVIImpl.copySchemaInformationTo(this); } else { final StringList errorCodes = elementPSVI.getErrorCodes(); final int length = errorCodes.getLength(); if (length > 0) { final StringList errorMessages = elementPSVI.getErrorMessages(); final String[] errors = new String[length << 1]; for (int i = 0, j = 0; i < length; ++i) { errors[j++] = errorCodes.item(i); errors[j++] = errorMessages.item(i); } fErrors = errors; } fSchemaInformation = elementPSVI.getSchemaInformation(); } fIsConstant = isConstant; }
Example 11
Source File: AttributePSVImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public AttributePSVImpl(boolean isConstant, AttributePSVI attrPSVI) { fDeclaration = attrPSVI.getAttributeDeclaration(); fTypeDecl = attrPSVI.getTypeDefinition(); fSpecified = attrPSVI.getIsSchemaSpecified(); fValue.copyFrom(attrPSVI.getSchemaValue()); fValidationAttempted = attrPSVI.getValidationAttempted(); fValidity = attrPSVI.getValidity(); if (attrPSVI instanceof AttributePSVImpl) { final AttributePSVImpl attrPSVIImpl = (AttributePSVImpl) attrPSVI; fErrors = (attrPSVIImpl.fErrors != null) ? (String[]) attrPSVIImpl.fErrors.clone() : null; } else { final StringList errorCodes = attrPSVI.getErrorCodes(); final int length = errorCodes.getLength(); if (length > 0) { final StringList errorMessages = attrPSVI.getErrorMessages(); final String[] errors = new String[length << 1]; for (int i = 0, j = 0; i < length; ++i) { errors[j++] = errorCodes.item(i); errors[j++] = errorMessages.item(i); } fErrors = errors; } } fValidationContext = attrPSVI.getValidationContext(); fIsConstant = isConstant; }
Example 12
Source File: XSDHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 13
Source File: XSDHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }
Example 14
Source File: XSDHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void addNewGrammarLocations(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { final StringList locations = srcGrammar.getDocumentLocations(); final int locSize = locations.size(); final StringList locations2 = dstGrammar.getDocumentLocations(); for (int i=0; i<locSize; i++) { String loc = locations.item(i); if (!locations2.contains(loc)) { dstGrammar.addDocument(null, loc); } } }