Package org.relaxng.datatype.helpers

Examples of org.relaxng.datatype.helpers.DatatypeLibraryLoader$Service$Loader2


   * @param eh
   *        Error handler to receive errors while building the schema.
   */
  public SchemaBuilderImpl(ErrorHandler eh) {
      this(eh,
          new CascadingDatatypeLibraryFactory(new DatatypeLibraryLoader(),
            new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader())),
          new SchemaPatternBuilder());
  }
View Full Code Here


   * @param eh
   *        Error handler to receive errors while building the schema.
   */
  public SchemaBuilderImpl(ErrorHandler eh) {
      this(eh,
          new CascadingDatatypeLibraryFactory(new DatatypeLibraryLoader(),
            new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader())),
          new SchemaPatternBuilder());
  }
View Full Code Here

   * @param eh
   *        Error handler to receive errors while building the schema.
   */
  public SchemaBuilderImpl(ErrorHandler eh) {
      this(eh,
          new CascadingDatatypeLibraryFactory(new DatatypeLibraryLoader(),
            new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader())),
          new SchemaPatternBuilder());
  }
View Full Code Here

  XMLSchemaBuilder()
  {
    String uri = XMLConstants.W3C_XML_SCHEMA_NS_URI;
    DatatypeLibrary library =
      (new DatatypeLibraryLoader()).createDatatypeLibrary(uri);
    if (library == null)
      library = new gnu.xml.validation.datatype.TypeLibraryFactory().
                  createDatatypeLibrary(uri);
    typeLibrary = library;
  }
View Full Code Here

    context = new LinkedList();
    attributes = new ArrayList();

    String uri = XMLConstants.W3C_XML_SCHEMA_NS_URI;
    DatatypeLibrary library =
      (new DatatypeLibraryLoader()).createDatatypeLibrary(uri);
    if (library == null)
      library = new gnu.xml.validation.datatype.TypeLibraryFactory().
                  createDatatypeLibrary(uri);
    typeLibrary = library;
  }
View Full Code Here

    if (datatypeLibraries == null)
      datatypeLibraries = new HashMap();
    DatatypeLibrary library = (DatatypeLibrary) datatypeLibraries.get(uri);
    if (library == null)
      {
        library = new DatatypeLibraryLoader().createDatatypeLibrary(uri);
        if (library == null)
          {
            library = new gnu.xml.validation.datatype.TypeLibraryFactory().
                        createDatatypeLibrary(uri);
            if (library == null)
View Full Code Here

   * @param eh
   *        Error handler to receive errors while building the schema.
   */
  public SchemaBuilderImpl(ErrorHandler eh) {
      this(eh,
          new CascadingDatatypeLibraryFactory(new DatatypeLibraryLoader(),
            new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader())),
          new SchemaPatternBuilder());
  }
View Full Code Here

     *
     * @param eh Error handler to receive errors while building the schema.
     */
    public SchemaBuilderImpl(ErrorHandler eh) {
        this(eh,
                new CascadingDatatypeLibraryFactory(new DatatypeLibraryLoader(),
                new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader())),
                new SchemaPatternBuilder());
    }
View Full Code Here

    BuilderIssues issues = this.allService.getIssues();
    assertTrue( issues.toString(), issues.isValid());
    assertTrue( issues.toString(), issues.isEmpty());

    // Build
    Service s = this.allService.build();

    assertNotNull( s);
    assertTrue( this.allService.isBuilt() );

    assertEquals( allName, s.getName() );
    assertEquals( allType, s.getType() );
    assertEquals( allBaseUri, s.getBaseUri() );

    assertEquals( odapService, s.getServiceByName( odapName ) );
    assertEquals( wcsService, s.getServiceByName( wcsName ) );
    assertEquals( wmsService, s.getServiceByName( wmsName ) );

    assertEquals( odapService, s.findServiceByNameGlobally( odapName ) );
    assertEquals( wcsService, s.findServiceByNameGlobally( wcsName ) );
    assertEquals( wmsService, s.findServiceByNameGlobally( wmsName ) );

    List<Service> services = s.getServices();
    assertFalse( services.isEmpty() );
    assertEquals( 3, services.size() );

    assertEquals( odapService, services.get( 0 ) );
    assertEquals( wcsService, services.get( 1 ) );
    assertEquals( wmsService, services.get( 2 ) );

    // Test that Service methods succeed after build.
    List<Property> propList = s.getProperties();
    assertEquals( 2, propList.size() );
    Property prop1 = propList.get( 0 );
    Property prop2 = propList.get( 1 );

    assertEquals( "propName1", prop1.getName() );
View Full Code Here

TOP

Related Classes of org.relaxng.datatype.helpers.DatatypeLibraryLoader$Service$Loader2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.