HomeSort by relevance Sort by last modified time
    Searched full:hdf (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/jsilver/src/org/clearsilver/
ClearsilverFactory.java 20 * A factory for constructing new CS and HDF objects. Allows applications to
21 * provide subclasses of HDF or CS to be used by the Java Clearsilver
28 * @param hdf the HDF object to use in constructing the CS object.
31 public CS newCs(HDF hdf);
35 * @param hdf the HDF object to use in constructing the CS object.
36 * @param globalHdf the global HDF object to use in constructing the
40 public CS newCs(HDF hdf, HDF globalHdf)
    [all...]
DelegatedHdf.java 25 * Utility class that delegates all methods of an HDF object. Made to
26 * facilitate the transition to HDF being an interface and thus not
29 * This class, and its subclasses must take care to wrap or unwrap HDF and CS
32 public abstract class DelegatedHdf implements HDF {
34 private final HDF hdf; field in class:DelegatedHdf
36 public DelegatedHdf(HDF hdf) {
37 if (hdf == null) {
38 throw new NullPointerException("Null HDF is not allowed in constructor of DelegatedHdf.")
133 HDF hdf = getHdf().getObj(hdfpath); local
138 HDF hdf = getHdf().getChild(hdfpath); local
143 HDF hdf = getHdf().getRootObj(); local
152 HDF hdf = getHdf().getOrCreateObj(hdfpath); local
165 HDF hdf = getHdf().objChild(); local
170 HDF hdf = getHdf().objNext(); local
    [all...]
HDF.java 25 * This interface establishes the API for an HDF data structure used by
28 public interface HDF extends Closeable {
36 * Loads the contents of the specified HDF file from disk into the current
37 * HDF object. The loaded contents are merged with the existing contents.
54 * Serializes HDF contents to a file (readable by readFile)
59 * Parses/loads the contents of the given string as HDF into the current
60 * HDF object. The loaded contents are merged with the existing contents.
65 * Serializes HDF contents to a string (readable by readString)
70 * Retrieves the integer value at the specified path in this HDF node's
77 * Retrieves the value at the specified path in this HDF node's subtree
    [all...]
DelegatedCs.java 26 * This class, and its subclasses must take care to wrap or unwrap HDF and CS
34 // Give it an empty HDF. We aren't going to be using the super object anyways.
44 * new DelegatedHdf object that wraps the specified HDF object.
46 * @param hdf an HDF object that should be wrapped in a new DelegatedHdf
49 * given HDF object.
51 protected abstract DelegatedHdf newDelegatedHdf(HDF hdf);
53 public void setGlobalHDF(HDF global) {
60 public HDF getGlobalHDF()
61 HDF hdf = getCs().getGlobalHDF(); local
    [all...]
CSUtil.java 30 public static final String HDF_LOADPATHS = "hdf.loadpaths";
34 * provided HDF.
35 * @param hdf an HDF structure containing load paths.
39 public static List<String> getLoadPaths(HDF hdf) {
40 return getLoadPaths(hdf, false);
45 * provided HDF.
46 * @param hdf an HDF structure containing load paths
    [all...]
CSFileLoader.java 29 * @param hdf the HDF structure associated with HDF or CS object making the
34 public String load(HDF hdf, String filename) throws IOException;
CS.java 25 * Specify a new/different global HDF
27 void setGlobalHDF(HDF global);
30 * Return global hdf in use
32 HDF getGlobalHDF();
41 * be located using the HDF's loadpaths.
56 * Generate output from the CS templates and HDF objects that have been read
  /external/jsilver/src/org/clearsilver/jni/
JniClearsilverFactory.java 22 import org.clearsilver.HDF;
43 * {@link org.clearsilver.HDF} object to the {@link org.clearsilver.CS}
46 * Developers that want strict checking that the HDF passed to newCs matches
47 * HDF objects constructed by newHDF may want to pass in {@code false}.
49 * @param unwrapDelegatedHdfs true if {@link org.clearsilver.HDF}s passed to
59 * @param hdf the HDF object to use in constructing the CS object.
62 public CS newCs(HDF hdf) {
64 hdf = DelegatedHdf.getFullyUnwrappedHdf(hdf)
    [all...]
JniHdf.java 20 import org.clearsilver.HDF;
28 * This class is a wrapper around the HDF C API. Many features of the C API
31 public class JniHdf implements HDF {
33 long hdfptr; // stores the C HDF* pointer
34 JniHdf root; // If this is a child HDF node, points at the root node of
43 static JniHdf cast(HDF hdf) {
44 if (!(hdf instanceof JniHdf)) {
45 throw new IllegalArgumentException("HDF object not of type JniHdf. "
47 + "related HDF and CS objects.")
    [all...]
JniCs.java 21 import org.clearsilver.HDF;
54 // Specify a new/different global HDF
55 public void setGlobalHDF(HDF global) {
61 // Return global hdf in use
62 public HDF getGlobalHDF() {
80 * be located using the HDF's loadpaths.
  /external/doclava/src/com/google/doclava/
DocFile.java 75 public static void writePage(String docfile, String relative, String outfile, Data hdf) {
81 if (hdf == null) {
82 hdf = Doclava.makeHDF();
103 hdf.setValue(key, value);
119 String fromTemplate = hdf.getValue("template.which", "");
120 String fromPage = hdf.getValue("page.onlyfortemplate", "");
131 TagInfo.makeHDF(hdf, "root.descr", tags);
133 hdf.setValue("commentText", commentText);
137 String fromWhichmodule = hdf.getValue("android.whichmodule", "");
140 hdf.setValue("online-pdk", "true")
    [all...]
SampleCode.java 67 Data hdf = Doclava.makeHDF(); local
68 hdf.setValue("samples", "true");
69 hdf.setValue("projectDir", mProjectDir);
70 writeProjectDirectory(filelist, f, mDest, false, hdf, "Files.");
71 writeProjectStructure(name, hdf);
72 hdf.removeTree("parentdirs");
73 hdf.setValue("parentdirs.0.Name", name);
75 Node rootNode = writeProjectIndexCs(hdf, f, null, new Node(mProjectDir,
109 public void writeProjectDirectory(List<Node> parent, File dir, String relative, Boolean recursed, Data hdf, String newkey) {
148 hdf.setValue("samples", "true");//dd needed
302 Data hdf = Doclava.makeHDF(); local
328 Data hdf = Doclava.makeHDF(); local
690 Data hdf = writeIndex(dir); local
713 Data hdf = writeIndex(dir); local
724 Data hdf = Doclava.makeHDF(); local
    [all...]
Hierarchy.java 26 public static void makeHierarchy(Data hdf, ClassInfo[] classes) {
59 hdf.setValue("classes.0", "");
60 hdf.setValue("colspan", "" + depth);
62 recurse(nodes, "java.lang.Object", hdf.getChild("classes.0"), depth, depth);
94 private static void recurse(HashMap<String, TreeSet<String>> nodes, String name, Data hdf,
98 hdf.setValue("indent", "" + (totalDepth - remainingDepth - 1));
99 hdf.setValue("colspan", "" + remainingDepth);
103 hdf.setValue("class.label", cl.name());
104 hdf.setValue("class.qualified", cl.qualifiedName());
106 hdf.setValue("class.link", cl.htmlPage())
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/adaptor/
JHdf.java 26 import org.clearsilver.HDF;
35 * Adaptor that wraps a JSilver Data object so it can be used as an HDF object.
37 public class JHdf implements HDF {
56 static JHdf cast(HDF hdf) {
57 if (!(hdf instanceof JHdf)) {
58 throw new IllegalArgumentException("HDF object not of type JHdf. "
60 + "related HDF and CS objects.");
62 return (JHdf) hdf;
114 throw new JSilverBadSyntaxException("HDF parsing error : '" + errorMessage + "'"
    [all...]
JSilverFactory.java 27 import org.clearsilver.HDF;
30 * ClearsilverFactory that adapts JSilver for use as any HDF/CS rendering engine.
80 public JCs newCs(HDF hdf) {
82 hdf = DelegatedHdf.getFullyUnwrappedHdf(hdf);
84 return new JCs(JHdf.cast(hdf), jSilver, loadPathCache);
88 public JCs newCs(HDF hdf, HDF globalHdf)
    [all...]
ResourceLoaderAdaptor.java 39 private final JHdf hdf; field in class:ResourceLoaderAdaptor
44 ResourceLoaderAdaptor(JHdf hdf, LoadPathToFileCache loadPathCache, CSFileLoader csFileLoader) {
45 this.hdf = hdf;
53 if (hdf.getData() == null) {
54 throw new IllegalStateException("HDF is already closed");
56 return new StringReader(csFileLoader.load(hdf, name));
211 if (hdf.getData() == null) {
212 throw new IllegalStateException("HDF is already closed");
214 loadPaths = CSUtil.getLoadPaths(hdf, true)
    [all...]
JCs.java 29 import org.clearsilver.HDF;
46 JCs(JHdf hdf, JSilver jSilver, LoadPathToFileCache loadPathCache) {
47 this.localHdf = hdf;
63 public void setGlobalHDF(HDF global) {
68 public HDF getGlobalHDF() {
128 // the new modification protection for global HDF.
138 // For Clearsilver compatibility we check this HDF variable to see if we
  /external/jsilver/src/com/google/clearsilver/jsilver/compatibility/
ClearsilverRenderer.java 28 import org.clearsilver.HDF;
63 public String load(HDF hdf, String filename) throws IOException {
68 HDF hdf = factory.newHdf(); local
70 // Copy the Data into the HDF.
71 hdf.readString(data.toString());
73 CS cs = factory.newCs(hdf);
82 hdf.close();
  /external/jsilver/src/com/google/clearsilver/jsilver/data/
LocalAndGlobalData.java 29 * Creates a Data object that encapsulates both request-scoped local HDF and an application
30 * global-scoped HDF that can be read from the template renderer. Part of the backwards
33 * @param local the request-specific HDF data that takes priority.
34 * @param global application global HDF data that should be read but not written to from the
42 * Creates a Data object that encapsulates both request-scoped local HDF and an application
43 * global-scoped HDF that can be read from the template renderer. Part of the backwards
44 * compatibility with JNI Clearsilver and its globalHdf support. We wrap the global HDF in an
47 * @param local the request-specific HDF data that takes priority.
48 * @param global application global HDF data that should be read but not written to from the
Data.java 27 * This is the JSilver equivalent to ClearSilver's HDF object.
34 * Returns the name of this HDF node. The root node has no name, so calling this on the root node
40 * Returns the value of this HDF node, or null if this node has no value. Every node in the tree
46 * Returns the integer value of this HDF node, or 0 if this node has no value.
56 * Returns the boolean value of this HDF node, or false if this node has no value.
157 * Retrieves the HDF object that is the root of the subtree at hdfpath, create the subtree if it
209 * Retrieves the value at the specified path in this HDF node's subtree.
214 * Retrieves the integer value at the specified path in this HDF node's subtree. If the value does
220 * Retrieves the value at the specified path in this HDF node's subtree. If not found, returns
226 * Retrieves the value at the specified path in this HDF node's subtree. If not found or invalid
    [all...]
DataFactory.java 35 * Loads data in Hierarchical Data Format (HDF) into an existing Data object.
41 * Loads data in Hierarchical Data Format (HDF) into a new Data object.
46 * Returns the Parser used by this factory to parse the HDF content.
AbstractData.java 47 * Retrieves the value at the specified path in this HDF node's subtree.
62 * Retrieves the integer value at the specified path in this HDF node's subtree. If the value does
82 * Retrieves the value at the specified path in this HDF node's subtree. If not found, returns
90 * Retrieves the value at the specified path in this HDF node's subtree. If not found or invalid,
98 * Retrieves the value at the specified path in this HDF node's subtree. If not found or invalid,
106 * Sets the value at the specified path in this HDF node's subtree.
  /external/jsilver/src/com/google/clearsilver/jsilver/examples/basic/
JSilverTest.java 28 * Usage: JSilverTest file.cs [file.hdf file2.hdf ...]
33 System.out.println("Usage: JSilverTest file.cs [file.hdf file2.hdf ...]");
  /external/jsilver/src/com/google/clearsilver/jsilver/
DataLoader.java 35 * Loads data in Hierarchical Data Format (HDF) into an existing Data object.
41 * Loads data in Hierarchical Data Format (HDF) into a new Data object.
  /external/jsilver/src/com/google/clearsilver/jsilver/functions/structure/
SubcountFunction.java 26 * Returns the number of child nodes for the HDF variable.
31 * @param args A variable value referring to an HDF node

Completed in 213 milliseconds

1 2 3