public class

MediaImpl

extends Object
implements Serializable JPAEntity Media
java.lang.Object
   ↳ vars.knowledgebase.jpa.MediaImpl

Class Overview

Created by IntelliJ IDEA. User: brian Date: Jun 19, 2009 Time: 10:02:15 AM To change this template use File | Settings | File Templates.

Summary

[Expand]
Inherited Constants
From interface vars.knowledgebase.Media
Public Constructors
MediaImpl()
Public Methods
boolean equals(Object obj)
String getCaption()
Gets the Media 'caption' attribute.
ConceptMetadata getConceptMetadata()
Gets the conceptDelegate attribute of the Media object
String getCredit()
Gets the Media 'credit' attribute.
Long getId()
Object getPrimaryKey()
String getType()
Gets the Media 'type' attribute.
String getUrl()
int hashCode()
Boolean isPrimary()
Gets the Media 'primary' attribute.
void setCaption(String caption)
Sets the Media 'caption' attribute.
void setCredit(String credit)
Sets the Media 'credit' attribute.
void setId(Long id)
void setPrimary(Boolean primary)
Sets the Media 'primary' attribute.
void setType(String type)
Sets the Media 'type' attribute.
void setUrl(String url)
String stringValue()
Gets a String representation of this Media suitable for feeding to the method createFromString() to recreate the content of a Media.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface vars.VARSObject
From interface vars.jpa.JPAEntity
From interface vars.knowledgebase.Media

Public Constructors

public MediaImpl ()

Public Methods

public boolean equals (Object obj)

public String getCaption ()

Gets the Media 'caption' attribute.

Returns
  • The String caption of the Media

public ConceptMetadata getConceptMetadata ()

Gets the conceptDelegate attribute of the Media object

Returns
  • The conceptDelegate value

public String getCredit ()

Gets the Media 'credit' attribute.

Returns
  • The String credit of the Media

public Long getId ()

public Object getPrimaryKey ()

public String getType ()

Gets the Media 'type' attribute.

Returns
  • The Type of the Media.

public String getUrl ()

public int hashCode ()

public Boolean isPrimary ()

Gets the Media 'primary' attribute.

Returns
  • The boolean primary of the Media

public void setCaption (String caption)

Sets the Media 'caption' attribute.

Parameters
caption String caption of the Media

public void setCredit (String credit)

Sets the Media 'credit' attribute.

Parameters
credit String credit of the Media

public void setId (Long id)

public void setPrimary (Boolean primary)

Sets the Media 'primary' attribute.

Parameters
primary boolean primary of the Media

public void setType (String type)

Sets the Media 'type' attribute.

Parameters
type String representation of a Type for this Media

public void setUrl (String url)

public String stringValue ()

Gets a String representation of this Media suitable for feeding to the method createFromString() to recreate the content of a Media. This content is the same as that used in the state-based equals() method.

Returns
  • A String representation of this Media in the format:
     fileName | type | primary (or additional) | credit | caption
     

public String toString ()