Package org.atomojo.app.client

Examples of org.atomojo.app.client.Text


            Set<String> ids = new TreeSet<String>();
            String base = T_BASE.toString();
            for (Entry entry : feed.getEntriesByTerm(T_LAYOUT)) {
               String id = entry.getId();
               ids.add(id);
               Text text = entry.getContent();
               URI location = text.getElement().getBaseURI().resolve(text.getSourceLink());
               ScriptManager.Entry info = scriptManager.get(id);
               if (info!=null && entry.getEdited().equals(info.getEdited())) {
                  getLogger().info("Script entry "+id+", location="+location+" not modified.");
                  continue;
               }
View Full Code Here


                  getLogger().info("Resource entry "+id+" named "+name+" not modified.");
                  continue;
               }
               String query = null;
               if (queryT==null || queryT.getFirstValue()==null) {
                  Text text = entry.getContent();
                  if (text.getSourceLink()!=null) {
                     URI location = text.getElement().getBaseURI().resolve(text.getSourceLink());
                  }
               } else {
                  query = queryT.getFirstValue();
               }
               MediaType mediaType = mediaTypeT==null ? null : MediaType.valueOf(mediaTypeT.getFirstValue());
View Full Code Here

                  }
               } else if (classTerm!=null) {
                  String className = classTerm.getFirstValue();
                  List<Link> libraryLinks = entry.getLinks().get("library");
                  String href = null;
                  Text text = entry.getContent();
                  if (text!=null) {
                     href = text.getSourceLink();
                  }
                  Class<Application> appClass = null;
                  Class<?> foundClass = null;
                  if ((libraryLinks==null || libraryLinks.size()==0) && href==null) {
                     foundClass = Class.forName(className);
View Full Code Here

                  Entry entry = new Entry(entryDoc);
                  entry.index();
                  if (entry.getTerm(HOST_TERM) == null) {
                     return;
                  }
                  Text text = entry.getContent();
                  if (text == null || !text.isXML()) {
                     getContext().getLogger().warning("Ignoring host entry with missing or has incorrectly typed content for configuration.");
                     return;
                  }
                  Element hostE = text.getContent();
                  if (hostE == null) {
                     getContext().getLogger().warning("Ignoring host entry with empty content.");
                     return;
                  }
View Full Code Here

               }
            }
           
            final Map<String,Boolean> currentEntries = new TreeMap<String,Boolean>();
            for (Entry entry : hostsToDo) {
               Text text = entry.getContent();
               if (text==null || !text.isXML()) {
                  getLogger().warning("Ignoring host entry with missing or has incorrectly typed content for configuration.");
                  continue;
               }
               Element hostE = text.getContent();
               if (hostE==null) {
                  getLogger().warning("Ignoring host entry with empty content.");
                  continue;
               }
View Full Code Here

      }
      try {
         UUID id = UUID.fromString(idS.substring(9));
        
         // check for entry-related media
         Text text = entryObj.getContent();
         File media = null;
         if (text!=null) {
            String src = text.getSourceLink();
            media = new File(file.getParentFile(),src);
            if (!media.exists()) {
               throw new IOException("Cannot find related media "+src+" to entry "+file.getAbsolutePath());
            }
         }
View Full Code Here

                  Entry entry = new Entry(entryDoc);
                  entry.index();
                  if (entry.getTerm(HOST_TERM) == null) {
                     return;
                  }
                  Text text = entry.getContent();
                  if (text == null || !text.isXML()) {
                     getContext().getLogger().warning("Ignoring host entry with missing or has incorrectly typed content for configuration.");
                     return;
                  }
                  Element hostE = text.getContent();
                  if (hostE == null) {
                     getContext().getLogger().warning("Ignoring host entry with empty content.");
                     return;
                  }
View Full Code Here

            Set<String> ids = new TreeSet<String>();
            String base = T_BASE.toString();
            for (Entry entry : feed.getEntriesByTerm(T_LAYOUT)) {
               String id = entry.getId();
               ids.add(id);
               Text text = entry.getContent();
               URI location = text.getElement().getBaseURI().resolve(text.getSourceLink());
               ScriptManager.Entry info = scriptManager.get(id);
               if (info!=null && entry.getEdited().equals(info.getEdited())) {
                  getLogger().info("Script entry "+id+", location="+location+" not modified.");
                  continue;
               }
View Full Code Here

                  getLogger().info("Resource entry "+id+" named "+name+" not modified.");
                  continue;
               }
               String query = null;
               if (queryT==null || queryT.getFirstValue()==null) {
                  Text text = entry.getContent();
                  if (text.getSourceLink()!=null) {
                     URI location = text.getElement().getBaseURI().resolve(text.getSourceLink());
                  }
               } else {
                  query = queryT.getFirstValue();
               }
               MediaType mediaType = mediaTypeT==null ? null : MediaType.valueOf(mediaTypeT.getFirstValue());
View Full Code Here

                  }
               } else if (classTerm!=null) {
                  String className = classTerm.getFirstValue();
                  List<Link> libraryLinks = entry.getLinks().get("library");
                  String href = null;
                  Text text = entry.getContent();
                  if (text!=null) {
                     href = text.getSourceLink();
                  }
                  Class<Application> appClass = null;
                  Class<?> foundClass = null;
                  if ((libraryLinks==null || libraryLinks.size()==0) && href==null) {
                     foundClass = Class.forName(className);
View Full Code Here

TOP

Related Classes of org.atomojo.app.client.Text

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.