|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.sasserver.SASProcedureTemplate
public class SASProcedureTemplate
The SASProcedureTemplate class extends Template and is used for creating SAS PROC statements. The SASProcedureTemplate class creates the following template:PROC %PROC %DATASET(DATA=%DATASET, ) %OUTPUT( OUT=%OUTPUT, ); %BY(BY %BY;) %PROCPRINT(,PROC PRINT;) RUN;
In addition, the SASProcedureTemplate class creates a dictionary with entries for the PROC, DATASET, OUTPUT, and BY properties. Users of the class simply set the property values without having to supply a dictionary.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_TEMPLATE
The default template to use in the default constructor. |
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.util.Template |
---|
dlist, hasInitialized |
Constructor Summary | |
---|---|
SASProcedureTemplate()
Construct a SASProcedureTemplate object with the default template. |
|
SASProcedureTemplate(java.lang.String templ)
Construct a SASProcedureTemplate object with the specified template |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a copy of the current model |
java.lang.String |
getBy()
Returns the value of the by property |
java.lang.String |
getDataSet()
Returns the value of the dataSet property |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns the ExtendedBeanInfo for this class. |
java.lang.String |
getOption(java.lang.String opt)
Returns the value of an option(variable) or null if the option does not exist in the dictionary |
java.lang.String |
getOutput()
Returns the value of the output property |
java.lang.String |
getProc()
Returns the value of the proc property |
boolean |
isDefaultModelAttached()
Returns whether the default model is attached. |
boolean |
isProcPrint()
Returns the value of the procprint property |
void |
removeOption(java.lang.String option)
Remove user-defined options |
void |
setBy(java.lang.String s)
Sets the by property |
void |
setDataSet(java.lang.String s)
Sets the dataSet property |
void |
setDefaultValues()
This method sets the initial values to the default values. |
void |
setOption(java.lang.String option,
java.lang.String s)
Sets user-defined options(variables) in the dictionary |
void |
setOutput(java.lang.String s)
Sets the output property |
void |
setProc(java.lang.String s)
Sets the proc property |
void |
setProcPrint(boolean b)
Sets the procprint property |
Methods inherited from class com.sas.util.Template |
---|
attachModel, contentsChanged, detachModel, getClose, getMarker, getOpen, getRequiredInterfaces, getTemplate, getText, initialize, refresh, refresh, setClose, setMarker, setOpen, setTemplate, setText |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final java.lang.String DEFAULT_TEMPLATE
Constructor Detail |
---|
public SASProcedureTemplate()
public SASProcedureTemplate(java.lang.String templ)
templ
- specified templateMethod Detail |
---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Template
java.lang.CloneNotSupportedException
- if the
object cannot be clonedpublic java.lang.String getBy()
public java.lang.String getDataSet()
public java.lang.String getOption(java.lang.String opt)
public java.lang.String getOutput()
public java.lang.String getProc()
public boolean isProcPrint()
public void removeOption(java.lang.String option)
option
- name of option to removepublic void setBy(java.lang.String s)
s
- by property valuepublic void setDataSet(java.lang.String s)
s
- dataSet property valuepublic void setDefaultValues()
setDefaultValues
in interface com.sas.ComponentInterface
setDefaultValues
in class Template
ComponentInterface.setDefaultValues()
public void setOption(java.lang.String option, java.lang.String s)
option
- option names
- option valuepublic void setOutput(java.lang.String s)
s
- output property valuepublic void setProc(java.lang.String s)
s
- proc property valuepublic void setProcPrint(boolean b)
s
- procprint property valuepublic boolean isDefaultModelAttached()
isDefaultModelAttached
in interface com.sas.ViewDefaultModelInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |