Package com.agiletec.aps.system.common.entity.model.attribute

Examples of com.agiletec.aps.system.common.entity.model.attribute.HypertextAttribute


      if(JpaddressbookSystemConstants.ATTRIBUTE_TYPE_ENUMERATOR.equals(attributeType)){
        EnumeratorAttribute textAttribute = (EnumeratorAttribute) attribute;
        attributeValue = textAttribute.getText();
      }
      if(JpaddressbookSystemConstants.ATTRIBUTE_TYPE_HYPERTEXT.equals(attributeType)){
        HypertextAttribute hyperTextAttribute = (HypertextAttribute)attribute;
        attributeValue = hyperTextAttribute.getText();
      }
      if(JpaddressbookSystemConstants.ATTRIBUTE_TYPE_LONGTEXT.equals(attributeType)){
        TextAttribute textAttribute = (TextAttribute) attribute;
        attributeValue = textAttribute.getText();
      }
View Full Code Here


    assertEquals(entries.size(), contents.size());
    Content content = contents.get(0);
    assertEquals("Burnout", content.getDescr());
    TextAttribute titleAttr = (TextAttribute) content.getAttribute("Title");
    LinkAttribute  linkAttr = (LinkAttribute) content.getAttribute("Link");
    HypertextAttribute corpoAttr = (HypertextAttribute) content.getAttribute("TextBody");
    assertEquals("Burnout", titleAttr.getText());
    assertEquals("http://www.alistapart.com/articles/burnout/", linkAttr.getSymbolicLink().getUrlDest());
    assertTrue(corpoAttr.getText().startsWith("Does every day feel like a bad day"));

    Content content1 = contents.get(2);
    assertEquals("Descrizione non disponibile", content1.getDescr());
    TextAttribute titleAttr1 = (TextAttribute) content1.getAttribute("Title");
    LinkAttribute  linkAttr1 = (LinkAttribute) content1.getAttribute("Link");
    HypertextAttribute corpoAttr1 = (HypertextAttribute) content1.getAttribute("TextBody");
    assertEquals("Titolo non disponibile", titleAttr1.getText());
    assertEquals("http://www.alistapart.com/articles/taking-the-guesswork-out-of-design/", linkAttr1.getSymbolicLink().getUrlDest());
    assertEquals("Corpo testo non disponibile", corpoAttr1.getText());
  }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.common.entity.model.attribute.HypertextAttribute

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.