public void writeDoctype(String name, String publicId, String systemId) { if (this.finished) { return; } DoctypeUnit unit = new DoctypeUnit(this.alias, this.nextTagId(), name, publicId, systemId, faceletsProcessingInstructions.isHtml5Doctype()); this.startUnit(unit); }
public void pushNamespace(String prefix, String uri) { if (log.isLoggable(Level.FINE)) { log.fine("Namespace Pushed " + prefix + ": " + uri); } this.namespaceManager.pushNamespace(prefix, uri); NamespaceUnit unit; if (this.currentUnit() instanceof NamespaceUnit) { unit = (NamespaceUnit) this.currentUnit(); } else { unit = new NamespaceUnit(this.tagLibrary); this.startUnit(unit); } unit.setNamespace(prefix, uri); }
public void pushNamespace(String prefix, String uri) { if (log.isLoggable(Level.FINE)) { log.fine("Namespace Pushed " + prefix + ": " + uri); } this.namespaceManager.pushNamespace(prefix, uri); NamespaceUnit unit; if (this.currentUnit() instanceof NamespaceUnit) { unit = (NamespaceUnit) this.currentUnit(); } else { unit = new NamespaceUnit(this.tagLibrary); this.startUnit(unit); } unit.setNamespace(prefix, uri); }
public void pushNamespace(String prefix, String uri) { if (log.isLoggable(Level.FINE)) { log.fine("Namespace Pushed " + prefix + ": " + uri); } this.namespaceManager.pushNamespace(prefix, uri); NamespaceUnit unit; if (this.currentUnit() instanceof NamespaceUnit) { unit = (NamespaceUnit) this.currentUnit(); } else { unit = new NamespaceUnit(this.tagLibrary); this.startUnit(unit); } unit.setNamespace(prefix, uri); }
public void writeText(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId()); this.startUnit(unit); } unit.write(value); }
public void writeInstruction(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId()); this.startUnit(unit); } unit.writeInstruction(value); }
public void writeInstruction(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText()); this.startUnit(unit); } unit.writeInstruction(value); }
public void writeText(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText()); this.startUnit(unit); } unit.write(value); }
NamespaceUnit nsUnit = this.namespaceManager.toNamespaceUnit(this.tagLibrary); this.units.push(nsUnit); this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and [Trimmed] TagUnit pushed"); this.startUnit(compositeRootCompilationUnit); interfaceCompilationUnit = new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId()); this.startUnit(interfaceCompilationUnit); this.units.push(nsUnit); CompositeComponentUnit compositeRootCompilationUnit = new CompositeComponentUnit(); this.startUnit(compositeRootCompilationUnit); if (interfaceCompilationUnit != null) interfaceCompilationUnit = null; this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and TagUnit pushed"); this.startUnit(new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); this.startUnit(unit);
public void writeComment(String text) { if (this.compiler.isTrimmingComments()) return; if (this.finished) { return; } // don't carelessly add empty tags if (text.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId()); this.startUnit(unit); } unit.writeComment(text); }
NamespaceUnit nsUnit = this.namespaceManager.toNamespaceUnit(this.tagLibrary); this.units.push(nsUnit); this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and [Trimmed] TagUnit pushed"); this.startUnit(compositeRootCompilationUnit); interfaceCompilationUnit = new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId()); this.startUnit(interfaceCompilationUnit); this.units.push(nsUnit); CompositeComponentUnit compositeRootCompilationUnit = new CompositeComponentUnit(); this.startUnit(compositeRootCompilationUnit); if (interfaceCompilationUnit != null) interfaceCompilationUnit = null; this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and TagUnit pushed"); this.startUnit(new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); this.startUnit(unit);
public void writeText(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces()); this.startUnit(unit); } unit.write(value); }
public void writeInstruction(String value) { if (this.finished) { return; } // don't carelessly add empty tags if (value.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces()); this.startUnit(unit); } unit.writeInstruction(value); }
public void writeComment(String text) { if (this.compiler.isTrimmingComments()) return; if (this.finished) { return; } // don't carelessly add empty tags if (text.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText()); this.startUnit(unit); } unit.writeComment(text); }
NamespaceUnit nsUnit = this.namespaceManager.toNamespaceUnit(this.tagLibrary); this.units.push(nsUnit); this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and [Trimmed] TagUnit pushed"); this.startUnit(compositeRootCompilationUnit); interfaceCompilationUnit = new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId()); this.startUnit(interfaceCompilationUnit); this.units.push(nsUnit); CompositeComponentUnit compositeRootCompilationUnit = new CompositeComponentUnit(); this.startUnit(compositeRootCompilationUnit); if (interfaceCompilationUnit != null) interfaceCompilationUnit = null; this.startUnit(new TrimmedTagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); log.fine("New Namespace and TagUnit pushed"); this.startUnit(new TagUnit(this.tagLibrary, qname[0], qname[1], t, this.nextTagId())); faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces()); this.startUnit(unit);
public void writeComment(String text) { if (this.compiler.isTrimmingComments()) { return; } if (this.finished) { return; } // don't carelessly add empty tags if (text.length() == 0) { return; } TextUnit unit; if (this.currentUnit() instanceof TextUnit) { unit = (TextUnit) this.currentUnit(); } else { unit = new TextUnit(this.alias, this.nextTagId(), faceletsProcessingInstructions.isEscapeInlineText(), faceletsProcessingInstructions.isCompressSpaces()); this.startUnit(unit); } unit.writeComment(text); }