com.sun.tools.internal.xjc.api.ClassNameAllocator Java Examples

The following examples show how to use com.sun.tools.internal.xjc.api.ClassNameAllocator. 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: Model.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null,new HashMap<QName,CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.gloablCustomizations.setParent(this,this);
}
 
Example #2
Source File: Model.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null,new HashMap<QName,CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.gloablCustomizations.setParent(this,this);
}
 
Example #3
Source File: Model.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null,new HashMap<QName,CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.gloablCustomizations.setParent(this,this);
}
 
Example #4
Source File: Model.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null,new HashMap<QName,CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.gloablCustomizations.setParent(this,this);
}
 
Example #5
Source File: Model.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null,new HashMap<QName,CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.gloablCustomizations.setParent(this,this);
}
 
Example #6
Source File: Model.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null,new HashMap<QName,CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.gloablCustomizations.setParent(this,this);
}
 
Example #7
Source File: Model.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null,new HashMap<QName,CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.gloablCustomizations.setParent(this,this);
}
 
Example #8
Source File: Model.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @param nc
 *      Usually this should be set in the constructor, but we do allow this parameter
 *      to be initially null, and then set later.
 * @param schemaComponent
 *      The source schema model, if this is built from XSD.
 */
public Model( Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent ) {
    this.options = opts;
    this.codeModel = cm;
    this.nameConverter = nc;
    this.defaultSymbolSpace = new SymbolSpace(codeModel);
    defaultSymbolSpace.setType(codeModel.ref(Object.class));

    elementMappings.put(null, new LinkedHashMap<QName, CElementInfo>());

    if(opts.automaticNameConflictResolution)
        allocator = new AutoClassNameAllocator(allocator);
    this.allocator = new ClassNameAllocatorWrapper(allocator);
    this.schemaComponent = schemaComponent;
    this.globalCustomizations.setParent(this, this);
}
 
Example #9
Source File: AutoClassNameAllocator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}
 
Example #10
Source File: SchemaCompilerImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #11
Source File: SchemaCompilerImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #12
Source File: AutoClassNameAllocator.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}
 
Example #13
Source File: SchemaCompilerImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #14
Source File: AutoClassNameAllocator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}
 
Example #15
Source File: SchemaCompilerImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #16
Source File: AutoClassNameAllocator.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}
 
Example #17
Source File: SchemaCompilerImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #18
Source File: AutoClassNameAllocator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}
 
Example #19
Source File: SchemaCompilerImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #20
Source File: AutoClassNameAllocator.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}
 
Example #21
Source File: SchemaCompilerImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #22
Source File: AutoClassNameAllocator.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}
 
Example #23
Source File: SchemaCompilerImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void setClassNameAllocator(ClassNameAllocator allocator) {
    opts.classNameAllocator = allocator;
}
 
Example #24
Source File: AutoClassNameAllocator.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public AutoClassNameAllocator(ClassNameAllocator core) {
    this.core = core;
}