org.gcube.common.searchservice.searchlibrary.resultset.elements
Class PropertyElementType

java.lang.Object
  extended by org.gcube.common.searchservice.searchlibrary.resultset.elements.PropertyElementBase
      extended by org.gcube.common.searchservice.searchlibrary.resultset.elements.PropertyElementType

public class PropertyElementType
extends PropertyElementBase

Property Element that is used to set a specific type to the ResultSet

Author:
UoA
See Also:
PropertyElementBase

Field Summary
static java.lang.String BLOB
          The RS is of this type
static java.lang.String propertyType
          The Type of the Property this Property element produces
static java.lang.String TEXT
          The RS is of this type
static java.lang.String XML
          The RS is of this type
 
Constructor Summary
PropertyElementType()
          Default contructor required by PropertyElementBase
PropertyElementType(java.lang.String type)
          Initializes a new PropertyElementType
 
Method Summary
 void fromXML(java.lang.String xml)
          Method to be implemented that will handle the population of the custom Property element.
 java.lang.String toXML()
          Method to be implemented that will handle the serialization of the custom Property element.
 
Methods inherited from class org.gcube.common.searchservice.searchlibrary.resultset.elements.PropertyElementBase
getType, getType, RS_fromXML, RS_toXML, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyType

public static java.lang.String propertyType
The Type of the Property this Property element produces


XML

public static java.lang.String XML
The RS is of this type


TEXT

public static java.lang.String TEXT
The RS is of this type


BLOB

public static java.lang.String BLOB
The RS is of this type

Constructor Detail

PropertyElementType

public PropertyElementType()
Default contructor required by PropertyElementBase


PropertyElementType

public PropertyElementType(java.lang.String type)
                    throws java.lang.Exception
Initializes a new PropertyElementType

Parameters:
type - The tyoe of this ResultSet
Throws:
java.lang.Exception - An unrecoverable for the operation error occured
Method Detail

toXML

public java.lang.String toXML()
                       throws java.lang.Exception
Description copied from class: PropertyElementBase
Method to be implemented that will handle the serialization of the custom Property element. It is called by the PropertyElementBase.RS_toXML() which then enriches the returned serialization to produce a valid property xml string

Specified by:
toXML in class PropertyElementBase
Returns:
The serialized property payload
Throws:
java.lang.Exception - An unrecoverable for the operation error occured
See Also:
PropertyElementBase.toXML()

fromXML

public void fromXML(java.lang.String xml)
             throws java.lang.Exception
Description copied from class: PropertyElementBase
Method to be implemented that will handle the population of the custom Property element. It is called by the PropertyElementBase.RS_fromXML(String) after it has striped the xml serialization of the type property

Specified by:
fromXML in class PropertyElementBase
Parameters:
xml - The serialized string to populate the insance from
Throws:
java.lang.Exception - An unrecoverable for the operation error occured
See Also:
PropertyElementBase.fromXML(java.lang.String)