Package buri.ddmsence.ddms.resource

Examples of buri.ddmsence.ddms.resource.Identifier


  }

  @Test
  public void testRequireSameVersionSuccess() throws InvalidDDMSException {
    DDMSVersion.setCurrentVersion("2.0");
    Identifier identifier = new Identifier("Test", "Value");
    Identifier identifier2 = new Identifier("Test", "Value");
    Util.requireCompatibleVersion(identifier, identifier2);
  }
View Full Code Here


  @Test
  public void testRequireSameVersionFailure() {
    try {
      DDMSVersion.setCurrentVersion("2.0");
      Identifier identifier = new Identifier("Test", "Value");
      DDMSVersion.setCurrentVersion("3.0");
      Identifier identifier2 = new Identifier("Test", "Value");
      Util.requireCompatibleVersion(identifier, identifier2);
      fail("Allowed different versions.");
    }
    catch (InvalidDDMSException e) {
      expectMessage(e, "A child component, ddms:identifier");
View Full Code Here

    });
    CONSTRUCTOR_BUILDERS.put(Identifier.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String qualifier = readString("the qualifier [testQualifier]");
        String value = readString("the value [testValue]");
        return (new Identifier(qualifier, value));
      }
    });
    CONSTRUCTOR_BUILDERS.put(Title.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String text = readString("the title text [testTitle]");
View Full Code Here

        _metacardInfo = new MetacardInfo(component);
      }
      // Resource Set
      Elements components = element.getChildElements(Identifier.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
        _identifiers.add(new Identifier(components.get(i)));
      components = element.getChildElements(Title.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
        _titles.add(new Title(components.get(i)));
      components = element.getChildElements(Subtitle.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
View Full Code Here

      setXOMElement(element, false);
      DDMSVersion version = getDDMSVersion();
      _identifiers = new ArrayList<Identifier>();
      Elements components = element.getChildElements(Identifier.getName(version), getNamespace());
      for (int i = 0; i < components.size(); i++) {
        _identifiers.add(new Identifier(components.get(i)));
      }
      Element component = element.getFirstChildElement(Dates.getName(version), getNamespace());
      if (component != null)
        _dates = new Dates(component);
      components = element.getChildElements(Creator.getName(version), getNamespace());
View Full Code Here

TOP

Related Classes of buri.ddmsence.ddms.resource.Identifier

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.