Java Code Examples for com.sun.xml.internal.xsom.XSSchema#iterateSimpleTypes()
The following examples show how to use
com.sun.xml.internal.xsom.XSSchema#iterateSimpleTypes() .
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: SchemaSetImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 2
Source File: SchemaWriter.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }
Example 3
Source File: SchemaSetImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 4
Source File: SchemaWriter.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }
Example 5
Source File: SchemaSetImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 6
Source File: SchemaWriter.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }
Example 7
Source File: SchemaSetImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 8
Source File: SchemaWriter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }
Example 9
Source File: SchemaSetImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 10
Source File: SchemaWriter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }
Example 11
Source File: SchemaSetImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 12
Source File: SchemaWriter.java From hottub with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }
Example 13
Source File: SchemaSetImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 14
Source File: SchemaWriter.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }
Example 15
Source File: SchemaSetImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Iterator<XSSimpleType> iterateSimpleTypes() { return new Iterators.Map<XSSimpleType,XSSchema>(iterateSchema()) { protected Iterator<XSSimpleType> apply(XSSchema u) { return u.iterateSimpleTypes(); } }; }
Example 16
Source File: SchemaWriter.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void schema( XSSchema s ) { // QUICK HACK: don't print the built-in components if(s.getTargetNamespace().equals(Const.schemaNamespace)) return; println(MessageFormat.format("<schema targetNamespace=\"{0}\">", s.getTargetNamespace())); indent++; Iterator itr; itr = s.iterateAttGroupDecls(); while(itr.hasNext()) attGroupDecl( (XSAttGroupDecl)itr.next() ); itr = s.iterateAttributeDecls(); while(itr.hasNext()) attributeDecl( (XSAttributeDecl)itr.next() ); itr = s.iterateComplexTypes(); while(itr.hasNext()) complexType( (XSComplexType)itr.next() ); itr = s.iterateElementDecls(); while(itr.hasNext()) elementDecl( (XSElementDecl)itr.next() ); itr = s.iterateModelGroupDecls(); while(itr.hasNext()) modelGroupDecl( (XSModelGroupDecl)itr.next() ); itr = s.iterateSimpleTypes(); while(itr.hasNext()) simpleType( (XSSimpleType)itr.next() ); indent--; println("</schema>"); }