/** A simple value holder for a constraint for one dimension.
*/
-public final class DimConstraint// implements Externalizable
+public final class DimConstraint implements Externalizable
{
/** How this entity can be resized in the dimension that this constraint represents.
*/
return ret;
}
-// // ************************************************
-// // Persistence Delegate and Serializable combined.
-// // ************************************************
-//
-// private Object readResolve() throws ObjectStreamException
-// {
-// return LayoutUtil.getSerializedObject(this);
-// }
-//
-// @Override
-// public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
-// {
-// LayoutUtil.setSerializedObject(this, LayoutUtil.readAsXML(in));
-// }
-//
-// @Override
-// public void writeExternal(ObjectOutput out) throws IOException
-// {
-// if (getClass() == DimConstraint.class)
-// LayoutUtil.writeAsXML(out, this);
-// }
+ // ************************************************
+ // Persistence Delegate and Serializable combined.
+ // ************************************************
+
+ private Object readResolve() throws ObjectStreamException
+ {
+ return LayoutUtil.getSerializedObject(this);
+ }
+
+ @Override
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
+ {
+ LayoutUtil.setSerializedObject(this, LayoutUtil.readAsXML(in));
+ }
+
+ @Override
+ public void writeExternal(ObjectOutput out) throws IOException
+ {
+ if (getClass() == DimConstraint.class)
+ LayoutUtil.writeAsXML(out, this);
+ }
}