org.apache.bval.xml
Class XMLMetaBeanInfos
java.lang.Object
org.apache.bval.xml.XMLMetaBeanInfos
public class XMLMetaBeanInfos
- extends Object
Description: root element of a xml-beanInfos document
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLMetaBeanInfos
public XMLMetaBeanInfos()
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.