Examples of ExternalIdentifier


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

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

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

            toolInfo.setName(toolNameAttr.getValue());
          }
          if(toolVersionAttr != null) {
            toolInfo.setVersion(toolVersionAttr.getValue());
          }
          ExternalIdentifier xid = new ExternalIdentifier(type,value,toolInfo);
          fileIdentSect.addExternalID(xid);
        }
        identities.add(fileIdentSect);
      }
    } catch (JDOMException e) {
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

       
        // Identifiers
      IdentifierBag ibag = (IdentifierBag)(XmlObject.Factory.newInstance()).changeType(IdentifierBag.type);
      Iterator iditer = identifiers.iterator();
      while (iditer.hasNext()) {
        ExternalIdentifier extid = (ExternalIdentifier) iditer.next();
        if (extid != null ) {
          KeyedReference keyr = ibag.addNewKeyedReference();
 
          InternationalStringImpl iname = (InternationalStringImpl) ((RegistryObject) extid).getName();
          String value = extid.getValue();
          ClassificationScheme scheme = extid.getIdentificationScheme();
 
          String name = iname.getValue();
          if (name != null)
            keyr.setKeyName(name);
 
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

                    "5415");
            org.addClassification(classification);
            ClassificationScheme cScheme1 = getClassificationScheme("D-U-N-S", "");
            Key cKey1 = blm.createKey("uuid:3367C81E-FF1F-4D5A-B202-3EB13AD02423");
            cScheme1.setKey(cKey1);
            ExternalIdentifier ei =
                    blm.createExternalIdentifier(cScheme1, "D-U-N-S number",
                            "08-146-6849");
            org.addExternalIdentifier(ei);
            org.addService(service);
            orgs.add(org);
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

    if (identifierBag != null) {
      extidentifiers = new ArrayList<ExternalIdentifier>();

      List<KeyedReference> keyedReferenceList = identifierBag.getKeyedReference();
      for (KeyedReference keyedReference : keyedReferenceList) {
        ExternalIdentifier extId = new ExternalIdentifierImpl(lifeCycleManager);
        extId.setValue(keyedReference.getKeyValue());
        extId.setName(new InternationalStringImpl(keyedReference.getKeyName()));

        String tmodelKey = keyedReference.getTModelKey();
        if (tmodelKey != null) {
          ClassificationScheme scheme = new ClassificationSchemeImpl(lifeCycleManager);
          scheme.setKey(new KeyImpl(tmodelKey));
          extId.setIdentificationScheme(scheme);
        }
        extidentifiers.add(extId);
      }
    }
    return extidentifiers;
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

    if (identifierBag != null) {
      extidentifiers = new ArrayList<ExternalIdentifier>();

      List<KeyedReference> keyedReferenceList = identifierBag.getKeyedReference();
      for (KeyedReference keyedReference : keyedReferenceList) {
        ExternalIdentifier extId = new ExternalIdentifierImpl(lifeCycleManager);
        extId.setValue(keyedReference.getKeyValue());
        extId.setName(new InternationalStringImpl(keyedReference.getKeyName()));

        String tmodelKey = keyedReference.getTModelKey();
        if (tmodelKey != null) {
          ClassificationScheme scheme = new ClassificationSchemeImpl(lifeCycleManager);
          scheme.setKey(new KeyImpl(tmodelKey));
          extId.setIdentificationScheme(scheme);
        }
        extidentifiers.add(extId);
      }
    }
    return extidentifiers;
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

       
        // Identifiers
      IdentifierBag ibag = objectFactory.createIdentifierBag();
      Iterator iditer = identifiers.iterator();
      while (iditer.hasNext()) {
        ExternalIdentifier extid = (ExternalIdentifier) iditer.next();
        if (extid != null ) {
          KeyedReference keyr = objectFactory.createKeyedReference();
          ibag.getKeyedReference().add(keyr);
 
          InternationalStringImpl iname = (InternationalStringImpl) ((RegistryObject) extid).getName();
          String value = extid.getValue();
          ClassificationScheme scheme = extid.getIdentificationScheme();
 
          String name = iname.getValue();
          if (name != null)
            keyr.setKeyName(name);
 
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

       
        // Identifiers
      IdentifierBag ibag = objectFactory.createIdentifierBag();
      Iterator iditer = identifiers.iterator();
      while (iditer.hasNext()) {
        ExternalIdentifier extid = (ExternalIdentifier) iditer.next();
        if (extid != null ) {
          KeyedReference keyr = objectFactory.createKeyedReference();
          ibag.getKeyedReference().add(keyr);
 
          InternationalStringImpl iname = (InternationalStringImpl) ((RegistryObject) extid).getName();
          String value = extid.getValue();
          ClassificationScheme scheme = extid.getIdentificationScheme();
 
          String name = iname.getValue();
          if (name != null)
            keyr.setKeyName(name);
 
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

    {
        //Lets clear out the reference to this in the ext id
        Iterator iter = collection.iterator();
        while (iter != null && iter.hasNext())
        {
            ExternalIdentifier externalId = (ExternalIdentifier) iter.next();
            ((ExternalIdentifierImpl) externalId).setRegistryObject(null);
        }
        externalIds.removeAll(collection);
    }
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

    public void testCreateObjectEmailAddress() throws JAXRException {
        assertEquals(EmailAddressImpl.class, ((EmailAddress) manager.createObject(LifeCycleManager.EMAIL_ADDRESS)).getClass());
    }

    public void testCreateObjectExternalIdentifier() throws JAXRException {
        ExternalIdentifier externalIdentifier = ((ExternalIdentifier) manager.createObject(LifeCycleManager.EXTERNAL_IDENTIFIER));
        assertEquals(ExternalIdentifierImpl.class, externalIdentifier.getClass());
        assertSame(manager, externalIdentifier.getLifeCycleManager());
    }
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.