|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.XDataSource
inetsoft.uql.util.HierDataSource
inetsoft.uql.xml.XMLDataSource
public class XMLDataSource
XML data source.
| Field Summary |
|---|
| Fields inherited from class inetsoft.uql.util.HierDataSource |
|---|
GET, POST |
| Fields inherited from class inetsoft.uql.XDataSource |
|---|
CORBA, DOMAIN_DB2, DOMAIN_NONE, DOMAIN_ORACLE, DOMAIN_SQL, DOMAIN_SQLSERVER, EJB, JDBC, OBJECT, SAP, SOAP, TEXT, XML, XMLA |
| Constructor Summary | |
|---|---|
|
XMLDataSource()
Create a XML data source. |
protected |
XMLDataSource(String type)
Create a XML data source. |
| Method Summary | |
|---|---|
void |
addRequest(String item)
Add a request to the data source. |
Object |
clone()
Create a clone of this object. |
String |
getCurrentRequestName()
Get the current selected request name. |
String |
getDTD()
Get the DTD of this data source. |
String |
getDTD(boolean runtime)
Get the DTD of this data source. |
String |
getMethod()
Get the HTTP method for this query. |
UserVariable[] |
getParameters()
Get the data source connection parameters. |
String |
getRequest(int idx)
Get the data source item name. |
int |
getRequestCount()
Get the number of requests. |
String |
getRequestEncode(String qname)
Get the encode of the specified request. |
XTypeNode |
getRequestInputType(String item)
Get the input type of the specified request. |
XTypeNode |
getRequestOutputType(String qname)
Get the output type of the specified request. |
XNode |
getRequestParameters(String qname)
Get the parameters of the specified request. |
String |
getURL()
Get the URL of this data source. |
String |
getURL(boolean runtime)
Get the URL of this data source. |
boolean |
isTypesFixed()
Get whether the user can modify the output types. |
protected XTypeNode |
parseOutput(Element requestNode)
Parse the output tag. |
void |
parseXML(Element root)
Parse the XML element that contains information on this data source. |
void |
removeRequest(int idx)
Remove a request from the data source definition. |
void |
setCurrentRequestName(String name)
Set the current selected request name. |
void |
setDTD(String dtd)
Set the DTD of the data source. |
void |
setMethod(String method)
Set the HTTP method for this query. |
boolean |
setRequest(String name,
String encode)
Set(including "add" and "replace") a request to the data source. |
void |
setRequestEncode(String qname,
String code)
Set the encode of the specified request. |
void |
setRequestOutputType(String qname,
XTypeNode param)
Set the request output type. |
void |
setRequestParameters(String qname,
XNode param)
Set the parameters of the specified request. |
void |
setTypesFixed(boolean fixed)
Specify whether the user can modify the output types. |
void |
setURL(String url)
Set the URL of the data source. |
protected void |
writeOutput(XTypeNode type,
PrintWriter writer)
Write output tag to xml. |
void |
writeXML(PrintWriter writer)
Generate the XML segment to represent this data source. |
| Methods inherited from class inetsoft.uql.util.HierDataSource |
|---|
getTypeResolver, setTypeResolver |
| Methods inherited from class inetsoft.uql.XDataSource |
|---|
addFolder, equals, getDescription, getDomainType, getFolders, getFullName, getName, getRuntimeValue, getType, hashCode, isMVEnabled, removeFolder, removeFolders, setDescription, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected XMLDataSource(String type)
public XMLDataSource()
| Method Detail |
|---|
public String getRequest(int idx)
getRequest in class HierDataSourcepublic int getRequestCount()
getRequestCount in class HierDataSourcepublic void removeRequest(int idx)
public void addRequest(String item)
public void setURL(String url)
public String getURL()
public String getURL(boolean runtime)
public void setDTD(String dtd)
public String getDTD()
public String getDTD(boolean runtime)
public void setMethod(String method)
public String getMethod()
public void setTypesFixed(boolean fixed)
public boolean isTypesFixed()
public String getRequestEncode(String qname)
qname - request name.
public void setRequestEncode(String qname,
String code)
qname - request name.code - xml encode.public XNode getRequestParameters(String qname)
getRequestParameters in class HierDataSourceqname - request name.
public void setRequestParameters(String qname,
XNode param)
setRequestParameters in class HierDataSourceqname - request name.param - parameters represented as a tree. It is converted
to a query string or POST input.public XTypeNode getRequestOutputType(String qname)
getRequestOutputType in class HierDataSourceqname - request name.
public void setRequestOutputType(String qname,
XTypeNode param)
public XTypeNode getRequestInputType(String item)
getRequestInputType in class HierDataSourceitem - request name.
public UserVariable[] getParameters()
getParameters in class HierDataSource
public void parseXML(Element root)
throws Exception
parseXML in interface inetsoft.util.XMLSerializableparseXML in class XDataSourceException
protected XTypeNode parseOutput(Element requestNode)
throws Exception
requestNode - request node.
Exceptionpublic void writeXML(PrintWriter writer)
writeXML in interface inetsoft.util.XMLSerializablewriteXML in class XDataSource
protected void writeOutput(XTypeNode type,
PrintWriter writer)
type - public Object clone()
clone in class XDataSource
public boolean setRequest(String name,
String encode)
public void setCurrentRequestName(String name)
public String getCurrentRequestName()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||