Package org.mizartools.dli

Examples of org.mizartools.dli.AttributeNotation


  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());
View Full Code Here


      itemType = ItemType.funcnot;
      break;
    case V :
      if (pattern.getAntonymic() != nullantonym = new Antonym();
      if (antonym == null && pattern.getRedefnr() != null) synonym = new Synonym();
      itemDefinition = new AttributeNotation(symbolId1, loci, format, visible, constructor, antonym, synonym);
      itemType = ItemType.attrnot;
      break;
    case G :
      itemDefinition = new AggregateNotation(symbolId1, loci, format, visible, constructor, synonym);
      itemType = ItemType.aggrnot;
View Full Code Here

TOP

Related Classes of org.mizartools.dli.AttributeNotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.