org.apache.commons.jelly.tags.xml
Class DoctypeTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.xpath.XPathTagSupport
|
+--org.apache.commons.jelly.tags.xml.DoctypeTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class DoctypeTag
- extends org.apache.commons.jelly.xpath.XPathTagSupport
A tag which outputs a DOCTYPE declaration to the current XML output pipe.
Note that there should only be a single DOCTYPE declaration in any XML stream and
it should occur before any element content.
- Version:
- $Revision: 1.5 $
- Author:
- James Strachan
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.String |
getName()
Returns the name. |
java.lang.String |
getPublicId()
Returns the publicId. |
java.lang.String |
getSystemId()
Returns the systemId. |
void |
setName(java.lang.String name)
Sets the document type name of the DOCTYPE |
void |
setPublicId(java.lang.String publicId)
Sets the declared public identifier for DTD |
void |
setSystemId(java.lang.String systemId)
Sets the declared system identifier for the DTD |
Methods inherited from class org.apache.commons.jelly.xpath.XPathTagSupport |
getXPathContext |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoctypeTag
public DoctypeTag()
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Overrides:
doTag
in class org.apache.commons.jelly.TagSupport
getName
public java.lang.String getName()
- Returns the name.
- Returns:
- String
getPublicId
public java.lang.String getPublicId()
- Returns the publicId.
- Returns:
- String
getSystemId
public java.lang.String getSystemId()
- Returns the systemId.
- Returns:
- String
setName
public void setName(java.lang.String name)
- Sets the document type name of the DOCTYPE
setPublicId
public void setPublicId(java.lang.String publicId)
- Sets the declared public identifier for DTD
setSystemId
public void setSystemId(java.lang.String systemId)
- Sets the declared system identifier for the DTD
Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.