com.google.caja.plugin.templates
Class IHTML

java.lang.Object
  extended by com.google.caja.plugin.templates.IHTML

public class IHTML
extends java.lang.Object

Constants relating to the IHTML namespace and its tag structure.

Author:
mikesamuel@gmail.com

Field Summary
static java.lang.String CALLING_CONTEXT_ATTR
          Name of an attribute used to mark the kind of tag within which a template can be called.
static java.lang.String NAMESPACE
          The URI namespace for IHTML elements.
static java.lang.String PREFIX
          The tag prefix reserved for IHTML elements.
static HtmlSchema SCHEMA
           
 
Constructor Summary
IHTML()
           
 
Method Summary
static java.lang.Iterable<org.w3c.dom.Element> allOf(org.w3c.dom.Node root, java.lang.String localName)
           
private static void appendAllOf(org.w3c.dom.Node n, java.lang.String globalName, java.util.List<org.w3c.dom.Element> out)
           
private static void findPlaceholders(org.w3c.dom.Node n, java.util.List<org.w3c.dom.Element> out)
           
static org.w3c.dom.Attr getCallTarget(org.w3c.dom.Element callEl)
           
static org.w3c.dom.Attr getExpr(org.w3c.dom.Element dynEl)
           
static org.w3c.dom.Attr getFormals(org.w3c.dom.Element templateEl)
           
static org.w3c.dom.Attr getInit(org.w3c.dom.Element doEl)
           
static org.w3c.dom.Attr getName(org.w3c.dom.Element ihtmlEl)
           
static java.lang.Iterable<? extends org.w3c.dom.Element> getPlaceholders(org.w3c.dom.Element container)
          All the ihtml:ph and ihtml:eph elements under container, inclusive, in a depth-first traversal.
static org.w3c.dom.Attr getVars(org.w3c.dom.Element doEl)
           
static org.w3c.dom.Attr getWhile(org.w3c.dom.Element doEl)
           
static java.lang.Iterable<java.lang.String> identifiers(java.lang.String idents)
           
static boolean is(Namespaces ns)
           
static boolean is(org.w3c.dom.Node n, java.lang.String localElementName)
          True iff the given node is an IHTML element with the given local name.
static boolean isAttribute(org.w3c.dom.Node n)
           
static boolean isCall(org.w3c.dom.Node n)
           
static boolean isDo(org.w3c.dom.Node n)
           
static boolean isDynamic(org.w3c.dom.Node n)
           
static boolean isElement(org.w3c.dom.Node n)
           
static boolean isElse(org.w3c.dom.Node n)
           
static boolean isEph(org.w3c.dom.Node n)
           
static boolean isIhtml(org.w3c.dom.Node n)
           
static boolean isMessage(org.w3c.dom.Node n)
           
static boolean isPh(org.w3c.dom.Node n)
           
static boolean isSafeIdentifier(java.lang.String ident)
           
static boolean isTemplate(org.w3c.dom.Node n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
The tag prefix reserved for IHTML elements.

See Also:
Constant Field Values

NAMESPACE

public static final java.lang.String NAMESPACE
The URI namespace for IHTML elements.


CALLING_CONTEXT_ATTR

public static final java.lang.String CALLING_CONTEXT_ATTR
Name of an attribute used to mark the kind of tag within which a template can be called.

See Also:
Constant Field Values

SCHEMA

public static final HtmlSchema SCHEMA
Constructor Detail

IHTML

public IHTML()
Method Detail

getPlaceholders

public static java.lang.Iterable<? extends org.w3c.dom.Element> getPlaceholders(org.w3c.dom.Element container)
All the ihtml:ph and ihtml:eph elements under container, inclusive, in a depth-first traversal.


findPlaceholders

private static void findPlaceholders(org.w3c.dom.Node n,
                                     java.util.List<org.w3c.dom.Element> out)

is

public static boolean is(org.w3c.dom.Node n,
                         java.lang.String localElementName)
True iff the given node is an IHTML element with the given local name.


is

public static boolean is(Namespaces ns)

isAttribute

public static boolean isAttribute(org.w3c.dom.Node n)

getName

public static org.w3c.dom.Attr getName(org.w3c.dom.Element ihtmlEl)

isCall

public static boolean isCall(org.w3c.dom.Node n)

getCallTarget

public static org.w3c.dom.Attr getCallTarget(org.w3c.dom.Element callEl)

isDo

public static boolean isDo(org.w3c.dom.Node n)

getInit

public static org.w3c.dom.Attr getInit(org.w3c.dom.Element doEl)

getVars

public static org.w3c.dom.Attr getVars(org.w3c.dom.Element doEl)

getWhile

public static org.w3c.dom.Attr getWhile(org.w3c.dom.Element doEl)

isDynamic

public static boolean isDynamic(org.w3c.dom.Node n)

getExpr

public static org.w3c.dom.Attr getExpr(org.w3c.dom.Element dynEl)

isElement

public static boolean isElement(org.w3c.dom.Node n)

isElse

public static boolean isElse(org.w3c.dom.Node n)

isEph

public static boolean isEph(org.w3c.dom.Node n)

isMessage

public static boolean isMessage(org.w3c.dom.Node n)

isPh

public static boolean isPh(org.w3c.dom.Node n)

isTemplate

public static boolean isTemplate(org.w3c.dom.Node n)

getFormals

public static org.w3c.dom.Attr getFormals(org.w3c.dom.Element templateEl)

isIhtml

public static boolean isIhtml(org.w3c.dom.Node n)

isSafeIdentifier

public static boolean isSafeIdentifier(java.lang.String ident)

identifiers

public static java.lang.Iterable<java.lang.String> identifiers(java.lang.String idents)

allOf

public static java.lang.Iterable<org.w3c.dom.Element> allOf(org.w3c.dom.Node root,
                                                            java.lang.String localName)

appendAllOf

private static void appendAllOf(org.w3c.dom.Node n,
                                java.lang.String globalName,
                                java.util.List<org.w3c.dom.Element> out)


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0