blob: d90be819157747c64037be7c15ee245deee93392 [file] [log] [blame]
/*
* Copyright (c) 1998, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.jaxb.compiler;
import java.util.ArrayList;
import javax.xml.namespace.QName;
/**
* INTERNAL:
* <p><b>Purpose:</b>Provide additional information about JAXB 2.0 Generated Schemas to
* callers.
* <p><b>Responsibilities:</b><ul>
* <li>Store information about a schema type generated for a specific class</li>
* <li>Store information about any globalElementDeclarations that were generated for a specific class</li>
* <li>Act as an integration point with WebServices</li>
* </ul>
* <p>This class was created as a means to return specific information about generated schema
* artifacts for a particular java class. A Map of SchemaTypeInfo is returned from schema generation
* operations on TopLinkJAXB20Generator.
*
* @author mmacivor
* @since Oracle TopLink 11.1.1.0.0
* @see org.eclipse.persistence.jaxb.compiler.Generator
*/
public class SchemaTypeInfo {
private QName schemaTypeName;
private ArrayList<QName> globalElementDeclarations;
public QName getSchemaTypeName() {
return schemaTypeName;
}
public void setSchemaTypeName(QName typeName) {
this.schemaTypeName = typeName;
}
public ArrayList<QName> getGlobalElementDeclarations() {
if(globalElementDeclarations == null) {
globalElementDeclarations = new ArrayList();
}
return globalElementDeclarations;
}
public void setGlobalElementDeclarations(ArrayList<QName> elementDeclarations) {
this.globalElementDeclarations = elementDeclarations;
}
}