Package buri.ddmsence.ddms.resource

Examples of buri.ddmsence.ddms.resource.Creator


  public void testSameVersion() throws InvalidDDMSException {
    DDMSVersion.setCurrentVersion("3.0");
    Organization org = new Organization(Util.getXsListAsList("DISA"), null, null, null, null, null);
    DDMSVersion.setCurrentVersion("2.0");
    try {
      new Creator(org, null, null);
      fail("Allowed invalid data.");
    }
    catch (InvalidDDMSException e) {
      expectMessage(e, "A child component, ddms:Organization");
    }
View Full Code Here


          entity = (Service) inputLoop(Service.class);
        else if (Unknown.getName(version).equals(entityType))
          entity = (Unknown) inputLoop(Unknown.class);

        if (Creator.getName(version).equals(producerType))
          return (new Creator(entity, null, attr));
        if (Contributor.getName(version).equals(producerType))
          return (new Creator(entity, null, attr));
        if (Publisher.getName(version).equals(producerType))
          return (new Publisher(entity, null, attr));
        if (PointOfContact.getName(version).equals(producerType))
          return (new PointOfContact(entity, Util.getXsListAsList(pocTypes), attr));
        throw new InvalidDDMSException("Unknown producerType: " + producerType);
View Full Code Here

      components = element.getChildElements(Type.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
        _types.add(new Type(components.get(i)));
      components = element.getChildElements(Creator.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
        _creators.add(new Creator(components.get(i)));
      components = element.getChildElements(Publisher.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
        _publishers.add(new Publisher(components.get(i)));
      components = element.getChildElements(Contributor.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
View Full Code Here

      Element component = element.getFirstChildElement(Dates.getName(version), getNamespace());
      if (component != null)
        _dates = new Dates(component);
      components = element.getChildElements(Creator.getName(version), getNamespace());
      for (int i = 0; i < components.size(); i++)
        _creators.add(new Creator(components.get(i)));
      components = element.getChildElements(Publisher.getName(version), getNamespace());
      for (int i = 0; i < components.size(); i++)
        _publishers.add(new Publisher(components.get(i)));
      components = element.getChildElements(Contributor.getName(version), getNamespace());
      for (int i = 0; i < components.size(); i++)
View Full Code Here

TOP

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

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.