public class HierarchyParserOld extends Object implements DmcUncheckedOIFHandlerIF, DmcNameResolverIF
| Constructor and Description |
|---|
HierarchyParserOld(SchemaManager sm) |
| Modifier and Type | Method and Description |
|---|---|
DmcObject |
findNamedDMO(DmcObjectName name)
Finds a DMO based on its name.
|
DmcNamedObjectIF |
findNamedObject(DmcObjectName name)
Finds a named object based on its name.
|
DmcNamedObjectIF |
findNamedObject(DmcObjectName name,
int attributeID)
Finds a named object based on its name and indicates the attribute via which
the reference is being made.
|
DmcNamedObjectIF |
findNamedObject(String name) |
void |
handleObject(DmcUncheckedObject uco,
String infile,
int lineNumber)
Process the object as required.
|
void |
readHierarchicFile(TreeMap<DmcHierarchicObjectName,HierarchicObject> byFQN,
String fn)
This method can be used to load multiple hierarchic structures into the same keymap.
|
HierarchicObject |
readHierarchy(String fn) |
HierarchicObject |
readHierarchyBelowRoot(HierarchicObject existingRoot,
String fn)
This method allows you to read a set of objects below a pre-existing root object.
|
public HierarchyParserOld(SchemaManager sm)
public HierarchicObject readHierarchy(String fn) throws ResultException, DmcValueException, DmcRuleExceptionSet, DmcNameClashException
public void readHierarchicFile(TreeMap<DmcHierarchicObjectName,HierarchicObject> byFQN, String fn) throws ResultException, DmcValueException, DmcRuleExceptionSet, DmcNameClashException
byFQN - The mapping of objects by FQN. This must contain an entry for your root
object if you're using a common root.fn - The name of the file to be parsed.ResultExceptionDmcValueExceptionDmcRuleExceptionSetDmcNameClashExceptionpublic HierarchicObject readHierarchyBelowRoot(HierarchicObject existingRoot, String fn) throws ResultException, DmcValueException, DmcRuleExceptionSet, DmcNameClashException
existingRoot - fn - ResultExceptionDmcValueExceptionDmcRuleExceptionSetDmcNameClashExceptionpublic void handleObject(DmcUncheckedObject uco, String infile, int lineNumber) throws ResultException, DmcValueException, DmcNameClashException
DmcUncheckedOIFHandlerIFhandleObject in interface DmcUncheckedOIFHandlerIFuco - The object to be handled.infile - Name of the file from which the object was loaded.lineNumber - The line in the file where the object ended.ResultException - if problems occurDmcValueException - if values are incorrectDmcNameClashException - if names clashpublic DmcNamedObjectIF findNamedObject(String name)
public DmcNamedObjectIF findNamedObject(DmcObjectName name)
DmcNameResolverIFfindNamedObject in interface DmcNameResolverIFpublic DmcObject findNamedDMO(DmcObjectName name)
DmcNameResolverIFfindNamedDMO in interface DmcNameResolverIFname - the name of the objectpublic DmcNamedObjectIF findNamedObject(DmcObjectName name, int attributeID)
DmcNameResolverIFfindNamedObject in interface DmcNameResolverIFname - the name of an objectattributeID - the attribute by which it is namedCopyright © 2023. All rights reserved.