private DecodedLibraryItem changeSymbolWithUnknown(DecodedLibraryItem decodedLibraryItem) throws DliException {
ItemDefinition itemDefinition = decodedLibraryItem.getItemDefinition();
ArticleId articleId = new ArticleId("UNKNOWN");
if (itemDefinition instanceof org.mizartools.dli.AttributeNotation) {
AttributeNotation attributeNotation = (AttributeNotation)itemDefinition;
SymbolId symbolId = attributeNotation.getSymbolId();
SymbolId symbolIdNew = new SymbolId(articleId, symbolId.getSymbolType(), symbolId.getToken(), 1);
itemDefinition = new AttributeNotation(symbolIdNew, attributeNotation.getLoci(), attributeNotation.getFormat(), attributeNotation.getVisible(), attributeNotation.getConstructor(), attributeNotation.getAntonym(), attributeNotation.getSynonym());
} else if (itemDefinition instanceof org.mizartools.dli.AggregateNotation) {
AggregateNotation aggregateNotation = (AggregateNotation)itemDefinition;
SymbolId symbolId = aggregateNotation.getSymbolId();
SymbolId symbolIdNew = new SymbolId(articleId, symbolId.getSymbolType(), symbolId.getToken(), 1);
itemDefinition = new AggregateNotation(symbolIdNew, aggregateNotation.getLoci(), aggregateNotation.getFormat(), aggregateNotation.getVisible(), aggregateNotation.getConstructor(), aggregateNotation.getSynonym());
} else if (itemDefinition instanceof org.mizartools.dli.PredicateNotation) {
PredicateNotation predicateNotation = (PredicateNotation)itemDefinition;
SymbolId symbolId = predicateNotation.getSymbolId();
SymbolId symbolIdNew = new SymbolId(articleId, symbolId.getSymbolType(), symbolId.getToken(), 1);
itemDefinition = new PredicateNotation(symbolIdNew, predicateNotation.getLoci(), predicateNotation.getFormat(), predicateNotation.getVisible(), predicateNotation.getConstructor(), predicateNotation.getAntonym(), predicateNotation.getSynonym());
} else if (itemDefinition instanceof org.mizartools.dli.ModeNotation) {
ModeNotation modeNotation = (ModeNotation)itemDefinition;
SymbolId symbolId = modeNotation.getSymbolId();
SymbolId symbolIdNew = new SymbolId(articleId, symbolId.getSymbolType(), symbolId.getToken(), 1);
itemDefinition = new ModeNotation(symbolIdNew, modeNotation.getLoci(), modeNotation.getFormat(), modeNotation.getVisible(), modeNotation.getConstructor(), modeNotation.getAbbreviation(), modeNotation.getSynonym());
} else if (itemDefinition instanceof org.mizartools.dli.ForgNotation) {
ForgNotation forgNotation = (ForgNotation)itemDefinition;
SymbolId symbolId = forgNotation.getSymbolId();
SymbolId symbolIdNew = new SymbolId(articleId, symbolId.getSymbolType(), symbolId.getToken(), 1);
itemDefinition = new ForgNotation(symbolIdNew, forgNotation.getLoci(), forgNotation.getFormat(), forgNotation.getVisible(), forgNotation.getConstructor(), forgNotation.getSynonym());
} else if (itemDefinition instanceof org.mizartools.dli.SelectorNotation) {
SelectorNotation selectorNotation = (SelectorNotation)itemDefinition;
SymbolId symbolId = selectorNotation.getSymbolId();
SymbolId symbolIdNew = new SymbolId(articleId, symbolId.getSymbolType(), symbolId.getToken(), 1);
itemDefinition = new SelectorNotation(symbolIdNew, selectorNotation.getLoci(), selectorNotation.getFormat(), selectorNotation.getVisible(), selectorNotation.getConstructor(), selectorNotation.getSynonym());
} else if (itemDefinition instanceof org.mizartools.dli.StructureNotation) {
StructureNotation structureNotation = (StructureNotation)itemDefinition;
SymbolId symbolId = structureNotation.getSymbolId();
SymbolId symbolIdNew = new SymbolId(articleId, symbolId.getSymbolType(), symbolId.getToken(), 1);
itemDefinition = new StructureNotation(symbolIdNew, structureNotation.getLoci(), structureNotation.getFormat(), structureNotation.getVisible(), structureNotation.getConstructor(), structureNotation.getSynonym());
} else if (itemDefinition instanceof org.mizartools.dli.FunctorNotation) {
FunctorNotation functorNotation = (FunctorNotation)itemDefinition;
SymbolId symbolId1 = functorNotation.getSymbolId1();
SymbolId symbolIdNew1 = new SymbolId(articleId, symbolId1.getSymbolType(), symbolId1.getToken(), 1);
SymbolId symbolId2 = functorNotation.getSymbolId2();
SymbolId symbolIdNew2 = null;
if (symbolId2 != null) {
symbolIdNew2 = new SymbolId(articleId, symbolId2.getSymbolType(), symbolId2.getToken(), 1);
}
itemDefinition = new FunctorNotation(symbolIdNew1, symbolIdNew2, functorNotation.getLoci(), functorNotation.getFormat(), functorNotation.getVisible(), functorNotation.getConstructor(), functorNotation.getSynonym());
}
return new DecodedLibraryItem(decodedLibraryItem.getItemId(), itemDefinition);
}