📄 codegenconfig.java
字号:
package org.jawin.browser.codegen;
/**
* A class that represents an individual Code Generation configation item
*
* <p>Title: Jawin Code Generation GUI</p>
* <p>Description: GUI for exploring type libraries and generating Java code</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: Open Source Incentive</p>
*
* @author Josh Passenger
* @version 1.0
*/
public class CodeGenConfig
{
private String name = null;
private String xpath = null;
private String stylesheet = null;
private String fileNameXPath = null;
private String packageNameXPath = null;
private String saveDirectoryXPath = null;
private String javaEncodingXPath = null;
private String imageName = null;
public CodeGenConfig(String newName, String newXPath, String newFileNameXPath,
String newPackageNameXPath, String newSaveDirectoryXPath, String newJavaEncodingXPath, String newStylesheet,
String newImageName)
{
name = newName;
xpath = newXPath;
fileNameXPath = newFileNameXPath;
packageNameXPath = newPackageNameXPath;
saveDirectoryXPath = newSaveDirectoryXPath;
javaEncodingXPath = newJavaEncodingXPath;
stylesheet = newStylesheet;
imageName = newImageName;
}
/**
* Fetch the name which is generally only going to be useful for debugging
* and logging
*
* @return the name of this CodeGenConfig
*/
public String getName()
{
return name;
}
/**
* Returns the value of xpath which is the query used to fetch nodes to
* generate code for.
*
* @return the value of the xpath which is used to query for
* nodes to generate code for
*/
public String getXPath()
{
return xpath;
}
/**
* Return the location of the stylesheet that is used to generate code for
* every matchng node from the xpath query of the XML document.
*
* @return the location of the stylesheet to use for code generation
*/
public String getStylesheet()
{
return stylesheet;
}
/**
* Fetch the xpath satement that can be used to build the absolute filename for each
* class/interface as they are being processed. The result of this should be used
* as the name of the file to save.
*
* @return the xpath to use to generate the absolute filename for this class
*/
public String getFileNameXPath()
{
return fileNameXPath;
}
/**
* Fetch the xpath satement that can be used to determine the package to save to
*
* @return the xpath to use to determine the package this class belongs to
*/
public String getPackageNameXPath()
{
return packageNameXPath;
}
/**
* Fetch the xpath satement that can be used to determine where the source
* files should be saved to
*
* @return the xpath to use to determine the directory to save source files to
*/
public String getSaveDirectoryXPath()
{
return saveDirectoryXPath;
}
/**
* Fetch the xpath satement that can be used to set the java encoding for each
* class/interface as they are being processed. The result of this should be used
* to set encoding while saving java source files.
*
* @return the xpath to use to java encoding for this class
*/
public String getJavaEncodingXPath()
{
return javaEncodingXPath;
}
public String getImageName()
{
return imageName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -