org.crosswire.bibledesktop.desktop
Class XSLTProperty

java.lang.Object
  extended by org.crosswire.bibledesktop.desktop.XSLTProperty
All Implemented Interfaces:
Serializable

public final class XSLTProperty
extends Object
implements Serializable

Defines properties that control the behavior of translating OSIS to HTML.

Author:
DM Smith [ dmsmith555 at hotmail dot com]
See Also:
for license details. The copyright to this program is held by it's authors., Serialized Form

Field Summary
static XSLTProperty BCV
          Show book, chapter and verse numbers.
static XSLTProperty CV
          Show chapter and verse numbers.
private  boolean defaultState
          The default state of the XSLTProperty
static XSLTProperty MORPH
          Determines whether Word Morphology (e.g.
private  String name
          The name of the XSLTProperty
private static int nextObj
           
static XSLTProperty NO_VERSE_NUMBERS
          Show no verse numbers
static XSLTProperty NOTES
          Should notes be shown
private  int obj
           
private static long serialVersionUID
          Serialization ID
static XSLTProperty START_VERSE_ON_NEWLINE
          Determines whether verses should start on a new line.
private  boolean state
          The current state of the XSLTProperty
static XSLTProperty STRONGS_NUMBERS
          Determines whether Strong's Numbers should show
static XSLTProperty TINY_VERSE_NUMBERS
          Show verse numbers as a superscript.
private static XSLTProperty[] VALUES
           
static XSLTProperty VERSE_NUMBERS
          Show verse numbers
static XSLTProperty XREF
          Should cross references be shown
 
Constructor Summary
private XSLTProperty(String name, boolean defaultState)
           
 
Method Summary
 boolean equals(Object o)
          Prevent subclasses from overriding canonical identity based Object methods
static XSLTProperty fromInteger(int i)
          Lookup method to convert from an integer
static XSLTProperty fromString(String name)
          Lookup method to convert from a String
 boolean getDefault()
           
 String getName()
           
 boolean getState()
           
 int hashCode()
          Prevent subclasses from overriding canonical identity based Object methods
(package private)  Object readResolve()
           
static void setProperties(TransformingSAXEventProvider provider)
           
 void setProperty(TransformingSAXEventProvider provider)
           
 void setState(boolean newState)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRONGS_NUMBERS

public static final XSLTProperty STRONGS_NUMBERS
Determines whether Strong's Numbers should show


MORPH

public static final XSLTProperty MORPH
Determines whether Word Morphology (e.g. Robinson) should show


START_VERSE_ON_NEWLINE

public static final XSLTProperty START_VERSE_ON_NEWLINE
Determines whether verses should start on a new line.


VERSE_NUMBERS

public static final XSLTProperty VERSE_NUMBERS
Show verse numbers


CV

public static final XSLTProperty CV
Show chapter and verse numbers.


BCV

public static final XSLTProperty BCV
Show book, chapter and verse numbers.


NO_VERSE_NUMBERS

public static final XSLTProperty NO_VERSE_NUMBERS
Show no verse numbers


TINY_VERSE_NUMBERS

public static final XSLTProperty TINY_VERSE_NUMBERS
Show verse numbers as a superscript.


NOTES

public static final XSLTProperty NOTES
Should notes be shown


XREF

public static final XSLTProperty XREF
Should cross references be shown


name

private String name
The name of the XSLTProperty


defaultState

private boolean defaultState
The default state of the XSLTProperty


state

private boolean state
The current state of the XSLTProperty


nextObj

private static int nextObj

obj

private final int obj

VALUES

private static final XSLTProperty[] VALUES

serialVersionUID

private static final long serialVersionUID
Serialization ID

See Also:
Constant Field Values
Constructor Detail

XSLTProperty

private XSLTProperty(String name,
                     boolean defaultState)
Parameters:
name - The name of this property
Method Detail

getName

public String getName()
Returns:
the name of the property

getDefault

public boolean getDefault()

getState

public boolean getState()

setState

public void setState(boolean newState)

setProperty

public void setProperty(TransformingSAXEventProvider provider)

setProperties

public static void setProperties(TransformingSAXEventProvider provider)

fromString

public static XSLTProperty fromString(String name)
Lookup method to convert from a String


fromInteger

public static XSLTProperty fromInteger(int i)
Lookup method to convert from an integer


equals

public boolean equals(Object o)
Prevent subclasses from overriding canonical identity based Object methods

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Prevent subclasses from overriding canonical identity based Object methods

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object

readResolve

Object readResolve()

Copyright ? 2003-2006