org.jafer.registry.web.struts.bean
Class ModsRecord

java.lang.Object
  extended by org.jafer.registry.web.struts.bean.ModsRecord

public class ModsRecord
extends java.lang.Object

This bean represents a mods record


Field Summary
static java.lang.String AUTHOR
          Use this string to get the author field
private  java.util.Map fields
          Stores a reference to the mods fields this bean displays
static java.lang.String ISBN
          Use this string to get the isbn field
static java.lang.String OWNER
          Use this string to get the owner field
static java.lang.String TITLE
          Use this string to get the title field
static java.lang.String TYPE
          Use this string to get the type field
 
Constructor Summary
ModsRecord(Field modsroot)
           
ModsRecord(java.util.Map map)
          Constructor
 
Method Summary
 java.lang.String getAuthor()
          Gets the author
 java.lang.String getField(java.lang.String key)
          Gets the specified field from the record
 java.util.Map getFields()
          Get all the mods fields of the record.
 java.lang.String getIsbn()
          Gets the ISBN
 java.lang.String getOwner()
          Gets the Owner
private static java.lang.String getOwner(Field modsroot)
          Retrieves the owner's displayForm or namePart if exists.
private static java.lang.String getSubNodeText(Field f, java.lang.String n1)
           
private static java.lang.String getSubNodeText(Field f, java.lang.String n1, java.lang.String n2)
           
 java.lang.String getTitle()
          Gets the title
 java.lang.String getType()
          Gets the type
private static java.lang.String stripLastChar(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHOR

public static final transient java.lang.String AUTHOR
Use this string to get the author field

See Also:
Constant Field Values

TYPE

public static final transient java.lang.String TYPE
Use this string to get the type field

See Also:
Constant Field Values

TITLE

public static final transient java.lang.String TITLE
Use this string to get the title field

See Also:
Constant Field Values

OWNER

public static final transient java.lang.String OWNER
Use this string to get the owner field

See Also:
Constant Field Values

ISBN

public static final transient java.lang.String ISBN
Use this string to get the isbn field

See Also:
Constant Field Values

fields

private java.util.Map fields
Stores a reference to the mods fields this bean displays

Constructor Detail

ModsRecord

public ModsRecord(java.util.Map map)
Constructor

Parameters:
map - The map of fileds

ModsRecord

public ModsRecord(Field modsroot)
Method Detail

getSubNodeText

private static java.lang.String getSubNodeText(Field f,
                                               java.lang.String n1)

getSubNodeText

private static java.lang.String getSubNodeText(Field f,
                                               java.lang.String n1,
                                               java.lang.String n2)

getField

public java.lang.String getField(java.lang.String key)
Gets the specified field from the record

Parameters:
key - The key of the field required
Returns:
The field text

getFields

public java.util.Map getFields()
Get all the mods fields of the record.

Returns:
Returns the field.

getAuthor

public java.lang.String getAuthor()
Gets the author

Returns:
Returns the author.

getIsbn

public java.lang.String getIsbn()
Gets the ISBN

Returns:
Returns the ISBN.

getOwner

public java.lang.String getOwner()
Gets the Owner

Returns:
Returns the Owner.

getTitle

public java.lang.String getTitle()
Gets the title

Returns:
Returns the title.

getType

public java.lang.String getType()
Gets the type

Returns:
Returns the type.

stripLastChar

private static java.lang.String stripLastChar(java.lang.String str)

getOwner

private static java.lang.String getOwner(Field modsroot)
Retrieves the owner's displayForm or namePart if exists.