Package buri.ddmsence.ddms

Examples of buri.ddmsence.ddms.Resource


    // Skip security, which was removed after DDMS 4.1.

    // Skip optional extensible elements.

    printHead("ddms:resource Attributes (all required)");
    Resource resource = (Resource) inputLoop(Resource.class);
    println("The DDMS Resource is valid!");
    if (resource.getValidationWarnings().isEmpty())
      println("No warnings were recorded.");
    else {
      println("The following warnings were recorded:");
      for (ValidationMessage warning : resource.getValidationWarnings())
        println("   [WARNING] " + warning.getLocator() + ": " + warning.getText());
    }

    printHead("Saving the Resource");
    if (confirm("Would you like to save this file?")) {
View Full Code Here


      }
    });
    CONSTRUCTOR_BUILDERS.put(Resource.class, new IConstructorBuilder() {
      public IDDMSComponent build() throws IOException, InvalidDDMSException {
        String compliesWith = readString("the Resource compliesWith [DDMSRules]");
        return (new Resource(getTopLevelComponents(), null, null, Util.getXsListAsList(compliesWith), null,
          null, null, null, null));
      }
    });
  }
View Full Code Here

   * @return a DDMS Resource
   * @throws InvalidDDMSException if the component could not be built
   */
  protected Resource buildResource(Element xomElement) throws InvalidDDMSException {
    DDMSVersion.setCurrentVersion(DDMSVersion.getVersionForNamespace(xomElement.getNamespaceURI()).getVersion());
    return (new Resource(xomElement));
  }
View Full Code Here

TOP

Related Classes of buri.ddmsence.ddms.Resource

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.