Package com.isode.dsapi.bulk
Class SubstitutionSpecification
java.lang.Object
com.isode.dsapi.bulk.SubstitutionSpecification
This class provides a specification of how attribute values should be
substituted when LDIF data is being loaded into the DSA.
- Author:
- tc
-
Constructor Summary
ConstructorsConstructorDescriptionSubstitutionSpecification(String filename) Generate a new SubstitutionSpecification by reading a file. -
Method Summary
Modifier and TypeMethodDescriptionfindByName(String name) Find the substitution data for a given attribute type.findBySyntax(int syntax) Find the substitution data for a given syntax.voidparse(InputStream xmlStream) Parse the xml stream to extract the substitution specifications
-
Constructor Details
-
SubstitutionSpecification
public SubstitutionSpecification(String filename) throws FileNotFoundException, SubstitutionException Generate a new SubstitutionSpecification by reading a file.- Parameters:
filename- file to read- Throws:
FileNotFoundExceptionSubstitutionException
-
-
Method Details
-
findByName
Find the substitution data for a given attribute type.- Parameters:
name- Name of attribute type- Returns:
- SubsititutionData, which may be null
-
findBySyntax
Find the substitution data for a given syntax.- Parameters:
syntax- identifier for syntax type- Returns:
- SubsititutionData, which may be null
-
parse
Parse the xml stream to extract the substitution specifications- Parameters:
xmlStream- input stream pointing to xml- Throws:
SubstitutionException- if there is an error while parsing the XML
-