com.gisgraphy.domain.geoloc.service.geoloc.street
Enum StreetType

java.lang.Object
  extended by java.lang.Enum<StreetType>
      extended by com.gisgraphy.domain.geoloc.service.geoloc.street.StreetType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StreetType>

public enum StreetType
extends java.lang.Enum<StreetType>

type of street

Author:
David Masclet

Enum Constant Summary
BRIDLEWAY
           
BYWAY
           
CONSTRUCTION
           
CYCLEWAY
           
FOOTWAY
           
LIVING_STREET
           
MINOR
           
MOTORWAY_LINK
           
MOTROWAY
           
PATH
           
PEDESTRIAN
           
PRIMARY
           
PRIMARY_LINK
           
RESIDENTIAL
           
ROAD
           
SECONDARY
           
SECONDARY_LINK
           
SERVICE
           
STEPS
           
TERTIARY
           
TRACK
           
TRUNK
           
TRUNK_LINK
           
UNCLASSIFIED
           
UNSURFACED
           
 
Method Summary
static StreetType getFromString(java.lang.String type)
           
static StreetType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StreetType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BYWAY

public static final StreetType BYWAY

MINOR

public static final StreetType MINOR

SECONDARY_LINK

public static final StreetType SECONDARY_LINK

CONSTRUCTION

public static final StreetType CONSTRUCTION

UNSURFACED

public static final StreetType UNSURFACED

BRIDLEWAY

public static final StreetType BRIDLEWAY

PRIMARY_LINK

public static final StreetType PRIMARY_LINK

LIVING_STREET

public static final StreetType LIVING_STREET

TRUNK_LINK

public static final StreetType TRUNK_LINK

STEPS

public static final StreetType STEPS

PATH

public static final StreetType PATH

ROAD

public static final StreetType ROAD

PEDESTRIAN

public static final StreetType PEDESTRIAN

TRUNK

public static final StreetType TRUNK

MOTROWAY

public static final StreetType MOTROWAY

CYCLEWAY

public static final StreetType CYCLEWAY

MOTORWAY_LINK

public static final StreetType MOTORWAY_LINK

PRIMARY

public static final StreetType PRIMARY

FOOTWAY

public static final StreetType FOOTWAY

TERTIARY

public static final StreetType TERTIARY

SECONDARY

public static final StreetType SECONDARY

TRACK

public static final StreetType TRACK

UNCLASSIFIED

public static final StreetType UNCLASSIFIED

SERVICE

public static final StreetType SERVICE

RESIDENTIAL

public static final StreetType RESIDENTIAL
Method Detail

values

public static StreetType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (StreetType c : StreetType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StreetType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getFromString

public static StreetType getFromString(java.lang.String type)
Parameters:
type - the type as String (case insensitive)
Returns:
the streetType from the String or null if the StreetType can not be determine


Copyright © 2010. All Rights Reserved.