ch.elexis.exchange.elements
Class SafeElement
java.lang.Object
  
Element
      
ch.elexis.exchange.elements.SafeElement
public class SafeElement
- extends Element
 
 
| 
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 | 
 
SafeElement
public SafeElement(java.lang.String name,
                   Namespace ns)
SafeElement
public SafeElement(java.lang.String name)
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 attributevalue - value of the attributedefaultValue - default to use if value resolves to null. If defaultValue is null, the attirbute
            will not be set at all.
 
 
				Copyright 2005-2010 by Gerry Weirich, Elexis