|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.identityconnectors.framework.spi.AbstractConfiguration
org.identityconnectors.flatfile.FlatFileConfiguration
public class FlatFileConfiguration
Configuration information required for the Connector to attach to a file.
| Constructor Summary | |
|---|---|
FlatFileConfiguration()
|
|
| Method Summary | |
|---|---|
String |
getEncoding()
|
char |
getFieldDelimiter()
|
File |
getFile()
Get the currently set file. |
char |
getTextQualifier()
|
String |
getUniqueAttributeName()
|
void |
setEncoding(String value)
Set the encoding to use when reading the CSV file. |
void |
setFieldDelimiter(char value)
|
void |
setFile(File value)
File to parse from the file system. |
void |
setTextQualifier(char value)
|
void |
setUniqueAttributeName(String value)
|
void |
validate()
Determine if all the values are valid. |
| Methods inherited from class org.identityconnectors.framework.spi.AbstractConfiguration |
|---|
getConnectorMessages, setConnectorMessages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlatFileConfiguration()
| Method Detail |
|---|
public void setFile(File value)
validate() method if the file does not exist.
value - Valid CSV file that exists.public File getFile()
public void setEncoding(String value)
value - encoding to reading the file in (recommended to set to UTF-8).public String getEncoding()
public void setTextQualifier(char value)
public char getTextQualifier()
public void setFieldDelimiter(char value)
public char getFieldDelimiter()
public void setUniqueAttributeName(String value)
public String getUniqueAttributeName()
public void validate()
validate in interface Configurationvalidate in class AbstractConfigurationIllegalArgumentException - iff the unique identifier attribute is blank or encoding is
set to null
IllegalStateException - iff the text qualifier and field delimiter are the same.
RuntimeException - iff the file is not found.
IllegalCharsetNameException - iff the character set name is invalidorg.identityconnectors.framework.Configuration#validate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||