|
XDC - v. 0.6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xdc.processing.XdcSource
This class represents an XML source file which is to be processed by the XDC tool.
| Constructor Summary | |
XdcSource(java.io.File file,
java.io.File sourceDir,
java.lang.String packageName,
DialectHandler handler)
Public constructor. |
|
| Method Summary | |
void |
addPattern(XPathPattern pattern)
This method stores an XPathPattern (corresponding to
a link with an XPath expression anchor) in this XdcSource. |
static void |
clearProcessingProperties(java.util.Properties props)
This method clears all file specific key-value pairs set in setProcessingProperties(Properties, String, String). |
int |
compareTo(java.lang.Object obj)
This method compares this XdcSource with another one by(1) their file names and (2) the names of their respective packages. |
boolean |
equals(java.lang.Object o)
This method determines whether this XdcSource is equal to
another such object by comparing their respective File objects. |
DialectHandler |
getDialectHandler()
Getter method for this XdcSource's DialectHandler
object. |
java.io.File |
getFile()
Getter method for this XdcSource's File object. |
java.lang.String |
getFileName()
Getter method for this XdcSource's output file name. |
java.lang.String |
getPackageName()
Getter method for this XdcSource's package name. |
java.util.Properties |
getPatterns()
This method retrieves all XPathPattern objects
stored in this XdcSource in the form of a
Properties object (where the links in the
source file make up the keys and the XPathPattern
values make up the values). |
java.lang.String |
getRootComment()
Getter method for this XdcSource's root comment String. |
java.io.File |
getSourceDir()
Getter method for this XdcSource's source directory. |
java.lang.String |
getSourceFileName()
Getter method for this XdcSource's source file name. |
int |
hashCode()
This method delegates to the hashCode() method of this
XdcSource's File object. |
void |
setProcessingProperties(java.util.Properties props,
java.lang.String prevFileName,
java.lang.String nextFileName)
This method is used to set file specific properties in a given Properties object. |
void |
setRootComment(java.lang.String rootComment)
Setter method for this XdcSource's root comment String. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XdcSource(java.io.File file,
java.io.File sourceDir,
java.lang.String packageName,
DialectHandler handler)
file - The File object of this XdcSourcesourceDir - The source directory in whose subdirectory tree this
XdcSource lies. Note that this does not
necessarily mean that this XdcSource lies
directly in the source directory (unless the
packageName parameter is the empty String).packageName - The name of the package in which this
XdcSource lieshandler - The DialectHandler which controls with which
stylesheet this XdcSource is processed| Method Detail |
public java.io.File getFile()
XdcSource's File object.
File object of this XdcSourcepublic java.io.File getSourceDir()
XdcSource's source directory.
XdcSourcepublic java.lang.String getPackageName()
XdcSource's package name.
XdcSourcepublic DialectHandler getDialectHandler()
XdcSource's DialectHandler
object.
DialectHandler object of this XdcSourcepublic java.lang.String getRootComment()
XdcSource's root comment String.
XdcSourcepublic void setRootComment(java.lang.String rootComment)
XdcSource's root comment String.
rootComment - The root comment String of this XdcSourcepublic java.lang.String getSourceFileName()
XdcSource's source file name.
XdcSourcepublic java.lang.String getFileName()
XdcSource's output file name.
XdcSourcepublic void addPattern(XPathPattern pattern)
XPathPattern (corresponding to
a link with an XPath expression anchor) in this XdcSource.
pattern - The XPathPattern to be stored in
this XdcSourcepublic java.util.Properties getPatterns()
XPathPattern objects
stored in this XdcSource in the form of a
Properties object (where the links in the
source file make up the keys and the XPathPattern
values make up the values).
Properties object containing all of
this XdcSource's XPathPatterns.public boolean equals(java.lang.Object o)
XdcSource is equal to
another such object by comparing their respective File objects.
o - An object this XdcSource is to be compared to
XdcSource and the one passed as
parameter have the same File object; false
otherwisepublic int hashCode()
hashCode() method of this
XdcSource's File object.
XdcSource's File
object
public void setProcessingProperties(java.util.Properties props,
java.lang.String prevFileName,
java.lang.String nextFileName)
Properties object. This object can then be passed to the
XSLT stylesheet responsible for processing the XML file.
props - The Properties object to be modifiedprevFileName - The name of the file linked via the PREV FILE
hyperlinknextFileName - The name of the file linked via the NEXT FILE
hyperlinkpublic static void clearProcessingProperties(java.util.Properties props)
setProcessingProperties(Properties, String, String).
props - The Properties object to be modifiedpublic int compareTo(java.lang.Object obj)
XdcSource with another one by
compareTo in interface java.lang.Comparableobj - Another XdcSource object
|
XDC - v. 0.6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||