Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.elexis.exchange.elements
Class SafeElement

java.lang.Object
  extended by org.jdom.Content
      extended by org.jdom.Element
          extended by ch.elexis.exchange.elements.SafeElement
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.jdom.Parent

public class SafeElement
extends org.jdom.Element

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdom.Element
additionalNamespaces, name, namespace
 
Fields inherited from class org.jdom.Content
parent
 
Constructor Summary
SafeElement(java.lang.String name)
           
SafeElement(java.lang.String name, org.jdom.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 org.jdom.Element
addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, cloneContent, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, setText, toString
 
Methods inherited from class org.jdom.Content
detach, equals, getDocument, getParent, getParentElement, hashCode, setParent
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jdom.Parent
getDocument, getParent
 

Constructor Detail

SafeElement

public SafeElement(java.lang.String name,
                   org.jdom.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: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013