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

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

public class StyleBo
extends PersistableBusinessObjectBase
implements StyleContract, groovy.lang.GroovyObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
StyleBo()
           
 
Method Summary
static StyleBo from(Style style)
           
 boolean getActive()
           
 groovy.lang.MetaClass getMetaClass()
           
 String getName()
          Returns the name of this style.
 Object getProperty(String property)
           
 Long getStyleId()
          Returns the identifier of this style.
 String getXmlContent()
          Returns the XML definition of this style as a String.
 Object invokeMethod(String method, Object arguments)
           
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setName(String value)
           
 void setProperty(String property, Object value)
           
 void setStyleId(Long value)
           
 void setXmlContent(String value)
           
static Style to(StyleBo styleBo)
           
 
Methods inherited from class org.kuali.rice.krad.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.krad.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
 

Constructor Detail

StyleBo

public StyleBo()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

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 value)

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 value)

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 value)

getActive

public boolean getActive()

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

setActive

public void setActive(boolean value)

to

public static Style to(StyleBo styleBo)

from

public static StyleBo from(Style style)


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