Package org.apache.juddi.datatype.response

Examples of org.apache.juddi.datatype.response.RegistryInfo


    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    RegistryInfo obj = new RegistryInfo();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    // {none}

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,PropertyHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(PropertyHandler.TAG_NAME);
      obj.addProperty((Property)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here


    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    RegistryInfo info = (RegistryInfo)object;
    String generic = info.getGeneric();
    generic = getGeneric(generic);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    Properties props = info.getProperties();
    if ((props!=null) && (props.size() > 0))
    {
      handler = maker.lookup(PropertyHandler.TAG_NAME);

      SortedSet sortedProps = new TreeSet(props.keySet());
View Full Code Here

    AbstractHandler handler = maker.lookup(RegistryInfoHandler.TAG_NAME);

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    RegistryInfo regInfo = new RegistryInfo();
    regInfo.addProperty(new Property("first_name","Steve"));
    regInfo.addProperty(new Property("last_name","Viens"));
    regInfo.addProperty(new Property("version","1.0b1"));

    System.out.println();

    RegistryObject regObject = regInfo;
    handler.marshal(regObject,parent);
View Full Code Here

    try
    {
      // create a new RegisteryInfo instance and
      // add Registry name/value properties to it.

      RegistryInfo info = new RegistryInfo();
      info.setGeneric(generic);
      info.setOperator(Config.getOperator());
      info.addProperty("operatorName",Config.getStringProperty("juddi.operatorName"));
      info.addProperty("operatorEmailAddress",Config.getStringProperty("juddi.operatorEmailAddress"));
      info.addProperty("registryVersion",Release.getRegistryVersion());
      info.addProperty("uddiVersion",Release.getUDDIVersion());
     
      return info;
    }
    catch(Exception ex)
    {
View Full Code Here

    try
    {
      // create a new RegisteryInfo instance and
      // add Registry name/value properties to it.

      RegistryInfo info = new RegistryInfo();
      info.setGeneric(generic);
      info.setOperator(Config.getOperator());
      info.addProperty("operatorName",Config.getStringProperty("juddi.operatorName"));
      info.addProperty("operatorEmailAddress",Config.getStringProperty("juddi.operatorEmailAddress"));
      info.addProperty("registryVersion",Release.getRegistryVersion());
      info.addProperty("registryLastModified",Release.getLastModified());
      info.addProperty("uddiVersion",Release.getUDDIVersion());
     
      return info;
    }
    catch(Exception ex)
    {
View Full Code Here

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    RegistryInfo obj = new RegistryInfo();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    // {none}

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,PropertyHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(PropertyHandler.TAG_NAME);
      obj.addProperty((Property)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    RegistryInfo info = (RegistryInfo)object;
    Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
    AbstractHandler handler = null;

    Properties props = info.getProperties();
    if ((props!=null) && (props.size() > 0))
    {
      handler = maker.lookup(PropertyHandler.TAG_NAME);

      SortedSet sortedProps = new TreeSet(props.keySet());
View Full Code Here

    AbstractHandler handler = maker.lookup(RegistryInfoHandler.TAG_NAME);

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    RegistryInfo regInfo = new RegistryInfo();
    regInfo.addProperty(new Property("first_name","Steve"));
    regInfo.addProperty(new Property("last_name","Viens"));
    regInfo.addProperty(new Property("version","1.0b1"));

    System.out.println();

    RegistryObject regObject = regInfo;
    handler.marshal(regObject,parent);
View Full Code Here

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    RegistryInfo obj = new RegistryInfo();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    // {none}

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,PropertyHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(PropertyHandler.TAG_NAME);
      obj.addProperty((Property)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    RegistryInfo info = (RegistryInfo)object;
    Element element = parent.getOwnerDocument().createElement(TAG_NAME);
    AbstractHandler handler = null;

    Properties props = info.getProperties();
    if ((props!=null) && (props.size() > 0))
    {
      handler = maker.lookup(PropertyHandler.TAG_NAME)
     
      SortedSet sortedProps = new TreeSet(props.keySet());
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.response.RegistryInfo

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.