Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.exchange.elements
Class SafeElement

java.lang.Object
  extended by Element
      extended by ch.elexis.exchange.elements.SafeElement

public class SafeElement
extends Element


Constructor Summary
SafeElement(java.lang.String name)
           
SafeElement(java.lang.String name, Namespace ns)
           
 
Method Summary
 void setAttributeEx(java.lang.String name, java.lang.String value, java.lang.String defaultValue)
          This sets an attribute in a safe manner: If the value is null, some useful action is taken instead og throwing an exception
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeElement

public SafeElement(java.lang.String name,
                   Namespace ns)

SafeElement

public SafeElement(java.lang.String name)
Method Detail

setAttributeEx

public void setAttributeEx(java.lang.String name,
                           java.lang.String value,
                           java.lang.String defaultValue)
This sets an attribute in a safe manner: If the value is null, some useful action is taken instead og throwing an exception

Parameters:
name - name of the attribute
value - value of the attribute
defaultValue - default to use if value resolves to null. If defaultValue is null, the attirbute will not be set at all.

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis