Package org.ivoa.dm.tapschema
Class XMLNormalizer
java.lang.Object
org.ivoa.dm.tapschema.XMLNormalizer
Utilities concerned with model column and table name normalization.
Note that this is here to allow package access to the DM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprepareForDB(TapschemaModel model) Normalize the model keys.voidprepare a model that has been read from a database for XML serialization.
-
Constructor Details
-
XMLNormalizer
public XMLNormalizer()
-
-
Method Details
-
prepareForDB
Normalize the model keys. Make sure that the correct keys are generated for a model that as been translated from an XML instance. This needs to be done to make the model ready for saving to a database.- Parameters:
model- the model instance to be normalized.
-
prepareForSerialization
prepare a model that has been read from a database for XML serialization. Note that the serialization is not performed.- Parameters:
model- the model to be serialized
-