Android Open Source - webview-gm Script Metadata






From Project

Back to project page webview-gm.

License

The source code is released under:

Apache License

If you think the Android project webview-gm 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

/*
 *    Copyright 2012 Werner Bayer/*  w ww.j a  va2 s.  c o  m*/
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package at.pardus.android.webview.gm.model;

/**
 * Immutable object containing information about a user script's metadata block.
 * 
 * @see <a href="http://wiki.greasespot.net/Metadata_Block">Metadata Block</a>
 */
public class ScriptMetadata extends ScriptCriteria {

  public static final String RUNATSTART = "document-start";

  public static final String RUNATEND = "document-end";

  private String description;

  private String downloadurl;

  private String updateurl;

  private String installurl;

  private String icon;

  private String runAt;

  private boolean unwrap;

  private String version;

  public ScriptMetadata(String name, String namespace, String[] exclude,
      String[] include, String[] match, String description,
      String downloadurl, String updateurl, String installurl,
      String icon, String runAt, boolean unwrap, String version) {
    super(name, namespace, exclude, include, match);
    this.description = description;
    this.downloadurl = downloadurl;
    this.updateurl = updateurl;
    this.installurl = installurl;
    this.icon = icon;
    this.runAt = runAt;
    this.unwrap = unwrap;
    this.version = version;
    // TODO implement require and resource
  }

  public String getDescription() {
    return description;
  }

  public String getDownloadurl() {
    return downloadurl;
  }

  public String getUpdateurl() {
    return updateurl;
  }

  public String getInstallurl() {
    return installurl;
  }

  public String getIcon() {
    return icon;
  }

  public String getRunAt() {
    return runAt;
  }

  public boolean isUnwrap() {
    return unwrap;
  }

  public String getVersion() {
    return version;
  }

  @Override
  public String toString() {
    return super.toString() + ": " + description;
  }

}




Java Source Code List

at.pardus.android.webview.gm.WebViewGmImpl.java
at.pardus.android.webview.gm.model.ScriptCriteria.java
at.pardus.android.webview.gm.model.ScriptId.java
at.pardus.android.webview.gm.model.ScriptMetadata.java
at.pardus.android.webview.gm.model.Script.java
at.pardus.android.webview.gm.run.WebViewClientGm.java
at.pardus.android.webview.gm.run.WebViewGmApi.java
at.pardus.android.webview.gm.run.WebViewGm.java
at.pardus.android.webview.gm.store.ScriptStoreSQLite.java
at.pardus.android.webview.gm.store.ScriptStore.java
at.pardus.android.webview.gm.store.ui.ScriptBrowser.java
at.pardus.android.webview.gm.store.ui.ScriptEditor.java
at.pardus.android.webview.gm.store.ui.ScriptList.java
at.pardus.android.webview.gm.store.ui.ScriptManagerActivity.java
at.pardus.android.webview.gm.util.CriterionMatcher.java
at.pardus.android.webview.gm.util.UnicodeReader.java