Class XMLNormalizer

java.lang.Object
org.ivoa.dm.tapschema.XMLNormalizer

public class XMLNormalizer extends Object
Utilities concerned with model column and table name normalization. Note that this is here to allow package access to the DM.
  • Constructor Details

    • XMLNormalizer

      public XMLNormalizer()
  • Method Details

    • prepareForDB

      public void prepareForDB(TapschemaModel model)
      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

      public void prepareForSerialization(TapschemaModel model)
      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