com.openindex.openestate.impl
Class EstateImpl

java.lang.Object
  extended by com.openindex.openestate.impl.AbstractImplItem
      extended by com.openindex.openestate.impl.EstateImpl
All Implemented Interfaces:
SerializableXmlElement, SerializableXmlType
Direct Known Subclasses:
AgencyEstate

public class EstateImpl
extends AbstractImplItem
implements SerializableXmlElement

Implementierung einer Immobilie.
$Id: EstateImpl.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Field Summary
static String XML_ATTRIB_CONTACT_ID
           
static String XML_ATTRIB_CURRENCY
           
static String XML_ATTRIB_HIDDEN_PRICES
           
static String XML_ATTRIB_ID
          XML-Attributes
static String XML_ATTRIB_LANGUAGES
           
static String XML_ATTRIB_PUBLIC_ID
           
static String XML_ATTRIB_PUBLISH_BEGIN
           
static String XML_ATTRIB_PUBLISH_END
           
static String XML_ELEMENT
          XML-Elements
static String XML_ELEMENT_ACTION
           
static String XML_ELEMENT_ADRESS
           
static String XML_ELEMENT_ATTACHMENT
           
static String XML_ELEMENT_ATTRIBUTES
           
static String XML_ELEMENT_TITLE
           
static String XML_ELEMENT_TITLE_LANGUAGE
           
static String XML_ELEMENT_TITLE_TEXT
           
static String XML_ELEMENT_VALUES
           
 
Constructor Summary
EstateImpl()
          Erzeugt eine Instanz der Klasse 'EstateImpl'
EstateImpl(org.dom4j.Document doc)
           
 
Method Summary
 String getAction()
           
 EstateAdressImpl getAdress()
           
 List<EstateAttachmentImpl> getAttachments()
           
 ValueImpl getAttribute(String key)
           
 ValueImpl getAttribute(String group, String attrib)
           
 Set<String> getAttributeKeys()
           
 Collection<ValueImpl> getAttributes()
           
 String getContactId()
           
 Currency getCurrency()
           
 CustomValuesImpl getCustomValues()
           
 String getId()
           
 List<String> getLanguages()
           
 String getPublicId()
           
 Date getPublishBegin()
           
 Date getPublishEnd()
           
 String getTitle()
           
 String getTitle(Locale locale)
           
 String getTitle(String locale)
           
 String[] getTitleLanguages()
           
 OpenEstateType getType()
           
 boolean hasAttribute(String key)
           
 boolean hasAttribute(String group, String attrib)
           
 boolean hasAttribute(ValueImpl value)
           
 boolean isAdressPublished()
           
 boolean isHiddenPrices()
           
 void merge(AbstractImplItem item)
           
 void putAttribute(OpenEstateAttrib attrib, ValueImpl value)
           
 void putAttribute(String attribKey, ValueImpl value)
           
 void readFromXml(org.dom4j.Document doc)
           
 void readFromXml(org.dom4j.Element node)
           
 void serializeToXml(org.dom4j.Document doc)
           
 void serializeToXml(org.dom4j.Element node)
           
 void setAdressPublished(boolean val)
           
 void setContactId(String val)
           
 void setCurrency(Currency val)
           
 void setCustomValues(CustomValuesImpl val)
           
 void setHiddenPrices(Boolean val)
           
 void setId(String val)
           
 void setPublicId(String val)
           
 void setPublishBegin(Date val)
           
 void setPublishEnd(Date val)
           
 void setTitle(String val)
           
 void setTitle(String val, Locale locale)
           
 void setTitle(String val, String locale)
           
 void setType(OpenEstateType estateType, String estateAction)
           
 void setType(String estateType, String estateAction)
           
 
Methods inherited from class com.openindex.openestate.impl.AbstractImplItem
getValue, getValue, getValues, putValue, selectAttribute, selectAttribute, selectAttributeAsBoolean, selectAttributeAsBoolean, selectAttributeAsCurrency, selectAttributeAsCurrency, selectAttributeAsDate, selectAttributeAsDate, selectAttributeAsDateTime, selectAttributeAsDateTime, selectAttributeAsDouble, selectAttributeAsDouble, selectAttributeAsFloat, selectAttributeAsFloat, selectAttributeAsURL, selectAttributeAsURL, selectChildElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_ATTRIB_ID

public static final String XML_ATTRIB_ID
XML-Attributes

See Also:
Constant Field Values

XML_ATTRIB_CONTACT_ID

public static final String XML_ATTRIB_CONTACT_ID
See Also:
Constant Field Values

XML_ATTRIB_CURRENCY

public static final String XML_ATTRIB_CURRENCY
See Also:
Constant Field Values

XML_ATTRIB_HIDDEN_PRICES

public static final String XML_ATTRIB_HIDDEN_PRICES
See Also:
Constant Field Values

XML_ATTRIB_LANGUAGES

public static final String XML_ATTRIB_LANGUAGES
See Also:
Constant Field Values

XML_ATTRIB_PUBLIC_ID

public static final String XML_ATTRIB_PUBLIC_ID
See Also:
Constant Field Values

XML_ATTRIB_PUBLISH_BEGIN

public static final String XML_ATTRIB_PUBLISH_BEGIN
See Also:
Constant Field Values

XML_ATTRIB_PUBLISH_END

public static final String XML_ATTRIB_PUBLISH_END
See Also:
Constant Field Values

XML_ELEMENT

public static final String XML_ELEMENT
XML-Elements

See Also:
Constant Field Values

XML_ELEMENT_ADRESS

public static final String XML_ELEMENT_ADRESS
See Also:
Constant Field Values

XML_ELEMENT_TITLE

public static final String XML_ELEMENT_TITLE
See Also:
Constant Field Values

XML_ELEMENT_TITLE_TEXT

public static final String XML_ELEMENT_TITLE_TEXT
See Also:
Constant Field Values

XML_ELEMENT_TITLE_LANGUAGE

public static final String XML_ELEMENT_TITLE_LANGUAGE
See Also:
Constant Field Values

XML_ELEMENT_ATTACHMENT

public static final String XML_ELEMENT_ATTACHMENT
See Also:
Constant Field Values

XML_ELEMENT_ACTION

public static final String XML_ELEMENT_ACTION
See Also:
Constant Field Values

XML_ELEMENT_ATTRIBUTES

public static final String XML_ELEMENT_ATTRIBUTES
See Also:
Constant Field Values

XML_ELEMENT_VALUES

public static final String XML_ELEMENT_VALUES
See Also:
Constant Field Values
Constructor Detail

EstateImpl

public EstateImpl()
Erzeugt eine Instanz der Klasse 'EstateImpl'


EstateImpl

public EstateImpl(org.dom4j.Document doc)
           throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException
Method Detail

getAction

public String getAction()

getAdress

public EstateAdressImpl getAdress()

getAttachments

public List<EstateAttachmentImpl> getAttachments()

getAttribute

public ValueImpl getAttribute(String key)

getAttribute

public ValueImpl getAttribute(String group,
                              String attrib)

getAttributeKeys

public Set<String> getAttributeKeys()

getAttributes

public Collection<ValueImpl> getAttributes()

getContactId

public String getContactId()

getCurrency

public Currency getCurrency()

getCustomValues

public CustomValuesImpl getCustomValues()

getId

public String getId()

getLanguages

public List<String> getLanguages()

getPublicId

public String getPublicId()

getPublishBegin

public Date getPublishBegin()

getPublishEnd

public Date getPublishEnd()

getTitle

public String getTitle()

getTitle

public String getTitle(Locale locale)

getTitle

public String getTitle(String locale)

getTitleLanguages

public String[] getTitleLanguages()

getType

public OpenEstateType getType()

hasAttribute

public boolean hasAttribute(ValueImpl value)

hasAttribute

public boolean hasAttribute(String group,
                            String attrib)

hasAttribute

public boolean hasAttribute(String key)

isAdressPublished

public boolean isAdressPublished()

isHiddenPrices

public boolean isHiddenPrices()

merge

public void merge(AbstractImplItem item)
Overrides:
merge in class AbstractImplItem

putAttribute

public void putAttribute(OpenEstateAttrib attrib,
                         ValueImpl value)

putAttribute

public void putAttribute(String attribKey,
                         ValueImpl value)

readFromXml

public void readFromXml(org.dom4j.Document doc)
                 throws org.dom4j.DocumentException
Specified by:
readFromXml in interface SerializableXmlElement
Throws:
org.dom4j.DocumentException

readFromXml

public void readFromXml(org.dom4j.Element node)
                 throws org.dom4j.DocumentException
Specified by:
readFromXml in interface SerializableXmlType
Throws:
org.dom4j.DocumentException

serializeToXml

public void serializeToXml(org.dom4j.Document doc)
                    throws org.dom4j.DocumentException
Specified by:
serializeToXml in interface SerializableXmlElement
Throws:
org.dom4j.DocumentException

serializeToXml

public void serializeToXml(org.dom4j.Element node)
                    throws org.dom4j.DocumentException
Specified by:
serializeToXml in interface SerializableXmlType
Throws:
org.dom4j.DocumentException

setAdressPublished

public void setAdressPublished(boolean val)

setContactId

public void setContactId(String val)

setCurrency

public void setCurrency(Currency val)

setCustomValues

public void setCustomValues(CustomValuesImpl val)

setHiddenPrices

public void setHiddenPrices(Boolean val)

setId

public void setId(String val)

setPublicId

public void setPublicId(String val)

setPublishBegin

public void setPublishBegin(Date val)

setPublishEnd

public void setPublishEnd(Date val)

setTitle

public void setTitle(String val)

setTitle

public void setTitle(String val,
                     Locale locale)

setTitle

public void setTitle(String val,
                     String locale)

setType

public void setType(String estateType,
                    String estateAction)
             throws OpenEstateException
Throws:
OpenEstateException

setType

public void setType(OpenEstateType estateType,
                    String estateAction)


Copyright © 2012 OpenEstate. All Rights Reserved.