Examples of Base


Examples of org.apache.abdera.model.Base

    }

    public static Entry republish(Entry entry) {
        if (entry == null)
            return null;
        Base base = entry.getParentElement();
        if (base == null || !(base instanceof Unpublished))
            return null;
        Unpublished unpub = (Unpublished)base;
        Feed feed = unpub.getParentElement();
        Entry newentry = (Entry)entry.clone();
View Full Code Here

Examples of org.apache.abdera.model.Base

    if (dir != null && dir.length() > 0)
      direction = Direction.valueOf(dir.toUpperCase());
    else if (dir == null) {
      // if the direction is unspecified on this element,
      // let's see if we've inherited it
      Base parent = element.getParentElement();
      if (parent != null &&
          parent instanceof Element)
        direction = getDirection((Element)parent);
    }
    return direction;
View Full Code Here

Examples of org.apache.abdera.model.Base

    if (dir != null && dir.length() > 0)
      direction = Direction.valueOf(dir.toUpperCase());
    else if (dir == null) {
      // if the direction is unspecified on this element,
      // let's see if we've inherited it
      Base parent = element.getParentElement();
      if (parent != null &&
          parent instanceof Element)
        direction = getDirection((Element)parent);
    }
    return direction;
View Full Code Here

Examples of org.apache.abdera.model.Base

        return (lang != null) ? new Lang(lang) : null;
    }

    public String getLanguage() {
        String lang = getAttributeValue(LANG);
        Base parent = this.getParentElement();
        return (lang != null) ? lang : (parent != null && parent instanceof Element) ? ((Element)parent).getLanguage()
            : (parent != null && parent instanceof Document) ? ((Document)parent).getLanguage() : null;
    }
View Full Code Here

Examples of org.apache.abdera.model.Base

        for (Iterator i = this.getAllDeclaredNamespaces(); i.hasNext();) {
            OMNamespace omn = (OMNamespace)i.next();
            if (omn.getNamespaceURI().equals(ns) && (omn.getPrefix() != null && omn.getPrefix().equals(prefix)))
                return true;
        }
        Base parent = this.getParentElement();
        if (parent != null && parent instanceof FOMElement) {
            return ((FOMElement)parent).isDeclared(ns, prefix);
        } else
            return false;
    }
View Full Code Here

Examples of org.apache.abdera.model.Base

    }

    public boolean getMustPreserveWhitespace() {
        OMAttribute attr = getAttribute(SPACE);
        String space = (attr != null) ? attr.getAttributeValue() : null;
        Base parent = this.getParentElement();

        return space != null && space.equalsIgnoreCase("preserve") ? true
            : (parent != null && parent instanceof Element) ? ((Element)parent).getMustPreserveWhitespace()
                : (parent != null && parent instanceof Document) ? ((Document)parent).getMustPreserveWhitespace()
                    : true;
View Full Code Here

Examples of org.apache.abdera.model.Base

    @Override
    public Object doTransform(Object src, String outputEncoding) throws TransformerException
    {
        try
        {
            final Base e = (Base) src;

            return new OutputHandler()
            {
                public void write(MuleEvent event, OutputStream out) throws IOException
                {
                    FOMWriterOptions opts = new FOMWriterOptions();
                    opts.setCharset(event.getEncoding());
                    e.writeTo(out, opts);
                }
            };
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.apache.struts2.jquery.components.Base

    protected void populateParams() {
             
      super.populateParams();
     
      Base jQuery = (Base) component;
      jQuery.setHideTopics(hideTopics);
        jQuery.setShowTopics(showTopics);
        jQuery.setRemoveTopics(removeTopics);
        jQuery.setHideDisabled(hideDisabled);
    }
View Full Code Here

Examples of org.bitbucket.rehei.sparqljava.model.Base

    return (T) this;
  }

  @Override
  public IPrefixSelect base(String iri) {
    list.add(new Base(iri));
    return compose(IPrefixSelect.class);
  }
View Full Code Here

Examples of org.docx4j.openpackaging.Base

   * @throws InvalidFormatException
   */
  private void getPart( OpcPackage pkg, RelationshipsPart rp, Relationship r)
      throws Docx4JException, InvalidFormatException, URISyntaxException {
   
    Base source = null;
    String resolvedPartUri = null;
   
    if (r.getTargetMode() == null
        || !r.getTargetMode().equals("External") ) {
     
      // Usual case
     
//      source = r.getSource();
//      resolvedPartUri = URIHelper.resolvePartUri(r.getSourceURI(), r.getTargetURI() ).toString();   
      source = rp.getSourceP();
      resolvedPartUri = URIHelper.resolvePartUri(rp.getSourceURI(), new URI(r.getTarget() ) ).toString();   

      // Don't drop leading "/' in Xml Package
      // resolvedPartUri = resolvedPartUri.substring(1);       

     
    } else {     
      // EXTERNAL
      /* "When set to External, the target attribute may be a relative
       *  reference or a URI.  If the target attribute is a relative
       *  reference, then that reference is interpreted relative to the
       *  location of the package."
       */

      log.info("Encountered external resource " + r.getTarget()
             + " of type " + r.getType() );
     
      // As of 1 May 2008, we don't do anything with these yet.
      // No need to create a Part out of them until such time as
      // we need to read the contents. (External resources don't
      // seem to necessarily be described in [ContentTypes].xml )
     
      // When the document is saved, the relationship is simply
      // written again.
     
      return;
    }
   
    if (handled.get(resolvedPartUri)!=null) return;
   
    String relationshipType = r.getType();   
     
    Part part = getRawPart(ctm, resolvedPartUri,r);
    rp.loadPart(part, r);
    handled.put(resolvedPartUri, resolvedPartUri);
   

    // The source Part (or Package) might have a convenience
    // method for this
    if (source.setPartShortcut(part, relationshipType ) ) {
      log.debug("Convenience method established from " + source.getPartName()
          + " to " + part.getPartName());
    }
   
//    log.info(".. added." );
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.