org.openstreetmap.osmosis.core.pgsql.v0_5.impl
Class MemberTypeValueMapper

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pgsql.v0_5.impl.MemberTypeValueMapper

public class MemberTypeValueMapper
extends java.lang.Object

This is a utility class for mapping between relation member type columns and the corresponding entity type.

Author:
Brett Henderson

Constructor Summary
MemberTypeValueMapper()
           
 
Method Summary
 EntityType getEntityType(byte memberType)
          Returns the entity type value corresponding to the specified member type.
 byte getMemberType(EntityType entityType)
          Returns the member type value corresponding to the specified entity type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemberTypeValueMapper

public MemberTypeValueMapper()
Method Detail

getMemberType

public byte getMemberType(EntityType entityType)
Returns the member type value corresponding to the specified entity type.

Parameters:
entityType - The entity type.
Returns:
The corresponding member type value.

getEntityType

public EntityType getEntityType(byte memberType)
Returns the entity type value corresponding to the specified member type.

Parameters:
memberType - The member type.
Returns:
The corresponding entity type value.