Package org.bedework.synch.db
Class SerializablePropertiesImpl<T>
- java.lang.Object
-
- org.bedework.synch.db.SerializablePropertiesImpl<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Comparable<T>,SerializableProperties<T>
- Direct Known Subclasses:
SubscriptionConnectorInfoImpl,SubscriptionInfoImpl
public abstract class SerializablePropertiesImpl<T> extends Object implements SerializableProperties<T>
Serializable form of information for a connection to a system via a connector - a connector id and the serialized proeprties.
-
-
Constructor Summary
Constructors Constructor Description SerializablePropertiesImpl()SerializablePropertiesImpl(org.bedework.synch.wsmessages.ArrayOfSynchProperties props)Build from an array of properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoCompare(SerializablePropertiesImpl that)booleanequals(Object o)org.bedework.synch.wsmessages.ArrayOfSynchPropertiesgetAllSynchProperties()booleangetChanged()StringgetProperty(String name)Get a property from the internal properties - loading them from the external value first if necessary.StringgetSynchProperties()inthashCode()voidloadProperties()Load the properties from the serialized form.voidresetChanged()reset the changed flag.voidsetChanged(boolean val)Set the changed flagvoidsetProperty(String name, String val)Set a property in the internal properties - loading them from the external value first if necessary.voidsetSynchProperties(String val)StringtoString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Constructor Detail
-
SerializablePropertiesImpl
public SerializablePropertiesImpl()
-
SerializablePropertiesImpl
public SerializablePropertiesImpl(org.bedework.synch.wsmessages.ArrayOfSynchProperties props) throws SynchExceptionBuild from an array of properties- Parameters:
props-- Throws:
SynchException
-
-
Method Detail
-
getAllSynchProperties
public org.bedework.synch.wsmessages.ArrayOfSynchProperties getAllSynchProperties() throws SynchException- Specified by:
getAllSynchPropertiesin interfaceSerializableProperties<T>- Throws:
SynchException
-
setSynchProperties
public void setSynchProperties(String val)
- Specified by:
setSynchPropertiesin interfaceSerializableProperties<T>- Parameters:
val- serialized properties
-
getSynchProperties
public String getSynchProperties() throws SynchException
- Specified by:
getSynchPropertiesin interfaceSerializableProperties<T>- Returns:
- serialized properties
- Throws:
SynchException
-
setChanged
public void setChanged(boolean val)
Set the changed flag- Specified by:
setChangedin interfaceSerializableProperties<T>- Parameters:
val-
-
getChanged
public boolean getChanged()
- Specified by:
getChangedin interfaceSerializableProperties<T>- Returns:
- changed flag.
-
resetChanged
public void resetChanged()
reset the changed flag.- Specified by:
resetChangedin interfaceSerializableProperties<T>
-
loadProperties
public void loadProperties() throws SynchExceptionLoad the properties from the serialized form.- Specified by:
loadPropertiesin interfaceSerializableProperties<T>- Throws:
SynchException
-
setProperty
public void setProperty(String name, String val) throws SynchException
Set a property in the internal properties - loading them from the external value first if necessary.- Specified by:
setPropertyin interfaceSerializableProperties<T>- Parameters:
name-val-- Throws:
SynchException
-
getProperty
public String getProperty(String name) throws SynchException
Get a property from the internal properties - loading them from the external value first if necessary.- Specified by:
getPropertyin interfaceSerializableProperties<T>- Parameters:
name-- Returns:
- val
- Throws:
SynchException
-
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts)
-
doCompare
public int doCompare(SerializablePropertiesImpl that)
- Parameters:
that-- Returns:
- int
-
-