Humboldt Alignment Editor 2.5.0

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

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

public class CodeDefinitionFactory
extends Object
implements CRSDefinitionFactory<CodeDefinition>

Factory for CodeDefinitions

Author:
Simon Templer

Constructor Summary
CodeDefinitionFactory()
           
 
Method Summary
 String asString(CodeDefinition 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<CodeDefinition> getObjectClass()
          Get the class of the supported object.
 CodeDefinition 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

CodeDefinitionFactory

public CodeDefinitionFactory()
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<CodeDefinition>
Returns:
the factory identifier
See Also:
ObjectDefinition.getIdentifier()

getObjectClass

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

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

parse

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

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

asString

public String asString(CodeDefinition 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<CodeDefinition>
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