Package buri.ddmsence.ddms.extensible

Examples of buri.ddmsence.ddms.extensible.ExtensibleElement

Because it is impossible to cover all of the HTML/JSON/Text output cases for ExtensibleElements, DDMSence will simply print out the existence of extensible elements at the Resource level:

Details about the XOM Element class can be found at: http://www.xom.nu/apidocs/index.html?nu/xom/Element.html

{@table.header History}

In DDMS 2.0, only one element is allowed on the resource. In DDMS 3.0 - 4.1, zero to many may appear. The ExtensibleElement extension point was removed in DDMS 5.0.

{@table.footer}{@table.header Nested Elements}{@child.info any:<extensibleElements>|0..1|10000}{@child.info any:<extensibleElements>|0..*|01110}{@table.footer}{@table.header Attributes}None. {@table.footer}{@table.header Validation Rules}{@ddms.rule An extensible element must not be in the DDMS namespace.|Error|11111}{@table.footer} @author Brian Uri! @since 1.1.0

        catch (InvalidDDMSException e) {
          checkConstructorFailure(false, e);
        }

        // Data-based via Builder, with ExtensibleElement
        ExtensibleElement component = new ExtensibleElement(ExtensibleElementTest.getFixtureElement());
        Resource.Builder builder = getBaseBuilder();
        builder.getExtensibleElements().get(0).setXml(component.toXML());
        getInstance(builder, SUCCESS);
      }

      // Null in component list
      try {
View Full Code Here


      assertEquals(getExpectedJSONOutput(), elementComponent.toJSON());
      assertValidJSON(elementComponent.toJSON());

      if (!version.isAtLeast("5.0")) {
        // ExtensibleElements
        ExtensibleElement component = new ExtensibleElement(ExtensibleElementTest.getFixtureElement());
        Resource.Builder builder = getBaseBuilder();
        builder.getExtensibleElements().get(0).setXml(component.toXML());
        Resource builderComponent = builder.commit();
        assertTrue(builderComponent.toHTML().indexOf(buildHTMLTextOutput(OutputFormat.HTML, "extensible.layer", "true")) != -1);
        assertTrue(builderComponent.toText().indexOf(buildHTMLTextOutput(OutputFormat.TEXT, "extensible.layer", "true")) != -1);
        assertTrue(builderComponent.toJSON().indexOf("\"extensible.layer\":true") != -1);
      }
View Full Code Here

        Elements allElements = element.getChildElements();
        while (allElements.get(index) != component) {
          index++;
        }
        for (int i = index + 1; i < allElements.size(); i++)
          _extensibleElements.add(new ExtensibleElement(allElements.get(i)));
      }
      populatedOrderedList();
      validate();
    }
    catch (InvalidDDMSException e) {
View Full Code Here

TOP

Related Classes of buri.ddmsence.ddms.extensible.ExtensibleElement

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.