Package thredds.catalog2.xml.parser.stax

Examples of thredds.catalog2.xml.parser.stax.ThreddsMetadataElementParser$DateElementParser$Factory


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

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

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


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

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

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

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

    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/overrideInheritedWithElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetOverridingInheritedIdAuthorityWithChildElement();

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

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

                 ThreddsXmlParserException
  {
    URI docBaseUri = new URI( docBaseUriString );
    String catalogXml = CatalogXmlUtils.wrapThreddsXmlInContainerDataset( kpXml );

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

    assertNotNull( catBuilder );

    DatasetBuilder dsBldr = CatalogXmlUtils.assertCatalogWithContainerDatasetAsExpected( catBuilder, docBaseUri );
    ThreddsMetadataBuilder tmdBldr = dsBldr.getThreddsMetadataBuilder();
View Full Code Here

                   ThreddsXmlParserException
    {
        URI docBaseUri = new URI( docBaseUriString );
        String catalogXml = CatalogXmlUtils.wrapThreddsXmlInContainerDataset( mdXml );

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

        assertNotNull( catBuilder );

        DatasetBuilder dsBldr = CatalogXmlUtils.assertCatalogWithContainerDatasetAsExpected( catBuilder, docBaseUri );
        ThreddsMetadataBuilder tmdBldr = dsBldr.getThreddsMetadataBuilder();
View Full Code Here

    return CatalogXmlUtils.wrapThreddsXmlInCatalog( sb.toString(), null, null, null );
  }

  private static void assertDatasetOneHasAuthorityOne( CatalogBuilder catBuilder ) {
    DatasetBuilder dsBldr = assertGetDatasetOne( catBuilder );
    assertEquals( "auth1", dsBldr.getIdAuthority() );
  }
View Full Code Here

    DatasetBuilder dsBldr = assertGetDatasetOne( catBuilder );
    assertEquals( "auth1", dsBldr.getIdAuthority() );
  }

  private static void assertDatasetTwoHasNoAuthority( CatalogBuilder catBuilder ) {
    DatasetBuilder dsBldr = assertGetDatasetTwo( catBuilder );
    assertNull( dsBldr.getIdAuthority() );
  }
View Full Code Here

    DatasetBuilder dsBldr = assertGetDatasetTwo( catBuilder );
    assertNull( dsBldr.getIdAuthority() );
  }

  private static void assertDatasetTwoHasAuthorityOne( CatalogBuilder catBuilder ) {
    DatasetBuilder dsBldr = assertGetDatasetTwo( catBuilder );
    assertEquals( "auth1", dsBldr.getIdAuthority() );
  }
View Full Code Here

    DatasetBuilder dsBldr = assertGetDatasetTwo( catBuilder );
    assertEquals( "auth1", dsBldr.getIdAuthority() );
  }

  private static void assertDatasetTwoHasAuthorityTwo( CatalogBuilder catBuilder ) {
    DatasetBuilder dsBldr = assertGetDatasetTwo( catBuilder );
    assertEquals( "auth2", dsBldr.getIdAuthority() );
  }
View Full Code Here

TOP

Related Classes of thredds.catalog2.xml.parser.stax.ThreddsMetadataElementParser$DateElementParser$Factory

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.