Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.util.definition
Interface ObjectDefinition<T>

Type Parameters:
T - the object type
All Known Subinterfaces:
CRSDefinitionFactory<T>, FilterDefinition<F>, MessageDefinition<T>, ReportDefinition<T>
All Known Implementing Classes:
AbstractMessageDefinition, AbstractReportDefinition, CodeDefinitionFactory, CQLFilterDefinition, ECQLFilterDefinition, InstanceValidationMessageDefinition, InstanceValidationReportDefinition, IOMessageImplDefinition, IOReportImplDefinition, MessageImplDefinition, ReportImplDefintion, TransformationMessageImplDefinition, TransformationReportImplDefinition, WKTDefinitionFactory

public interface ObjectDefinition<T>

Provides support for creating an object of a certain type from a definition string and vice versa.

Author:
Simon Templer

Method Summary
 String asString(T object)
          Represent the given object as a definition string, so that it can be used to again create an object instance using parse(String).
 String getIdentifier()
          Get the factory identifier.
 Class<T> getObjectClass()
          Get the class of the supported object.
 T parse(String value)
          Parse the given definition string and create an object instance.
 

Method Detail

getIdentifier

String getIdentifier()
Get the factory identifier. The identifier must be unique for object factories that have compatible supported types. It is used to associate a definition string to the factory. The identifier may not contain a :

Returns:
the factory identifier

getObjectClass

Class<T> getObjectClass()
Get the class of the supported object.

Returns:
the object class supported by this factory

parse

T parse(String value)
Parse the given definition string and create an object instance.

Parameters:
value - the definition string to parse
Returns:
the CRS definition instance or null

asString

String asString(T object)
Represent the given object as a definition string, so that it can be used to again create an object instance using parse(String).

Parameters:
object - the object to create a string representation for
Returns:
the string representation of the object

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d