de.jstacs
Interface Storable

All Known Subinterfaces:
Constraint, Model, NormalizableScoringFunction, ParameterValidator, ScoringFunction
All Known Implementing Classes:
AbstractClassifier, AbstractMixtureModel, AbstractMixtureScoringFunction, AbstractModel, AbstractNormalizableScoringFunction, AbstractScoreBasedClassifier, AbstractScoreBasedClassifier.DoubleTableResult, Alphabet, Alphabet.AlphabetParameterSet, AlphabetContainer, AlphabetContainerParameterSet, AlphabetContainerParameterSet.AlphabetArrayParameterSet, AlphabetContainerParameterSet.SectionDefinedAlphabetParameterSet, ArrayParameterSet, BayesianNetworkModel, BayesianNetworkModelParameterSet, BayesianNetworkScoringFunction, BTExplainingAwayResidual, BTMutualInformation, BurnInTest, CategoricalResult, CisRegulatoryModuleAnnotation, ClassifierAssessmentAssessParameterSet, CLLClassifier, CLLClassifierParameterSet, CollectionParameter, ComplementableDiscreteAlphabet, CompositeModel, ConfusionMatrix, Constraint, ConstraintValidator, ContinuousAlphabet, ContinuousAlphabet.ContinuousAlphabetParameterSet, DAGModel, DGMParameterSet, DiscreteAlphabet, DiscreteAlphabet.DiscreteAlphabetParameterSet, DiscreteGraphicalModel, DNAAlphabet, DNAAlphabet.DNAAlphabetParameterSet, DoesNothingLogPrior, EnumParameter, ExpandableParameterSet, FileParameter, FileParameter.FileRepresentation, FSDAGModel, FSDAGModelForGibbsSampling, FSDAGMParameterSet, HMM0ScoringFunction, HMMScoringFunction, HomogeneousScoringFunction, IDGMParameterSet, ImageResult, IndependentProductScoringFunction, InhCondProb, InhConstraint, InhomogeneousDGM, InhomogeneousMarkov, InstanceParameterSet, IntronAnnotation, KFoldCVAssessParameterSet, ListResult, LocatedSequenceAnnotation, LocatedSequenceAnnotationWithLength, LogPrior, MappingClassifier, MeanResultSet, Measure, MeasureParameters, MEMConstraint, MixtureModel, MixtureScoringFunction, ModelBasedClassifier, MotifAnnotation, MRFScoringFunction, MultiSelectionCollectionParameter, NumberValidator, NumericalResult, NumericalResultSet, Parameter, Parameter, ParameterSet, ParameterSetContainer, PMMExplainingAwayResidual, PMMMutualInformation, RangeParameter, ReferenceConstraint, RepeatedHoldOutAssessParameterSet, RepeatedSubSamplingAssessParameterSet, Result, ResultSet, Sampled_RepeatedHoldOutAssessParameterSet, SampleResult, ScoreClassifier, ScoreClassifierParameterSet, SeparateGaussianLogPrior, SeparateLaplaceLogPrior, SeparateLogPrior, SequenceAnnotation, SharedStructureClassifier, SharedStructureMixture, SimpleBurnInTest, SimpleGaussianSumLogPrior, SimpleParameter, SimpleParameterSet, SimpleReferenceConstraint, SimpleResult, SimpleStaticConstraint, SinglePositionSequenceAnnotation, StorableResult, StorableValidator, StrandedLocatedSequenceAnnotationWithLength, StrandModel, UniformHomogeneousScoringFunction, UniformModel, UniformScoringFunction, VariableLengthScoringFunction

public interface Storable

This is the root interface for all immutable objects that must be stored in e.g. a file or a database. Classes that implement this interface must provide a constructor with a single parameter of type StringBuffer.

The recommended way to store the objects is an XML-representation, because it is human-readable and flexible enough to describe all objects properly. For convenience XMLParser provides methods to store all primitive data types, Strings, Storables and their array types.

For writing or reading a StringBuffer to or from a file you can use FileManager.

Author:
Jan Grau, Jens Keilwagen
See Also:
XMLParser, FileManager

Method Summary
 StringBuffer toXML()
          This method returns an XML-representation of an instance of the implementing class.
 

Method Detail

toXML

StringBuffer toXML()
This method returns an XML-representation of an instance of the implementing class.

Returns:
the XML-representation