org.enhydra.barracuda.core.view
Class ClientType

java.lang.Object
  extended byorg.enhydra.barracuda.core.view.ClientType
Direct Known Subclasses:
ClientType.GenericBrowserImpl

public abstract class ClientType
extends Object

This class defines all valid ClientTypes.

We start by defining a series of basic interfaces to define all known client types and specify how they relate to one another. Please note that these are hierarchical in nature. Strongly typed ClientType interfaces include:

We can reference these interfaces to determine what kind of ClientType we're actually dealing with. We also define concrete client types to allow us to actually assign client type values.

Concrete client types include:

This all functions in a manner similar to the FormatType class. For more details, please refer to those Javadocs.


Nested Class Summary
static interface ClientType.ChtmlBrowser
           
protected static class ClientType.ChtmlBrowserImpl
           
static interface ClientType.GenericBrowser
           
protected static class ClientType.GenericBrowserImpl
           
static interface ClientType.Html32Browser
           
protected static class ClientType.Html32BrowserImpl
           
static interface ClientType.Html40Browser
           
protected static class ClientType.Html40BrowserImpl
           
static interface ClientType.HtmlBrowser
           
protected static class ClientType.HtmlBrowserImpl
           
static interface ClientType.HtmlStandardBrowser
           
protected static class ClientType.HtmlStandardBrowserImpl
           
static interface ClientType.IE3x
           
protected static class ClientType.IE3xImpl
           
static interface ClientType.IE4x
           
protected static class ClientType.IE4xImpl
           
static interface ClientType.IE5x
           
protected static class ClientType.IE5xImpl
           
static interface ClientType.IE6x
           
protected static class ClientType.IE6xImpl
           
static interface ClientType.NN3x
           
protected static class ClientType.NN3xImpl
           
static interface ClientType.NN4x
           
protected static class ClientType.NN4xImpl
           
static interface ClientType.NN6x
           
protected static class ClientType.NN6xImpl
           
static interface ClientType.Opera4x
           
protected static class ClientType.Opera4xImpl
           
static interface ClientType.Opera5x
           
protected static class ClientType.Opera5xImpl
           
static interface ClientType.UnknownBrowser
           
protected static class ClientType.UnknownBrowserImpl
           
static interface ClientType.VxmlBrowser
           
protected static class ClientType.VxmlBrowserImpl
           
static interface ClientType.WmlBrowser
           
protected static class ClientType.WmlBrowserImpl
           
static interface ClientType.XhtmlBrowser
           
protected static class ClientType.XhtmlBrowserImpl
           
static interface ClientType.XmlBrowser
           
protected static class ClientType.XmlBrowserImpl
           
 
Field Summary
static ClientType CHTML_BROWSER
           
static ClientType HTML_3_2_BROWSER
           
static ClientType HTML_4_0_BROWSER
           
static ClientType HTML_BROWSER
           
static ClientType IE_3x
           
static ClientType IE_4x
           
static ClientType IE_5x
           
static ClientType IE_6x
           
static ClientType NN_3x
           
static ClientType NN_4x
           
static ClientType NN_6x
           
static ClientType OPERA_4x
           
static ClientType OPERA_5x
           
static ClientType UNKNOWN_BROWSER
           
static ClientType VXML_BROWSER
           
static ClientType WML_BROWSER
           
static ClientType XHTML_BROWSER
           
static ClientType XML_BROWSER
           
 
Constructor Summary
protected ClientType()
          Private constructor to prevent external instantiation
 
Method Summary
static ClientType getInstance(String strName)
          Given a target string, find the matching client type
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_BROWSER

public static final ClientType HTML_BROWSER

HTML_3_2_BROWSER

public static final ClientType HTML_3_2_BROWSER

IE_3x

public static final ClientType IE_3x

IE_4x

public static final ClientType IE_4x

NN_3x

public static final ClientType NN_3x

NN_4x

public static final ClientType NN_4x

OPERA_4x

public static final ClientType OPERA_4x

HTML_4_0_BROWSER

public static final ClientType HTML_4_0_BROWSER

IE_5x

public static final ClientType IE_5x

IE_6x

public static final ClientType IE_6x

NN_6x

public static final ClientType NN_6x

OPERA_5x

public static final ClientType OPERA_5x

CHTML_BROWSER

public static final ClientType CHTML_BROWSER

XML_BROWSER

public static final ClientType XML_BROWSER

VXML_BROWSER

public static final ClientType VXML_BROWSER

WML_BROWSER

public static final ClientType WML_BROWSER

XHTML_BROWSER

public static final ClientType XHTML_BROWSER

UNKNOWN_BROWSER

public static final ClientType UNKNOWN_BROWSER
Constructor Detail

ClientType

protected ClientType()
Private constructor to prevent external instantiation

Method Detail

getInstance

public static ClientType getInstance(String strName)
Given a target string, find the matching client type

Parameters:
strName - the str name that describes this client type (ie. "ClientType.HTML_BROWSER", etc)
Returns:
the matching client type or null if there is no match

main

public static void main(String[] args)


Copyright © 2003 BarracudaMVC.org All Rights Reserved.