Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.Slot


            /*
             * There's no reason to believe these are here either
             */

            Slot s = classificationScheme.getSlot("authorizedName");

      if (s != null && s.getName() != null) {
                tm.setAuthorizedName(s.getName());
            }

            s = classificationScheme.getSlot("operator");

      if (s != null && s.getName() != null) {
                tm.setOperator(s.getName());
            }

      InternationalString iname = classificationScheme.getName();
      
            tm.setName(getFirstName(iname));
View Full Code Here


      return null;
    try {
            Key key = concept.getKey();
      if (key != null && key.getId() != null)
        tm.setTModelKey(key.getId());
            Slot sl1 = concept.getSlot("authorizedName");
      if (sl1 != null && sl1.getName() != null)
        tm.setAuthorizedName(sl1.getName());

            Slot sl2 = concept.getSlot("operator");
      if (sl2 != null && sl2.getName() != null)
        tm.setOperator(sl2.getName());

      InternationalString iname = concept.getName();

            tm.setName(getFirstName(iname));
View Full Code Here

            /*
             * There's no reason to believe these are here either
             */

            Slot s = classificationScheme.getSlot("authorizedName");
/*
      if (s != null && s.getName() != null) {
                tm.setAuthorizedName(s.getName());
            }
*/
 
View Full Code Here

      return null;
    try {
            Key key = concept.getKey();
      if (key != null && key.getId() != null)
        tm.setTModelKey(key.getId());
            Slot sl1 = concept.getSlot("authorizedName");
            /*
      if (sl1 != null && sl1.getName() != null)
        tm.setAuthorizedName(sl1.getName());

            Slot sl2 = concept.getSlot("operator");
View Full Code Here

    }

    public Slot createSlot(String name, String value, String slotType) throws JAXRException {
        Collection<String> col = new ArrayList<String>();
        col.add(value);
        Slot slot = (Slot) this.createObject(LifeCycleManager.SLOT);
        slot.setName(name);
        slot.setValues(col);
        slot.setSlotType(slotType);
        return slot;
    }
View Full Code Here

        slot.setSlotType(slotType);
        return slot;
    }

    public Slot createSlot(String name, Collection values, String slotType) throws JAXRException {
        Slot slot = (Slot) this.createObject(LifeCycleManager.SLOT);
        slot.setName(name);
        slot.setValues(values);
        slot.setSlotType(slotType);
        return slot;
    }
View Full Code Here

            // ok
        }
    }

    public void testEquals() throws JAXRException {
        Slot slot1 = new SlotImpl();
        Slot slot2 = new SlotImpl();
        assertTrue(slot1.equals(slot2));
        slot1.setName("test");
        assertFalse(slot1.equals(slot2));
        slot2.setName("test");
        assertTrue(slot1.equals(slot2));
        slot1.setName(null);
        assertFalse(slot1.equals(slot2));
    }
View Full Code Here

      return null;
    try {
            Key key = scheme.getKey();
      if (key != null && key.getId() != null)
        tm.setTModelKey(key.getId());
            Slot sl1 = scheme.getSlot("authorizedName");
      if (sl1 != null && sl1.getName() != null)
        tm.setAuthorizedName(sl1.getName());

            Slot sl2 = scheme.getSlot("operator");
      if (sl2 != null && sl2.getName() != null)
        tm.setOperator(sl2.getName());

      InternationalString iname = ((RegistryObject) scheme).getName();
     
      for (LocalizedString locName : iname.getLocalizedStrings()) {
          Name name = tm.addNewName();
View Full Code Here

    }

    public Slot createSlot(String name, String value, String slotType) throws JAXRException {
        Collection<String> col = new ArrayList<String>();
        col.add(value);
        Slot slot = (Slot) this.createObject(LifeCycleManager.SLOT);
        slot.setName(name);
        slot.setValues(col);
        slot.setSlotType(slotType);
        return slot;
    }
View Full Code Here

        slot.setSlotType(slotType);
        return slot;
    }

    public Slot createSlot(String name, Collection<String> values, String slotType) throws JAXRException {
        Slot slot = (Slot) this.createObject(LifeCycleManager.SLOT);
        slot.setName(name);
        slot.setValues(values);
        slot.setSlotType(slotType);
        return slot;
    }
View Full Code Here

TOP

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

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.