com.openindex.openestate.impl
Class AbstractImplItem

java.lang.Object
  extended by com.openindex.openestate.impl.AbstractImplItem
Direct Known Subclasses:
AgencyImpl, AgentImpl, CustomValueImpl, CustomValuesImpl, EstateAttachmentImpl, EstateImpl, GeoAreaImpl, GeoCountryImpl, GeoImpl, SimpleAdressImpl, TransferAgencyImpl, TransferImpl, ValueImpl

public abstract class AbstractImplItem
extends Object

Allgemeine Implementierung eines XML-Objektes.
$Id: AbstractImplItem.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Constructor Summary
protected AbstractImplItem()
           
 
Method Summary
 Object getValue(String key)
           
protected  Object getValue(String key, Object defaultValue)
           
 Map<String,Object> getValues()
           
 void merge(AbstractImplItem item)
           
protected  void putValue(String key, Object value)
           
static String selectAttribute(org.dom4j.Element node, String key)
           
static String selectAttribute(org.dom4j.Element node, String key, String defaultValue)
           
static Boolean selectAttributeAsBoolean(org.dom4j.Element node, String key)
           
static Boolean selectAttributeAsBoolean(org.dom4j.Element node, String key, Boolean defaultValue)
           
static Currency selectAttributeAsCurrency(org.dom4j.Element node, String key)
           
static Currency selectAttributeAsCurrency(org.dom4j.Element node, String key, Currency defaultValue)
           
static Date selectAttributeAsDate(org.dom4j.Element node, String key)
           
static Date selectAttributeAsDate(org.dom4j.Element node, String key, Date defaultValue)
           
static Date selectAttributeAsDateTime(org.dom4j.Element node, String key)
           
static Date selectAttributeAsDateTime(org.dom4j.Element node, String key, Date defaultValue)
           
static Double selectAttributeAsDouble(org.dom4j.Element node, String key)
           
static Double selectAttributeAsDouble(org.dom4j.Element node, String key, Double defaultValue)
           
static Float selectAttributeAsFloat(org.dom4j.Element node, String key)
           
static Float selectAttributeAsFloat(org.dom4j.Element node, String key, Float defaultValue)
           
static URL selectAttributeAsURL(org.dom4j.Element node, String key)
           
static URL selectAttributeAsURL(org.dom4j.Element node, String key, URL defaultValue)
           
static List<org.dom4j.Node> selectChildElements(org.dom4j.Element node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractImplItem

protected AbstractImplItem()
Method Detail

getValue

public Object getValue(String key)

getValues

public Map<String,Object> getValues()

getValue

protected Object getValue(String key,
                          Object defaultValue)

merge

public void merge(AbstractImplItem item)

putValue

protected void putValue(String key,
                        Object value)

selectAttribute

public static String selectAttribute(org.dom4j.Element node,
                                     String key)

selectAttribute

public static String selectAttribute(org.dom4j.Element node,
                                     String key,
                                     String defaultValue)

selectAttributeAsBoolean

public static Boolean selectAttributeAsBoolean(org.dom4j.Element node,
                                               String key)

selectAttributeAsBoolean

public static Boolean selectAttributeAsBoolean(org.dom4j.Element node,
                                               String key,
                                               Boolean defaultValue)

selectAttributeAsCurrency

public static Currency selectAttributeAsCurrency(org.dom4j.Element node,
                                                 String key)

selectAttributeAsCurrency

public static Currency selectAttributeAsCurrency(org.dom4j.Element node,
                                                 String key,
                                                 Currency defaultValue)

selectAttributeAsDate

public static Date selectAttributeAsDate(org.dom4j.Element node,
                                         String key)

selectAttributeAsDate

public static Date selectAttributeAsDate(org.dom4j.Element node,
                                         String key,
                                         Date defaultValue)

selectAttributeAsDateTime

public static Date selectAttributeAsDateTime(org.dom4j.Element node,
                                             String key)

selectAttributeAsDateTime

public static Date selectAttributeAsDateTime(org.dom4j.Element node,
                                             String key,
                                             Date defaultValue)

selectAttributeAsDouble

public static Double selectAttributeAsDouble(org.dom4j.Element node,
                                             String key)

selectAttributeAsDouble

public static Double selectAttributeAsDouble(org.dom4j.Element node,
                                             String key,
                                             Double defaultValue)

selectAttributeAsFloat

public static Float selectAttributeAsFloat(org.dom4j.Element node,
                                           String key)

selectAttributeAsFloat

public static Float selectAttributeAsFloat(org.dom4j.Element node,
                                           String key,
                                           Float defaultValue)

selectAttributeAsURL

public static URL selectAttributeAsURL(org.dom4j.Element node,
                                       String key)

selectAttributeAsURL

public static URL selectAttributeAsURL(org.dom4j.Element node,
                                       String key,
                                       URL defaultValue)

selectChildElements

public static List<org.dom4j.Node> selectChildElements(org.dom4j.Element node)


Copyright © 2012 OpenEstate. All Rights Reserved.