Package buri.ddmsence.ddms.resource

Examples of buri.ddmsence.ddms.resource.Organization


  }

  @Test
  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.");
    }
View Full Code Here


      setXOMElement(element, false);
      if (element.getChildElements().size() > 0) {
        Element entityElement = element.getChildElements().get(0);
        String entityType = entityElement.getLocalName();
        if (Organization.getName(getDDMSVersion()).equals(entityType))
          _entity = new Organization(entityElement);
        if (Person.getName(getDDMSVersion()).equals(entityType))
          _entity = new Person(entityElement);
      }
      _securityAttributes = new SecurityAttributes(element);
      validate();
View Full Code Here

        }
        String acronym = readString("the Organization acronym [testAcronym]");

        // Skip optional extensible attributes.

        return (new Organization(names, phones, emails, subOrgs, acronym));
      }
    });
    CONSTRUCTOR_BUILDERS.put(SubOrganization.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String value = readString("the value [testSubOrganization]");
View Full Code Here

      setXOMElement(element, false);
      if (element.getChildElements().size() > 0) {
        Element entityElement = element.getChildElements().get(0);
        String entityType = entityElement.getLocalName();
        if (Organization.getName(getDDMSVersion()).equals(entityType))
          _entity = new Organization(entityElement);
        if (Person.getName(getDDMSVersion()).equals(entityType))
          _entity = new Person(entityElement);
        if (Service.getName(getDDMSVersion()).equals(entityType))
          _entity = new Service(entityElement);
        if (Unknown.getName(getDDMSVersion()).equals(entityType))
View Full Code Here

TOP

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

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.