< prev index next >

src/java.xml/share/classes/com/sun/xml/internal/stream/dtd/DTDGrammarUtil.java

Print this page

        

*** 1,15 **** /* ! * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. */ /* ! * Copyright 2005 The Apache Software Foundation. ! * ! * Licensed under the Apache License, Version 2.0 (the "License"); ! * you may not use this file except in compliance with the License. ! * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, --- 1,16 ---- /* ! * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. */ /* ! * Licensed to the Apache Software Foundation (ASF) under one or more ! * contributor license agreements. See the NOTICE file distributed with ! * this work for additional information regarding copyright ownership. ! * The ASF licenses this file to You under the Apache License, Version 2.0 ! * (the "License"); you may not use this file except in compliance with ! * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,
*** 22,47 **** import com.sun.xml.internal.stream.dtd.nonvalidating.DTDGrammar; import com.sun.xml.internal.stream.dtd.nonvalidating.XMLAttributeDecl; import com.sun.xml.internal.stream.dtd.nonvalidating.XMLElementDecl; import com.sun.xml.internal.stream.dtd.nonvalidating.XMLSimpleType; import com.sun.org.apache.xerces.internal.impl.Constants; - import com.sun.org.apache.xerces.internal.impl.XMLEntityManager; - import com.sun.org.apache.xerces.internal.impl.XMLErrorReporter; import com.sun.org.apache.xerces.internal.util.SymbolTable; import com.sun.org.apache.xerces.internal.util.XMLChar; import com.sun.org.apache.xerces.internal.util.XMLSymbols; import com.sun.org.apache.xerces.internal.xni.Augmentations; import com.sun.org.apache.xerces.internal.xni.QName; import com.sun.org.apache.xerces.internal.xni.NamespaceContext; import com.sun.org.apache.xerces.internal.xni.XMLAttributes; - import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler; - import com.sun.org.apache.xerces.internal.xni.XMLLocator; import com.sun.org.apache.xerces.internal.xni.XMLString; import com.sun.org.apache.xerces.internal.xni.XNIException; import com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager; import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; - import com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource; import javax.xml.XMLConstants; /* * @author Eric Ye, IBM * @author Andy Clark, IBM --- 23,43 ----
*** 94,104 **** /** Temporary qualified name. */ private QName fTempQName = new QName(); /** Temporary string buffers. */ ! private StringBuffer fBuffer = new StringBuffer(); private NamespaceContext fNamespaceContext = null; /** Default constructor. */ public DTDGrammarUtil(SymbolTable symbolTable) { --- 90,100 ---- /** Temporary qualified name. */ private QName fTempQName = new QName(); /** Temporary string buffers. */ ! private StringBuilder fBuffer = new StringBuilder(); private NamespaceContext fNamespaceContext = null; /** Default constructor. */ public DTDGrammarUtil(SymbolTable symbolTable) {
*** 394,404 **** case XMLSimpleType.TYPE_ENTITY: { return attrDecl.simpleType.list ? XMLSymbols.fENTITIESSymbol : XMLSymbols.fENTITYSymbol; } case XMLSimpleType.TYPE_ENUMERATION: { ! StringBuffer buffer = new StringBuffer(); buffer.append('('); for (int i = 0; i < attrDecl.simpleType.enumeration.length; i++) { if (i > 0) { buffer.append("|"); } --- 390,400 ---- case XMLSimpleType.TYPE_ENTITY: { return attrDecl.simpleType.list ? XMLSymbols.fENTITIESSymbol : XMLSymbols.fENTITYSymbol; } case XMLSimpleType.TYPE_ENUMERATION: { ! StringBuilder buffer = new StringBuilder(); buffer.append('('); for (int i = 0; i < attrDecl.simpleType.enumeration.length; i++) { if (i > 0) { buffer.append("|"); }
< prev index next >