public class XmlObjectConnectorParams extends FileConnectorParams
DataSetConnectorParams
used by XmlObjectConnector.XmlObjectConnector
,
Serialized FormModifier and Type | Field and Description |
---|---|
String |
_ext
The file extension.
|
static String |
ADD_COMMENT_TO_TAG_NAME_PROP
The ADD COMMENTS TO TAG NAME property.
|
static String |
CAPTURE_COMMENTS_PROP
The CAPTURE COMMENTS property.
|
static String |
HIDE_IN_NESTED_PROP
The HIDE_IN_NESTED property.
|
static String |
IGNORE_ATTRS_PROP
The IGNORE XML ATTRIBUTES in nodes with a value and attribute property.
|
static String |
IGNORE_VALUES_PROP
The IGNORE VALUES in nodes with a value and attribute property.
|
static String |
NAMESPACE_PROP
The NAMESPACE property.
|
static String |
NULL_ATTR_PROP
The NULL ATTRIBUTE property.
|
static String |
PARSE_ATTRS_PROP
The PARSE XML ATTRIBUTES property.
|
static String |
PARSE_CDATA_PROP
The PARSE CDATA property.
|
static String |
PARSE_ROOT_ATTRS_PROP
The PARSE ROOT XML ATTRIBUTES property.
|
static String |
PREFIX
The PREFIX.
|
static String |
PREPROCESSOR_TRANSFORMATION
The Constant PREPROCESSOR_TRANSFORMATION.
|
static String |
QUERY_TRANSFORMATION
The Constant QUERY_TRANSFORMATION.
|
static String |
ROOT_NAME_PROP
The ROOT NAME property.
|
static String |
ROW_TAG_PROP
The ROOT NAME property.
|
static String |
TRANSFORMATION_TYPE_PROP
Type of the transformation (xsl or preprocessor) property.
|
static String |
VALUE_ATTR_PROP
The VALUE ATTRIBUTE property.
|
static String |
XML_TAG_PROP
The xml tag property.
|
static String |
XML_VERSION_PROP
The xml version property.
|
ADJUST_DATA_TYPE_PROP, ALL_STRINGS_PROP, BASE64_ENCODE_CLOB_PROP, BOOLEAN_AS_NUMBER_PROP, CONVERT_NULL_PROP, ENCODING_PROP, NAME_TO_SQL_NAME_PROP, NULL_IF_EMPTY_PROP, OVERRIDE_WILCARD_PROP, SPLIT_BY_PROP, SUFFIX_PROP, TEMPALTE_PROP
AUTO_COMMIT_PROP, FILE_NAME_PROP, MAX_ROWS_EXCEEDED_EXCEPTION, PASSWORD_PROP, PROPERTIES_PROP, TRANSPORT_PROP, USE_SELECTED_PROP, USER_ID_PROP
Constructor and Description |
---|
XmlObjectConnectorParams()
Instantiates a new XmlObjectConnectorParams.
|
XmlObjectConnectorParams(CacheProvider<String,Object> cacheProvider,
boolean silent,
int logStep)
Instantiates a new XmlObjectConnectorParams.
|
Modifier and Type | Method and Description |
---|---|
XmlObjectConnectorParams |
copy()
Create a copy of this object.
|
String |
getExt()
Gets the file extension.
|
OutputStream |
getFileOutputStream()
Gets the file output stream.
|
String |
getLastComment()
Gets the last commnet.
|
int |
getLevel()
Gets the level of nestennes.
|
String |
getNameSpace()
Gets the namespace.
|
String |
getNullAttr()
Gets the null attr.
|
String |
getPropsHint()
Gets the hint displayed next to the properties editor.
|
String |
getPropsWizardResource(Driver driver,
String connectionDriver)
Gets the name of the xml file used to create a wizard for editing
properties.
|
String |
getQuery()
Gets the query.
|
String |
getRootName()
Gets the root object name.
|
String |
getRootTag()
Gets the root tag.
|
String |
getRowTag()
Gets the row tag.
|
ByteArrayOutputStream |
getTempStream()
Gets the temp stream.
|
String |
getTransformationType()
Gets the transformation type.
|
String |
getValueAttr()
Gets the value attr.
|
XMLStreamWriter |
getWriter()
Gets the writer.
|
String |
getXmlVersion()
Gets the xml version.
|
void |
init(Alias alis)
Initializes itself using given alias.
|
void |
init(Map<String,String> props)
Initializes itself using given properties.
|
void |
init(ObjectStorage storage)
Initializes itself using given object storage.
|
boolean |
isAddCommentToTagName()
Checks if is adds the comment to tag name.
|
boolean |
isCaptureComments()
Checks if is capture comments.
|
boolean |
isHideInNested()
Checks if XML writer should not be creating nested XML nodes.
|
boolean |
isIgnoreAttrsInValueAttrNode()
Checks if is ignore attrs in value attr node.
|
boolean |
isIgnoreValuesInValueAttrNode()
Checks if is ignore values in value attr node.
|
boolean |
isParseAttrs()
Checks if connector should parse xml attributes.
|
boolean |
isParseCdata()
Checks if parse cdata.
|
boolean |
isParseRootAttrs()
Checks if connector should parse xml attributes in the root node.
|
boolean |
isXmlTag()
Checks if connector should add standard xml root tag when creating an
xml.
|
boolean |
needToEncode()
Checks if char values need to be encoded.
|
void |
setAddCommentToTagName(boolean addCommentToTagName)
Sets the adds the comment to tag name.
|
void |
setCaptureComments(boolean captureComments) |
void |
setExt(String value)
Sets the file extension.
|
void |
setFileOutputStream(OutputStream value)
Sets the file output stream.
|
void |
setHideInNested(boolean hideInNested)
Sets the new value of the flag "hide in nested".
|
void |
setIgnoreAttrsInValueAttrNode(boolean ignoreAttrsInValueAttrNode)
Sets the ignore attrs in value attr node.
|
void |
setIgnoreValuesInValueAttrNode(boolean ignoreValuesInValueAttrNode)
Sets the ignore values in value attr node.
|
void |
setLastComment(String lastComment)
Sets the last comment.
|
void |
setLevel(int level)
Sets the level of nestennes.
|
void |
setNameSpace(String value)
Sets the namespace.
|
void |
setNullAttr(String value)
Sets the null attribute.
|
void |
setParseAttrs(boolean value)
Sets the value for the "parse xml attributes" flag.
|
void |
setParseCdata(boolean parseCdata)
Sets the parse the cdata attribute.
|
void |
setParseRootAttrs(boolean value)
Sets the value for the "parse root xml attributes" flag.
|
void |
setQuery(String value)
Sets the query.
|
void |
setRootName(String value)
Sets the root object name.
|
void |
setRootTag(String rootTag)
Sets the root tag.
|
void |
setRowTag(String rowTag)
Sets the row tag.
|
void |
setTempStream(ByteArrayOutputStream tempStream)
Sets the temp stream.
|
void |
setTransformationType(String transformationType)
Sets the transformation type.
|
void |
setValueAttr(String valueAttr)
Sets the value attr.
|
void |
setWriter(XMLStreamWriter writer)
Sets the writer.
|
void |
setXmlTag(boolean value)
Sets the value for the "xmltag" flag.
|
void |
setXmlVersion(String xmlVersion)
Sets the xml version.
|
alias2alias, deserializeToInputStream, getAlias, getCdata, getDateFormat, getDateTimeFormat, getEncoding, getFileName, getFileName, getFileNameIfFileSystem, getFolder, getInitStr, getOriginalAlias, getPassword, getProperties, getRealFileName, getSplitBy, getSuffix, getTemplate, getTemplateToUse, getTimeFormat, getTransport, getUserId, getWildcardUrl, isAdjustDataTypes, isAllStrings, isBooleanAsNumber, isConvertNameToSqlName, isConvertNull, isCurrentStreaming, isDateFormat, isDateTimeFormat, isDisableStreaming, isEncodeClob, isFileNameRequired, isForceExt, isNoOriginalFileName, isNullIfEmpty, isOverrideWildcrad, isParseDates, isTimeFormat, isTrimValue, selfDiscover, setAdjustDataTypes, setAllStrings, setBooleanAsNumber, setCdata, setConvertNameToSqlName, setConvertNull, setDateFormat, setDateTimeFormat, setDisableStreaming, setEncodeClob, setEncoding, setFieldDataType, setFileName, setFileNameRequired, setFolder, setForceExt, setNoOriginalFileName, setNullIfEmpty, setOverrideWildcrad, setParseDates, setPassword, setProperties, setRealFileName, setSplitBy, setSuffix, setTemplate, setTimeFormat, setTransport, setTrimValue, setUserId
getAddFieldValueCallback, getAddRecordCallback, getAfterCallback, getBeforeCallback, getCacheProvider, getCrudAction, getInputStream, getIoProcessor, getLogStep, getMaxRows, getOutputStream, getParams, getReadTracker, getTarget, getTransactionMonitor, hasAddRecordCallback, isCleanUpPersistOccured, isCloseInput, isCloseOutput, isEnabled, isIgnoreEmpty, isIgnoreNoRecords, isMaxRowsExceededException, isPostPersistOccured, isPrePersistOccured, isReadOnlyMetadata, isSilent, isStreaming, prepareForPopulate, setAddFieldValueCallback, setAddRecordCallback, setAfterCallback, setBeforeCallback, setCacheProvider, setCleanUpPersistOccurred, setCloseInput, setCloseOutput, setCrudAction, setEnabled, setHasAddRecordCallback, setIgnoreEmpty, setIgnoreNoRecords, setInputStream, setIoProcessor, setLogStep, setMaxRows, setOutputStream, setPostPersistOccured, setPrePersistOccured, setReadOnlyMetadata, setReadTracker, setSilent, setTarget, setTransactionMonitor, setUseSelectedDataSet, useSelectedDataSet
public static final String PREFIX
public static final String PARSE_ATTRS_PROP
public static final String PARSE_ROOT_ATTRS_PROP
public static final String IGNORE_ATTRS_PROP
public static final String IGNORE_VALUES_PROP
public static final String PARSE_CDATA_PROP
public static final String ROOT_NAME_PROP
public static final String NAMESPACE_PROP
public static final String XML_VERSION_PROP
public static final String XML_TAG_PROP
public static final String ROW_TAG_PROP
public static final String NULL_ATTR_PROP
public static final String VALUE_ATTR_PROP
public static final String TRANSFORMATION_TYPE_PROP
public static final String ADD_COMMENT_TO_TAG_NAME_PROP
public static final String CAPTURE_COMMENTS_PROP
public static final String HIDE_IN_NESTED_PROP
public static final String QUERY_TRANSFORMATION
public static final String PREPROCESSOR_TRANSFORMATION
public String _ext
public XmlObjectConnectorParams()
public XmlObjectConnectorParams(CacheProvider<String,Object> cacheProvider, boolean silent, int logStep)
cacheProvider
- the cache providersilent
- the "is silent" flaglogStep
- the log steppublic XmlObjectConnectorParams copy()
DataSetConnectorParams
copy
in class DataSetConnectorParams
public String getRootName()
public String getNameSpace()
public String getExt()
public OutputStream getFileOutputStream()
public String getPropsHint()
DataSetConnectorParams
getPropsHint
in class DataSetConnectorParams
public String getPropsWizardResource(Driver driver, String connectionDriver)
DataSetConnectorParams
getPropsWizardResource
in class DataSetConnectorParams
driver
- the ETL driverconnectionDriver
- the connection driverpublic String getQuery()
public XMLStreamWriter getWriter()
public void init(Alias alis)
DataSetConnectorParams
init
in class FileConnectorParams
alis
- the aliaspublic void init(Map<String,String> props)
DataSetConnectorParams
init
in class FileConnectorParams
props
- the propertiespublic void init(ObjectStorage storage)
DataSetConnectorParams
init
in class DataSetConnectorParams
storage
- the object storagepublic void setRootName(String value)
value
- the new root object namepublic void setNameSpace(String value)
value
- the new namespacepublic boolean isParseAttrs()
public boolean isParseRootAttrs()
public boolean isXmlTag()
public boolean needToEncode()
FileConnectorParams
needToEncode
in class FileConnectorParams
public void setExt(String value)
value
- the new file extensionpublic void setFileOutputStream(OutputStream value)
value
- the new output streampublic void setParseAttrs(boolean value)
value
- the new value for the "parse xml attributes" flagpublic void setParseRootAttrs(boolean value)
value
- the new value for the "parse root xml attributes" flagpublic void setXmlTag(boolean value)
value
- the new value for the "xmltag" flagpublic void setQuery(String value)
value
- the new querypublic void setWriter(XMLStreamWriter writer)
writer
- the new writerpublic String getRowTag()
public void setRowTag(String rowTag)
rowTag
- the new row tagpublic String getRootTag()
public void setRootTag(String rootTag)
rootTag
- the new root tagpublic String getNullAttr()
public void setNullAttr(String value)
value
- the new null attribute valuepublic String getValueAttr()
public void setValueAttr(String valueAttr)
valueAttr
- the new value attrpublic ByteArrayOutputStream getTempStream()
public void setTempStream(ByteArrayOutputStream tempStream)
tempStream
- the new temp streampublic String getTransformationType()
public void setTransformationType(String transformationType)
transformationType
- the new transformation typepublic int getLevel()
public void setLevel(int level)
level
- the new levelpublic boolean isParseCdata()
public void setParseCdata(boolean parseCdata)
parseCdata
- booleanpublic String getXmlVersion()
public void setXmlVersion(String xmlVersion)
xmlVersion
- the new xml versionpublic String getLastComment()
public void setLastComment(String lastComment)
lastComment
- the new last commentpublic boolean isAddCommentToTagName()
public void setAddCommentToTagName(boolean addCommentToTagName)
addCommentToTagName
- the new adds the comment to tag namepublic boolean isIgnoreAttrsInValueAttrNode()
public void setIgnoreAttrsInValueAttrNode(boolean ignoreAttrsInValueAttrNode)
ignoreAttrsInValueAttrNode
- the new ignore attrs in value attr nodepublic boolean isIgnoreValuesInValueAttrNode()
public void setIgnoreValuesInValueAttrNode(boolean ignoreValuesInValueAttrNode)
ignoreValuesInValueAttrNode
- the new ignore values in value attr nodepublic boolean isCaptureComments()
public void setCaptureComments(boolean captureComments)
public boolean isHideInNested()
public void setHideInNested(boolean hideInNested)
hideInNested
- booleanCopyright © 2010-2020 Toolsverse. All Rights Reserved.