org.kuali.rice.core.impl.style
Class StyleBo

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.core.impl.style.StyleBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, GloballyUnique, Versioned, ModelObjectBasic, StyleContract, BusinessObject, PersistableBusinessObject

@Entity
public class StyleBo
extends PersistableBusinessObjectBase
implements StyleContract

A BusinessObject implementation of the StyleContract which is mapped to the database for persistence.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
private  boolean active
           
private  String name
           
private static long serialVersionUID
           
private  Long styleId
           
private  String xmlContent
           
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
StyleBo()
           
 
Method Summary
static StyleBo from(Style style)
          Constructs a StyleBo from the given Style.
 String getName()
          Returns the name of this style.
 Long getStyleId()
          Returns the identifier of this style.
 String getXmlContent()
          Returns the XML definition of this style as a String.
 boolean isActive()
          Returns a boolean value determining if the Object is Active or not.
 void setActive(boolean active)
           
 void setName(String name)
           
 void setStyleId(Long styleId)
           
 void setXmlContent(String xmlContent)
           
static Style to(StyleBo styleBo)
          Converts the given StyleBo to a Style object.
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

styleId

private Long styleId

name

private String name

xmlContent

private String xmlContent

active

private boolean active
Constructor Detail

StyleBo

public StyleBo()
Method Detail

getStyleId

public Long getStyleId()
Description copied from interface: StyleContract
Returns the identifier of this style. Should only return null if this style has not been persisted to a data repository yet. Each individual style should have a unique identifier.

Specified by:
getStyleId in interface StyleContract
Returns:
the id of this style, or null if it has not yet been set

setStyleId

public void setStyleId(Long styleId)

getName

public String getName()
Description copied from interface: StyleContract
Returns the name of this style. All styles have a name and this value can never be null or blank. The name must be unique within the entire repository of existing styles.

Specified by:
getName in interface StyleContract
Returns:
the name of this style

setName

public void setName(String name)

getXmlContent

public String getXmlContent()
Description copied from interface: StyleContract
Returns the XML definition of this style as a String.

Specified by:
getXmlContent in interface StyleContract
Returns:
the xml definition of this style

setXmlContent

public void setXmlContent(String xmlContent)

isActive

public boolean isActive()
Description copied from interface: Inactivatable
Returns a boolean value determining if the Object is Active or not.

Specified by:
isActive in interface Inactivatable
Returns:
the active indicator

setActive

public void setActive(boolean active)

to

public static Style to(StyleBo styleBo)
Converts the given StyleBo to a Style object.

Parameters:
styleBo - the StyleBo to convert
Returns:
the resulting Style object, or null if the given styleBo was null

from

public static StyleBo from(Style style)
Constructs a StyleBo from the given Style.

Parameters:
style - the Style to convert
Returns:
the resulting StyleBo object, or null if the given style was null


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.