Package com.google.gwt.ricordo.client.exception

Examples of com.google.gwt.ricordo.client.exception.AnnotVariableException


 
  public void addAnnotation(String variableURL, String property, String annotValue) throws AnnotVariableException{
    annotValue = annotValue.replace("_", ":");
    String [] annotValArray = annotValue.split(":");
    if(annotValArray.length!=2){
      throw new AnnotVariableException("Invalid term ID");
    }
   
    String miriumURN="";
    if(annotValArray[0].equals("RICORDO")){
      miriumURN = "urn:miriam:ricordo:RICORDO_"+annotValArray[1];
    }
    else{
      miriumURN= getMiriam(annotValArray[0], annotValue);   
      if(miriumURN==null){
        throw new AnnotVariableException("Invalid MIRIAM URN or no MIRIAM URN returned");
      }
    }
   
    rdfHandler.insertAnnotString(variableURL, property, miriumURN);       
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.ricordo.client.exception.AnnotVariableException

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.