Package thredds.catalog2.xml.parser

Examples of thredds.catalog2.xml.parser.CatalogXmlUtils


    String vocabAuthUrl = "vocabAuthUrl";
    ThreddsMetadataBuilder.VariableGroupBuilder mockVarGrp = createMockVarGroupBasic( vocabAuthId, vocabAuthUrl );

    ThreddsMetadataImpl.VariableImpl var = new ThreddsMetadataImpl.VariableImpl( "name", "descrip", "unit", "vocabId", "vocabName", mockVarGrp );

    BuilderIssues bldrIssues = var.getIssues();
    assertTrue( bldrIssues.isEmpty());
  }
View Full Code Here


    String vocabAuthUrl = "vocabAuthUrl";
    ThreddsMetadataBuilder.VariableGroupBuilder mockVarGrp = createMockVarGroupBasic( vocabAuthId, vocabAuthUrl );

    ThreddsMetadataImpl.VariableImpl var = new ThreddsMetadataImpl.VariableImpl( null, "descrip", "unit", "vocabId", "vocabName", mockVarGrp );

    BuilderIssues bldrIssues = var.getIssues();
    assertFalse( bldrIssues.isEmpty());
    assertEquals( 1, bldrIssues.size());
  }
View Full Code Here

    String vocabAuthUrl = "vocabAuthUrl";
    ThreddsMetadataBuilder.VariableGroupBuilder mockVarGrp = createMockVarGroupBasic( vocabAuthId, vocabAuthUrl );

    ThreddsMetadataImpl.VariableImpl var = new ThreddsMetadataImpl.VariableImpl( "name", null, null, null, null, mockVarGrp );

    BuilderIssues bldrIssues = var.getIssues();
    assertTrue( bldrIssues.isEmpty());
  }
View Full Code Here

  }

  private void buildBuilder()
  {
    // Check if buildable
    BuilderIssues issues = tmb.getIssues();
    if ( ! issues.isValid() )
    {
      StringBuilder stringBuilder = new StringBuilder( "Not isBuildable(): " ).append( issues.toString() );
      fail( stringBuilder.toString() );
    }

    // Build
    try
View Full Code Here

  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/overrideInheritedWithchildMetadataElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetOverridingInheritedIdAuthorityWithChildMetadataElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
    assertDatasetTwoHasAuthorityTwo( catBuilder );
  }
View Full Code Here

  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/overrideInheritedWithchildInheritedMetadataElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetOverridingInheritedIdAuthorityWithChildInheritedMetadataElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
    assertDatasetTwoHasAuthorityTwo( catBuilder );
  }
View Full Code Here

  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/ServiceNameInheritanceTest/attribute.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithServiceNameAttribute();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogWithCompoundServiceAsExpected( catBuilder, docBaseUri, null );
    assertDatasetOneHasOdapAccess( catBuilder );
  }
View Full Code Here

  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/ServiceNameInheritanceTest/childElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithServiceNameInChildElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogWithCompoundServiceAsExpected( catBuilder, docBaseUri, null );
    assertDatasetOneHasOdapAccess( catBuilder );
  }
View Full Code Here

  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/ServiceNameInheritanceTest/metadataElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithServiceNameInMetadataElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogWithCompoundServiceAsExpected( catBuilder, docBaseUri, null );
    assertDatasetOneHasOdapAccess( catBuilder );
  }
View Full Code Here

  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/ServiceNameInheritanceTest/inheritedMetadataElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithServiceNameInInheritedMetadataElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogWithCompoundServiceAsExpected( catBuilder, docBaseUri, null );
    assertDatasetOneHasOdapAccess( catBuilder );
  }
View Full Code Here

TOP

Related Classes of thredds.catalog2.xml.parser.CatalogXmlUtils

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.