org.apache.bval.xml
Class XMLMetaBeanInfos

java.lang.Object
  extended by org.apache.bval.xml.XMLMetaBeanInfos

public class XMLMetaBeanInfos
extends Object

Description: root element of a xml-beanInfos document


Constructor Summary
XMLMetaBeanInfos()
           
 
Method Summary
 void addBean(XMLMetaBean bean)
           
 void addValidator(XMLMetaValidator validator)
           
 XMLMetaBean getBean(String id)
           
 List<XMLMetaBean> getBeans()
           
 String getId()
          used for identification, may be empty, if there is no database origin for this object.
 XMLMetaValidator getValidator(String id)
           
 List<XMLMetaValidator> getValidators()
           
 String getVersion()
          used for change-detection, when some other component caches MetaBeans based on this object.
 void setBeans(List<XMLMetaBean> beans)
           
 void setId(String id)
           
 void setValidators(List<XMLMetaValidator> validators)
           
 void setVersion(String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMetaBeanInfos

public XMLMetaBeanInfos()
Method Detail

getId

public String getId()
used for identification, may be empty, if there is no database origin for this object. could also contain a file-name - can be used flexible...


setId

public void setId(String id)

getVersion

public String getVersion()
used for change-detection, when some other component caches MetaBeans based on this object. when the version changes, the cache could compare to its version state and recompute. can be used flexible...


setVersion

public void setVersion(String version)

getValidators

public List<XMLMetaValidator> getValidators()

setValidators

public void setValidators(List<XMLMetaValidator> validators)

getBeans

public List<XMLMetaBean> getBeans()

setBeans

public void setBeans(List<XMLMetaBean> beans)

getBean

public XMLMetaBean getBean(String id)

addBean

public void addBean(XMLMetaBean bean)

getValidator

public XMLMetaValidator getValidator(String id)
                              throws Exception
Throws:
Exception

addValidator

public void addValidator(XMLMetaValidator validator)


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.