Android Open Source - penmanship Base Handler






From Project

Back to project page penmanship.

License

The source code is released under:

Apache License

If you think the Android project penmanship listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mindsnacks.penmanship.group_handlers;
/*  w  ww  .j  av a  2 s. c o  m*/
import com.mindsnacks.penmanship.AndroidXMLNode;
import org.pegdown.ast.Node;

/** Created by Tony Cosentini Date: 12/4/13 Time: 11:50 AM */
public abstract class BaseHandler {
  protected Node rootNode;
  protected String namespace;
  protected String customURIScheme;

  protected BaseHandler(Builder builder) {
    this.rootNode = builder.rootNode;
    this.namespace = builder.namespace;
    this.customURIScheme = builder.customURIScheme;
  }

  public abstract AndroidXMLNode render();

  public abstract static class Builder {
    private Node rootNode;
    private String namespace;
    private String customURIScheme;

    public Builder(Node rootNode) {
      this.rootNode = rootNode;
    }

    public Builder namespace(String namespace) {
      this.namespace = namespace;
      return this;
    }

    public Builder customURIScheme(String customURIScheme) {
      this.customURIScheme = customURIScheme;
      return this;
    }

    public abstract BaseHandler build();
  }
}




Java Source Code List

com.mindsnacks.penmanship.AndroidMarkdownVisitor.java
com.mindsnacks.penmanship.AndroidXMLConstants.java
com.mindsnacks.penmanship.AndroidXMLNode.java
com.mindsnacks.penmanship.BaseVisitor.java
com.mindsnacks.penmanship.Penmanship.java
com.mindsnacks.penmanship.Penmanship.java
com.mindsnacks.penmanship.group_handlers.BaseHandler.java
com.mindsnacks.penmanship.group_handlers.ImageGroupHandler.java
com.mindsnacks.penmanship.group_handlers.TextNodeGroupHandler.java
com.penmanship.example.MainActivity.java