Package buri.ddmsence.ddms.summary.xlink

Examples of buri.ddmsence.ddms.summary.xlink.XLinkAttributes


    element.appendChild(IdentifierTest.getFixture().getXOMElementCopy());
    element.appendChild(TitleTest.getFixture().getXOMElementCopy());
    element.appendChild(CreatorTest.getFixture().getXOMElementCopy());
    element.appendChild(SubjectCoverageTest.getFixture().getXOMElementCopy());

    Link link = new Link(new XLinkAttributes("http://en.wikipedia.org/wiki/Tank", "role", null, null));

    // #1: a ddms:relatedResources containing 1 ddms:RelatedResource
    Element rel1 = Util.buildDDMSElement(RelatedResource.getName(version), null);
    Util.addDDMSAttribute(rel1, "relationship", "http://purl.org/dc/terms/references");
    Element innerElement = Util.buildDDMSElement("RelatedResource", null);
View Full Code Here


   * Returns a fixture object for testing.
   */
  public static RelatedResource getFixture() {
    try {
      List<Link> links = new ArrayList<Link>();
      links.add(new Link(new XLinkAttributes("http://en.wikipedia.org/wiki/Tank", "role", null, null)));
      return (new RelatedResource(links, "http://purl.org/dc/terms/references", "outbound",
        "http://purl.org/dc/terms/URI", "http://en.wikipedia.org/wiki/Tank", null));
    }
    catch (InvalidDDMSException e) {
      fail("Could not create fixture: " + e.getMessage());
View Full Code Here

      builder = getBaseBuilder();
      builder.setValue(DIFFERENT_VALUE);
      assertFalse(elementComponent.equals(builder.commit()));
     
      builder = getBaseBuilder();
      XLinkAttributes attr = XLinkAttributesTest.getLocatorFixture();
      builder.getLinks().get(1).setXLinkAttributes(new XLinkAttributes.Builder(attr));
      assertFalse(elementComponent.equals(builder.commit()));     
    }
  }
View Full Code Here

   * @param element the XOM element representing this
   * @throws InvalidDDMSException if any required information is missing or malformed
   */
  public Link(Element element) throws InvalidDDMSException {
    try {
      _xlinkAttributes = new XLinkAttributes(element);
      _securityAttributes = new SecurityAttributes(element);
      setXOMElement(element, true);
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
View Full Code Here

   * @param element the XOM element representing this
   * @throws InvalidDDMSException if any required information is missing or malformed
   */
  public TaskID(Element element) throws InvalidDDMSException {
    try {
      _xlinkAttributes = new XLinkAttributes(element);
      setXOMElement(element, true);
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
      throw (e);
View Full Code Here

      }
      String revisionID = element.getAttributeValue(REVISION_ID_NAME, getNamespace());
      if (!Util.isEmpty(revisionID)) {
        _revisionID = Integer.valueOf(revisionID);
      }
      _xlinkAttributes = new XLinkAttributes(element);
      _securityAttributes = new SecurityAttributes(element);
      validate();
    }
    catch (InvalidDDMSException e) {
      e.setLocator(getQualifiedName());
View Full Code Here

TOP

Related Classes of buri.ddmsence.ddms.summary.xlink.XLinkAttributes

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.