org.jafer.registry.model
Class Protocol

java.lang.Object
  extended by org.jafer.registry.model.Protocol

public final class Protocol
extends java.lang.Object


Field Summary
private  java.lang.String name
          Stores a reference to the name of the protocol.
static Protocol PROTOCOL_SRW
          Stores a reference to the SRW protocol.
static Protocol PROTOCOL_Z3950
          Stores a reference to the Z3950 protocol.
static java.util.List protocols
          Stores a reference to all the protocols
 
Constructor Summary
private Protocol(java.lang.String name)
          Private constructor to create the supported protocols
 
Method Summary
 boolean equals(Protocol protocol)
          Compares two protocol instances to see if they are equal
static java.util.List getAllProtocols()
          Returns a list of all the supported protocols
 java.lang.String getName()
          Returns the name of the protocol
 java.lang.String toString()
          Returns the to String representation of the protocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOCOL_Z3950

public static final Protocol PROTOCOL_Z3950
Stores a reference to the Z3950 protocol.


PROTOCOL_SRW

public static final Protocol PROTOCOL_SRW
Stores a reference to the SRW protocol.


protocols

public static java.util.List protocols
Stores a reference to all the protocols


name

private java.lang.String name
Stores a reference to the name of the protocol.

Constructor Detail

Protocol

private Protocol(java.lang.String name)
Private constructor to create the supported protocols

Parameters:
name - The name of the protocol being created
Method Detail

getAllProtocols

public static java.util.List getAllProtocols()
Returns a list of all the supported protocols

Returns:
list of Protocol objects

getName

public java.lang.String getName()
Returns the name of the protocol

Returns:
The protocols name

equals

public boolean equals(Protocol protocol)
Compares two protocol instances to see if they are equal

Parameters:
protocol - The protocol to compare against this instance
Returns:
true if the two instances are the same

toString

public java.lang.String toString()
Returns the to String representation of the protocol

Overrides:
toString in class java.lang.Object
Returns:
The protocols name