Generic subtask for processing a user-supplied template, to generate an XML document.
copyAttributesFrom
public void copyAttributesFrom(TemplateSubTask templateSrc)
Describe what the method does
- copyAttributesFrom in interface TemplateSubTask
templateSrc
- Describe what the parameter does
getDtdURL
public URL getDtdURL()
Gets the DtdURL attribute of the XmlSubTask object.
- The DtdURL value
getPublicId
public String getPublicId()
Gets the PublicId attribute of the XmlSubTask object.
- The PublicId value
getSchema
public String getSchema()
Gets the Schema attribute of the XmlSubTask object.
- The Schema value
getSystemId
public String getSystemId()
Gets the SystemId attribute of the XmlSubTask object.
- The SystemId value
getUseIds
public boolean getUseIds()
Gets the UseIds attribute of the XmlSubTask object.
- The UseIds value
getXmlencoding
public String getXmlencoding()
Gets the Xmlencoding attribute of the XmlSubTask object.
- The Xmlencoding value
isValidateXML
public boolean isValidateXML()
Gets the ValidateXML attribute of the XmlSubTask object.
- The ValidateXML value
setDtdURL
protected void setDtdURL(URL dtdURL)
Sets the DtdURL attribute of the XmlSubTask object.
dtdURL
- The new DtdURL value
setPublicId
protected void setPublicId(String publicId)
The PUBLIC ID of the DTD to which the generated document should conform.
publicId
- The new PublicId value
setSchema
public void setSchema(String schema)
The XML Schema to which the generated document should conform.
schema
- The new Schema value
setSystemId
protected void setSystemId(String systemId)
The SYSTEM ID of the DTD to which the generated document should conform.
systemId
- The new SystemId value
setUseIds
public void setUseIds(boolean useIds)
If this attribute is set to true, XDoclet will generate id attributes in the XML document. Note that this is only
available in some subtasks.
useIds
- The new UseIds value
- "No. Default is 'false'"
setValidateXML
public void setValidateXML(boolean flag)
If this is set to true, the generated XML will be validated against its DTD or XML Schema.
flag
- The new Validatexml value
- No,defaultis
false.
setXmlencoding
public void setXmlencoding(String xmlEncoding)
The encoding of the produced xml file. If your XML file uses international characters, you might want to set this
to "ISO-8859-1".
xmlEncoding
- The new Xmlencoding value
- "No, default is 'UTF-8'"