Class DefaultBeanId
- java.lang.Object
-
- org.smooks.engine.bean.repository.DefaultBeanId
-
- All Implemented Interfaces:
org.smooks.api.bean.repository.BeanId
public class DefaultBeanId extends Object implements org.smooks.api.bean.repository.BeanId
-
-
Constructor Summary
Constructors Constructor Description DefaultBeanId(org.smooks.api.bean.context.BeanIdStore beanIdStore, int index, String beanId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.smooks.api.bean.context.BeanIdStoregetBeanIdStore()org.smooks.api.resource.config.ResourceConfiggetCreateResourceConfiguration()Get theResourceConfigassociated with theBeanInstanceCreatorthat is creating the bean with which thisBeanIdinstance is associated.intgetIndex()Returns the index of the place it holds in theBeanIdStore.StringgetName()Returns the BeanId name.inthashCode()org.smooks.api.bean.repository.BeanIdsetCreateResourceConfiguration(org.smooks.api.resource.config.ResourceConfig createResourceConfig)Set theResourceConfigassociated with theBeanInstanceCreatorthat is creating the bean with which thisBeanIdinstance is associated.StringtoString()
-
-
-
Constructor Detail
-
DefaultBeanId
public DefaultBeanId(org.smooks.api.bean.context.BeanIdStore beanIdStore, int index, String beanId)- Parameters:
index-name-
-
-
Method Detail
-
setCreateResourceConfiguration
public org.smooks.api.bean.repository.BeanId setCreateResourceConfiguration(org.smooks.api.resource.config.ResourceConfig createResourceConfig)
Set theResourceConfigassociated with theBeanInstanceCreatorthat is creating the bean with which thisBeanIdinstance is associated.- Specified by:
setCreateResourceConfigurationin interfaceorg.smooks.api.bean.repository.BeanId- Parameters:
createResourceConfig- TheResourceConfigof the creator.- Returns:
- This object instance.
-
getCreateResourceConfiguration
public org.smooks.api.resource.config.ResourceConfig getCreateResourceConfiguration()
Get theResourceConfigassociated with theBeanInstanceCreatorthat is creating the bean with which thisBeanIdinstance is associated.- Specified by:
getCreateResourceConfigurationin interfaceorg.smooks.api.bean.repository.BeanId- Returns:
- The
ResourceConfigof the creator.
-
getIndex
public int getIndex()
Returns the index of the place it holds in theBeanIdStore.- Specified by:
getIndexin interfaceorg.smooks.api.bean.repository.BeanId- Returns:
- the index
-
getName
public String getName()
Returns the BeanId name.- Specified by:
getNamein interfaceorg.smooks.api.bean.repository.BeanId- Returns:
- the name
-
getBeanIdStore
public org.smooks.api.bean.context.BeanIdStore getBeanIdStore()
- Specified by:
getBeanIdStorein interfaceorg.smooks.api.bean.repository.BeanId
-
-