Ejemplo n.º 1
0
  /**
   * Returns Attribute object with the specified values.
   *
   * @param name the namee of the attribute
   * @param value the value of the attribute
   * @return Attribute
   */
  public Attribute createAttribute(String name, String value) {
    AttributeField attributeImpl = new AttributeField();
    try {

      attributeImpl.setName(name);
      attributeImpl.setValue(value);

    } catch (SdpException s) {
      s.printStackTrace();
    }
    return attributeImpl;
  }