Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.geometry.impl.internal
Class WKTDefinitionFactory

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.geometry.impl.internal.WKTDefinitionFactory
All Implemented Interfaces:
CRSDefinitionFactory<WKTDefinition>, ObjectDefinition<WKTDefinition>

public class WKTDefinitionFactory
extends Object
implements CRSDefinitionFactory<WKTDefinition>

Factory for CodeDefinitions

Author:
Simon Templer

Constructor Summary
WKTDefinitionFactory()
           
 
Method Summary
 String asString(WKTDefinition crsDef)
          Represent the given object as a definition string, so that it can be used to again create an object instance using ObjectDefinition.parse(String).
 String getIdentifier()
          Get the factory identifier.
 Class<WKTDefinition> getObjectClass()
          Get the class of the supported object.
 WKTDefinition parse(String value)
          Parse the given definition string and create an object instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WKTDefinitionFactory

public WKTDefinitionFactory()
Method Detail

getIdentifier

public String getIdentifier()
Description copied from interface: ObjectDefinition
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 :

Specified by:
getIdentifier in interface ObjectDefinition<WKTDefinition>
Returns:
the factory identifier
See Also:
ObjectDefinition.getIdentifier()

getObjectClass

public Class<WKTDefinition> getObjectClass()
Description copied from interface: ObjectDefinition
Get the class of the supported object.

Specified by:
getObjectClass in interface ObjectDefinition<WKTDefinition>
Returns:
the object class supported by this factory
See Also:
ObjectDefinition.getObjectClass()

parse

public WKTDefinition parse(String value)
Description copied from interface: ObjectDefinition
Parse the given definition string and create an object instance.

Specified by:
parse in interface ObjectDefinition<WKTDefinition>
Parameters:
value - the definition string to parse
Returns:
the CRS definition instance or null
See Also:
ObjectDefinition.parse(String)

asString

public String asString(WKTDefinition crsDef)
Description copied from interface: ObjectDefinition
Represent the given object as a definition string, so that it can be used to again create an object instance using ObjectDefinition.parse(String).

Specified by:
asString in interface ObjectDefinition<WKTDefinition>
Parameters:
crsDef - the object to create a string representation for
Returns:
the string representation of the object
See Also:
ObjectDefinition.asString(Object)

Humboldt Alignment Editor 2.5.0

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