com.sourceforge.jpatterns.core.configuration.model
Class JPatternsConfigBean

java.lang.Object
  extended by com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBaseBean
      extended by com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBean
All Implemented Interfaces:
com.zmicer.utils.model.ICheckable, Serializable

public class JPatternsConfigBean
extends JPatternsConfigBaseBean

This bean represents the JPatternsConfig, it contains this castor object by itself and also several additional data storages - representations of the JPatternsConfig from the point of view of logical sections CastorSectionType, and the business items CastorNameScopePriorityType.
$Author:: zmicer $
$Rev:: 57 $
* $Date:: 2007-08-23 09:16:37 #$
$Date:: 2007-08-23 09:16:37 #$

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger LOG
          Logger instance.
 
Constructor Summary
JPatternsConfigBean()
          Default public constructor.
 
Method Summary
 boolean check()
          Perform the check of the composition of the JPatternsConfigBean object.
 com.sourceforge.jpatterns.schema.JPatternsConfig getCastorConfig()
           
 String getDefaultScope()
           
 void setCastorConfig(com.sourceforge.jpatterns.schema.JPatternsConfig config)
          Set the new value to the class member storing the native castor configuration.
 void setDefaultScope(String scope)
          Set the new value for the default scope.
 
Methods inherited from class com.sourceforge.jpatterns.core.configuration.model.JPatternsConfigBaseBean
getBusinessItem, getBusinessItems, getListOfSectionItems, getSection, getSectionItems, setBusinessItem, setBusinessItems, setSection, setSectionItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Logger instance.

Constructor Detail

JPatternsConfigBean

public JPatternsConfigBean()
Default public constructor.

Method Detail

setCastorConfig

public void setCastorConfig(com.sourceforge.jpatterns.schema.JPatternsConfig config)
Set the new value to the class member storing the native castor configuration. This method also changes the value of the default scope to the one defined at the provided JPatternsConfig.

Parameters:
config - JPatternsConfig new value of the castor object to be set. Can not be null (otherwise IllegalArgumentException would appear).

getCastorConfig

public com.sourceforge.jpatterns.schema.JPatternsConfig getCastorConfig()
Returns:
the castor object - root configuration storage

setDefaultScope

public void setDefaultScope(String scope)
Set the new value for the default scope. In the case it is null/empty - com.sourceforge.jpatterns.core.JPConstants.DEFAULT_SCOPE_NAME would be set.

Parameters:
scope - the new value for the scope varible. Could take any values

getDefaultScope

public String getDefaultScope()
Returns:
the value of the default scope

check

public boolean check()
Perform the check of the composition of the JPatternsConfigBean object. We would just check all the members of the bean are set.

Specified by:
check in interface com.zmicer.utils.model.ICheckable
Overrides:
check in class JPatternsConfigBaseBean
Returns:
true if all is ok with the composition of the bean, false otherwise.
See Also:
ICheckable.check()


Copyright © 2007 jzmicer.team. All Rights Reserved.