Package org.apache.wookie.w3c.impl

Examples of org.apache.wookie.w3c.impl.NameEntity


    // Name
    this.fNamesList = new ArrayList<INameEntity>();
    String title = getValue(gadget, "title", "Untitled Gadget");
    // Override the title with directory title if present (this is intended for gallery use)
    title = getValue(gadget, "directory_title", title);
    NameEntity name = new NameEntity();
    name.setName(title);
    this.fNamesList.add(name);

    // Description
    this.fDescriptionsList = new ArrayList<IDescriptionEntity>();
    String description = getValue(gadget, "description", "Google Gadget");
View Full Code Here


    assertEquals("http://test2",license.getHref());
  }
 
  @Test
  public void name(){
    NameEntity name = new NameEntity("test","tst","en");
    assertEquals("test",name.getName());
    assertEquals("tst", name.getShort());
    assertEquals("en", name.getLang());
    name.setName("test2");
    assertEquals("test2", name.getName());
    name.setShort("t2");
    assertEquals("t2", name.getShort());
  }
View Full Code Here

    // Name
    this.fNamesList = new ArrayList<INameEntity>();
    String title = getValue(gadget, "title", "Untitled Gadget");
    // Override the title with directory title if present (this is intended for gallery use)
    title = getValue(gadget, "directory_title", title);
    NameEntity name = new NameEntity();
    name.setName(title);
    this.fNamesList.add(name);

    // Description
    this.fDescriptionsList = new ArrayList<IDescriptionEntity>();
    String description = getValue(gadget, "description", "Google Gadget");
View Full Code Here

    // Name
    this.fNamesList = new ArrayList<INameEntity>();
    String title = getValue(gadget, "title", "Untitled Gadget");
    // Override the title with directory title if present (this is intended for gallery use)
    title = getValue(gadget, "directory_title", title);
    NameEntity name = new NameEntity();
    name.setName(title);
    this.fNamesList.add(name);

    // Description
    this.fDescriptionsList = new ArrayList<IDescriptionEntity>();
    String description = getValue(gadget, "description", "Google Gadget");
View Full Code Here

    assertEquals("http://test2",license.getHref());
  }
 
  @Test
  public void name(){
    NameEntity name = new NameEntity("test","tst","en");
    assertEquals("test",name.getName());
    assertEquals("tst", name.getShort());
    assertEquals("en", name.getLang());
    name.setName("test2");
    assertEquals("test2", name.getName());
    name.setShort("t2");
    assertEquals("t2", name.getShort());
  }
View Full Code Here

    assertEquals("http://test2",license.getHref());
  }
 
  @Test
  public void name(){
    NameEntity name = new NameEntity("test","tst","en");
    assertEquals("test",name.getName());
    assertEquals("tst", name.getShort());
    assertEquals("en", name.getLang());
    name.setName("test2");
    assertEquals("test2", name.getName());
    name.setShort("t2");
    assertEquals("t2", name.getShort());
  }
View Full Code Here

    // Name
    this.fNamesList = new ArrayList<IName>();
    String title = getValue(gadget, "title", "Untitled Gadget");
    // Override the title with directory title if present (this is intended for gallery use)
    title = getValue(gadget, "directory_title", title);
    NameEntity name = new NameEntity();
    name.setName(title);
    this.fNamesList.add(name);

    // Description
    this.fDescriptionsList = new ArrayList<IDescription>();
    String description = getValue(gadget, "description", "Google Gadget");
View Full Code Here

    assertEquals("http://test2",license.getHref());
  }
 
  @Test
  public void name(){
    NameEntity name = new NameEntity("test","tst","en");
    assertEquals("test",name.getName());
    assertEquals("tst", name.getShort());
    assertEquals("en", name.getLang());
    name.setName("test2");
    assertEquals("test2", name.getName());
    name.setShort("t2");
    assertEquals("t2", name.getShort());
  }
View Full Code Here

    assertEquals("\u202EDESSAP\u202C", FormattingUtils.getEncoded(dir,version));   
  }
 
  @Test
  public void noDirectionEncoded(){
    NameEntity name = new NameEntity();
    name.setName("Hello world");
    assertEquals("Hello world", FormattingUtils.getEncoded(name.getDir(),name.getName()));
    assertEquals(11, FormattingUtils.getFormattedWidgetName(name).length());
 
View Full Code Here

    assertEquals(11, FormattingUtils.getFormattedWidgetName(name).length());
 
 
  @Test
  public void noDirectionFormatted(){
    NameEntity name = new NameEntity();
    name.setDir("ltr");
    name.setName("Hello world");
    assertEquals("Hello world", FormattingUtils.getFormattedWidgetName(name));
  }
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.impl.NameEntity

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.