Package javax.xml.registry.infomodel

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


        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

    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

    {
        //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

    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

      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

    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

      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

    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

       
        // 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

TOP

Related Classes of javax.xml.registry.infomodel.ExternalIdentifier

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.