com.sun.xml.internal.bind.v2.model.core.ArrayInfo Java Examples

The following examples show how to use com.sun.xml.internal.bind.v2.model.core.ArrayInfo. 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: XmlSchemaGenerator.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #2
Source File: XmlSchemaGenerator.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #3
Source File: XmlSchemaGenerator.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #4
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #5
Source File: XmlSchemaGenerator.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #6
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #7
Source File: XmlSchemaGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #8
Source File: XmlSchemaGenerator.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public XmlSchemaGenerator( Navigator<T,C,F,M> navigator, TypeInfoSet<T,C,F,M> types ) {
    this.navigator = navigator;
    this.types = types;

    this.stringType = types.getTypeInfo(navigator.ref(String.class));
    this.anyType = types.getAnyTypeInfo();

    // populate the object
    for( ClassInfo<T,C> ci : types.beans().values() )
        add(ci);
    for( ElementInfo<T,C> ei1 : types.getElementMappings(null).values() )
        add(ei1);
    for( EnumLeafInfo<T,C> ei : types.enums().values() )
        add(ei);
    for( ArrayInfo<T,C> a : types.arrays().values())
        add(a);
}
 
Example #9
Source File: XmlSchemaGenerator.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #10
Source File: XmlSchemaGenerator.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}
 
Example #11
Source File: XmlSchemaGenerator.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #12
Source File: XmlSchemaGenerator.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}
 
Example #13
Source File: XmlSchemaGenerator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #14
Source File: XmlSchemaGenerator.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}
 
Example #15
Source File: XmlSchemaGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #16
Source File: XmlSchemaGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}
 
Example #17
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #18
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}
 
Example #19
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #20
Source File: XmlSchemaGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}
 
Example #21
Source File: XmlSchemaGenerator.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #22
Source File: XmlSchemaGenerator.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}
 
Example #23
Source File: XmlSchemaGenerator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * writes the schema definition for the given array class
 */
private void writeArray(ArrayInfo<T, C> a, Schema schema) {
    ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
    ct._final("#all");
    LocalElement le = ct.sequence().element().name("item");
    le.type(a.getItemType().getTypeName());
    le.minOccurs(0).maxOccurs("unbounded");
    le.nillable(true);
    ct.commit();
}
 
Example #24
Source File: XmlSchemaGenerator.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void add( ArrayInfo<T,C> a ) {
    assert a!=null;

    final String namespaceURI = a.getTypeName().getNamespaceURI();
    Namespace n = getNamespace(namespaceURI);
    n.arrays.add(a);

    // search for foreign namespace references
    n.addDependencyTo(a.getItemType().getTypeName());
}