Package edu.harvard.hul.ois.fits.identity

Examples of edu.harvard.hul.ois.fits.identity.ToolIdentity


          mimetype = mimetypeAttr.getValue();
        }
        if(versionElement != null) {
          version = versionElement.getText();
        }
        ToolIdentity identity = new ToolIdentity(mimetype,format,version,info);
        List<Element> xIDElements = element.getChildren("externalIdentifier",ns);
        for(Element xIDElement : xIDElements) {
          String type = xIDElement.getAttributeValue("type");
          String value = xIDElement.getText();
          ExternalIdentifier xid = new ExternalIdentifier(type,value,info);
          identity.addExternalIdentifier(xid);
        }
        identities.add(identity);
      }
    } catch (JDOMException e) {
      e.printStackTrace();
View Full Code Here


    FitsOutput result = new FitsOutput(mergedDoc);
    return result;
  }
 
  private boolean isPartialIdentity(List<ToolIdentity> identities) {
    ToolIdentity identity = identities.get(0);
    if(identity != null) {
      String mime = identity.getMime();
      String format = identity.getFormat();
     
      boolean validMime = (mime != null && mime.length()>0);
      boolean validFormat = (format != null && format.length()>0);
     
      if((validMime && validFormat) ||
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.fits.identity.ToolIdentity

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.