texsoft.java.object
Class XsObject

java.lang.Object
  extended bytexsoft.java.object.XsObjectWithReflection
      extended bytexsoft.java.object.XsObjectSerializable
          extended bytexsoft.java.object.XsObjectWithKey
              extended bytexsoft.java.object.XsObject
All Implemented Interfaces:
java.lang.Comparable

public abstract class XsObject
extends XsObjectWithKey

This is the full functional base class for objects with services for reflection, ordering, key, serialization.

At the moment it adds nothing to its base class. The pourpose of the class is to shield existing code that uses the package from changes in the layered structure of the various XsObject... classes. Moreover if a new features has to be added another class can be created over XsObjectWithKey, and XsObject can derive from it, without impacting existing code.

See Also:
XsObjectWithKey

Constructor Summary
XsObject()
          Creates a new XsObject instance.
XsObject(java.lang.Class iface)
          Creates new XsObject with given interface filter.
XsObject(java.lang.String ser)
          Creates a new XsObject object and initializes it with the serialized string passed as argument.
 
Methods inherited from class texsoft.java.object.XsObjectWithKey
compareTo, createKey, queryKeyClass, readKey, writeKey
 
Methods inherited from class texsoft.java.object.XsObjectSerializable
deserialize, serialize
 
Methods inherited from class texsoft.java.object.XsObjectWithReflection
applyInterfaceFilter, applyInterfaceFilter, doGet, doNew, doSet, doSet, doSet, doSet, doSet, doSet, doSet, doSet, doSet, inspect, removeInterfaceFilter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XsObject

public XsObject()
         throws XsObjectException
Creates a new XsObject instance.

Throws:
XsObjectException - thrown if a problem occurs while obtaining the inspector for the class.
See Also:
XsObjectWithReflection.XsObjectWithReflection()

XsObject

public XsObject(java.lang.Class iface)
         throws XsObjectException
Creates new XsObject with given interface filter.

Parameters:
iface - class corresponding to an interface implemented by this class used as a filter for properties accessible with inspection methods.
Throws:
XsObjectException - thrown if a problem occurs while obtaining the inspector for the class.
See Also:
XsObjectWithReflection.XsObjectWithReflection(Class)

XsObject

public XsObject(java.lang.String ser)
         throws XsObjectException
Creates a new XsObject object and initializes it with the serialized string passed as argument.

The passed String is supposed to be created by a XsObjectSerializable.serialize() method called on a object of the same type of the this.

Parameters:
ser - serialized rapresentation of an object of this class.
Throws:
XsObjectException - thrown if an error occurs during deserialization of the string.
See Also:
XsObjectSerializable.XsObjectSerializable(String)