Package org.apache.wookie.w3c

Examples of org.apache.wookie.w3c.IDescriptionEntity


        if (isFirstLocalizedEntity(fNamesList,aName)) fNamesList.add(aName);
      }
     
      // DESCRIPTION IS OPTIONAL multiple on xml:lang
      if(tag.equals(IW3CXMLConfiguration.DESCRIPTION_ELEMENT)) {       
        IDescriptionEntity aDescription = new DescriptionEntity();
        aDescription.fromXML(child);
        // add it to our list only if its not a repetition of an
        // existing description for the locale and the language tag is valid
        if (isFirstLocalizedEntity(fDescriptionsList,aDescription) && aDescription.isValid()) fDescriptionsList.add(aDescription);
      }
     
      // AUTHOR IS OPTIONAL - can only be one, ignore subsequent repetitions
      if(tag.equals(IW3CXMLConfiguration.AUTHOR_ELEMENT) && fAuthor == null) {
        fAuthor = new AuthorEntity();
View Full Code Here


    return getLicense(widget).getHref();   
  }
 
  private String getDescription(W3CWidget widget){
    IDescriptionEntity[] descs = widget.getDescriptions().toArray(new IDescriptionEntity[widget.getDescriptions().size()]);
    IDescriptionEntity desc = (IDescriptionEntity) LocalizationUtils.getLocalizedElement(descs, null, widget.getDefaultLocale());
    return desc.getDescription();
  }
View Full Code Here

  // descriptions
  @Test
  public void descriptions(){

    W3CWidget widget;
    IDescriptionEntity description;
    String dir;
    String test;
   
    dir ="lro";
    test = "003";
View Full Code Here

    return getLicense(widget).getHref();   
  }
 
  private String getDescription(W3CWidget widget){
    IDescriptionEntity[] descs = widget.getDescriptions().toArray(new IDescriptionEntity[widget.getDescriptions().size()]);
    IDescriptionEntity desc = (IDescriptionEntity) LocalizationUtils.getLocalizedElement(descs, null);
    return desc.getDescription();
  }
View Full Code Here

    return getLicense(widget).getHref();   
  }
 
  private String getDescription(W3CWidget widget){
    IDescriptionEntity[] descs = widget.getDescriptions().toArray(new IDescriptionEntity[widget.getDescriptions().size()]);
    IDescriptionEntity desc = (IDescriptionEntity) LocalizationUtils.getLocalizedElement(descs, null, widget.getDefaultLocale());
    return desc.getDescription();
  }
View Full Code Here

        if (isFirstLocalizedEntity(fNamesList,aName)) fNamesList.add(aName);
      }
     
      // DESCRIPTION IS OPTIONAL multiple on xml:lang
      if(tag.equals(IW3CXMLConfiguration.DESCRIPTION_ELEMENT)) {       
        IDescriptionEntity aDescription = new DescriptionEntity();
        aDescription.fromXML(child);
        // add it to our list only if its not a repetition of an
        // existing description for the locale and the language tag is valid
        if (isFirstLocalizedEntity(fDescriptionsList,aDescription) && aDescription.isValid()) fDescriptionsList.add(aDescription);
      }
     
      // AUTHOR IS OPTIONAL - can only be one, ignore subsequent repetitions
      if(tag.equals(IW3CXMLConfiguration.AUTHOR_ELEMENT) && fAuthor == null) {
        fAuthor = new AuthorEntity();
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.IDescriptionEntity

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.