Examples of lookupCharacterStateBySymbol()


Examples of org.nexml.model.CharacterStateSet.lookupCharacterStateBySymbol()

   
    // lookup the equivalent state in tb and attach identifiers
    for(StateSet tbStateSet : tbMatrix.getStateSets() ) {
      for (DiscreteCharState tbState : tbStateSet.getStates() ) {
        String tbSymbol = tbState.getSymbol().toString().toUpperCase();
        CharacterState xmlState = xmlStateSet.lookupCharacterStateBySymbol(tbSymbol);
        if ( null == xmlState ) {
          xmlState = xmlStateSet.createCharacterState(tbSymbol);
        }
        attachTreeBaseID((Annotatable)xmlState,tbState,DiscreteCharState.class);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.