Examples of ExternalIdentifier


Examples of javax.xml.registry.infomodel.ExternalIdentifier

    public void addExternalIdentifiers(Collection<ExternalIdentifier> collection)
    {
        if (collection!=null) {
            for (Iterator i = collection.iterator(); i.hasNext();)
            {
                ExternalIdentifier externalId = (ExternalIdentifier) i.next();
                externalIds.add(externalId);
                ((ExternalIdentifierImpl) externalId).setRegistryObject(this);
            }
        }
    }
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 setExternalIdentifiers(Collection<ExternalIdentifier> collection)
    {
        Set<ExternalIdentifier> newExternalIds = new HashSet<ExternalIdentifier>(collection.size());
        for (Iterator i = collection.iterator(); i.hasNext();)
        {
            ExternalIdentifier externalId = (ExternalIdentifier) i.next();
            newExternalIds.add(externalId);
        }
        externalIds = newExternalIds;
    }
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

        extidentifiers = new ArrayList<ExternalIdentifier>();
          KeyedReference[] keyrarr = ibag.getKeyedReferenceArray();
          for (int i = 0; keyrarr != null && i < keyrarr.length; i++)
          {
             KeyedReference keyr = (KeyedReference)keyrarr[i];
             ExternalIdentifier extId = new ExternalIdentifierImpl(lcm);
             extId.setValue(keyr.getKeyValue());
             extId.setName(new InternationalStringImpl(keyr.getKeyName()));
            
             String tmodelKey = keyr.getTModelKey();
             if (tmodelKey != null) {
               ClassificationScheme scheme = new ClassificationSchemeImpl(lcm);
               scheme.setKey(new KeyImpl(tmodelKey));
               extId.setIdentificationScheme(scheme);
             }
             extidentifiers.add(extId);
          }
      }
      return extidentifiers;
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

    public void addExternalIdentifiers(Collection collection)
    {
        for (Iterator i = collection.iterator(); i.hasNext();)
        {
            ExternalIdentifier externalId = (ExternalIdentifier) i.next();
            externalIds.add(externalId);
            ((ExternalIdentifierImpl) externalId).setRegistryObject(this);
        }
    }
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 setExternalIdentifiers(Collection collection)
    {
        Set newExternalIds = new HashSet(collection.size());
        for (Iterator i = collection.iterator(); i.hasNext();)
        {
            ExternalIdentifier externalId = (ExternalIdentifier) i.next();
            newExternalIds.add(externalId);
        }
        externalIds = newExternalIds;
    }
View Full Code Here

Examples of javax.xml.registry.infomodel.ExternalIdentifier

      Classification classification = blm.createClassification(cScheme, "Computer Systems Design and Related Services", "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);
      return org;
   }
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

Examples of javax.xml.registry.infomodel.ExternalIdentifier

      Classification classification = blm.createClassification(cScheme, "Computer Systems Design and Related Services", "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);
      return org;
   }
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.