public class ExtractContextGroupsWithTransitiveClosure extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
ExtractContextGroupsWithTransitiveClosure.CodedConcept |
protected class |
ExtractContextGroupsWithTransitiveClosure.CodedConceptInContextGroup |
protected class |
ExtractContextGroupsWithTransitiveClosure.ContextGroup |
protected class |
ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier |
Modifier and Type | Field and Description |
---|---|
protected SortedMap<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> |
closedContextGroupsByCID |
protected SortedMap<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> |
originalContextGroupsByCID |
Constructor and Description |
---|
ExtractContextGroupsWithTransitiveClosure(String standardcontextgroupsinputfile,
String extendedcontextgroupsinputfile,
String contextgroupswantedinputfile,
String outputfile) |
protected SortedMap<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> closedContextGroupsByCID
protected SortedMap<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> originalContextGroupsByCID
public ExtractContextGroupsWithTransitiveClosure(String standardcontextgroupsinputfile, String extendedcontextgroupsinputfile, String contextgroupswantedinputfile, String outputfile) throws IOException, ParserConfigurationException, SAXException, Exception
protected void createNamedAttributeAndAppendToElement(Document document, Node element, String attributeName, String attributeValue)
public static boolean isNonEmptyNumericArray(String s)
public static void main(String[] arg)
protected void performTransitiveClosure(Map<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> sourceContextGroupsByCID, Map<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> targetContextGroupsByCID)
protected void readContextGroupsFile(String filename, Map<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> contextGroupsByCID) throws IOException, ParserConfigurationException, SAXException, Exception
protected List<String> readContextGroupsWantedFile(String wantedfile) throws IOException
IOException
protected void writeContextGroupsFile(String outputfile, List<String> wanted, Map<ExtractContextGroupsWithTransitiveClosure.ContextGroupIdentifier,ExtractContextGroupsWithTransitiveClosure.ContextGroup> contextGroupsByCID) throws IOException, ParserConfigurationException, TransformerConfigurationException, TransformerException