List of usage examples for org.dom4j DocumentException DocumentException
public DocumentException(Throwable cause)
From source file:org.pentaho.pac.server.config.PentahoObjectsConfig.java
License:Open Source License
public void setDocument(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT)) { throw new DocumentException( Messages.getErrorString("PentahoObjectsConfig.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }//from ww w . j ava 2 s . c o m document = doc; }
From source file:org.pentaho.pac.server.config.PentahoSpringBeansConfig.java
License:Open Source License
public PentahoSpringBeansConfig(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException( Messages.getErrorString("PentahoSpringBeansConfig.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }/*from w w w .j a v a 2 s . co m*/ document = doc; }
From source file:org.pentaho.pac.server.config.PentahoXml.java
License:Open Source License
public PentahoXml(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException(Messages.getErrorString("PentahoXml.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }/*from w ww . j a v a 2 s. c o m*/ document = doc; }
From source file:org.pentaho.pac.server.config.PublisherConfigXml.java
License:Open Source License
public PublisherConfigXml(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException( Messages.getErrorString("GoogleMapsConfig.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }/*from ww w . j a v a2s . co m*/ setPassword(getValue(doc, PASSWORD_XPATH)); }
From source file:org.pentaho.pac.server.config.SpringSecurityHibernateConfig.java
License:Open Source License
public SpringSecurityHibernateConfig(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException(Messages.getErrorString("PentahoXml.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }/* w w w. ja va 2 s . c om*/ document = doc; }
From source file:org.pentaho.pac.server.config.SystemActionsXml.java
License:Open Source License
public SystemActionsXml(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException(Messages.getErrorString("PentahoXml.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }//from w w w. ja v a 2 s . c o m document = doc; }
From source file:org.pentaho.pac.server.config.SystemListenersConfig.java
License:Open Source License
public SystemListenersConfig(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException( Messages.getErrorString("SystemListenersConfig.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }//w ww .j a v a2s.com document = doc; }
From source file:org.pentaho.pac.server.config.WebXml.java
License:Open Source License
public WebXml(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException("Invalid root element."); //$NON-NLS-1$ }/*from w ww . j av a 2s .com*/ document = doc; }
From source file:org.pentaho.platform.config.HibernateSettingsXml.java
License:Open Source License
public HibernateSettingsXml(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException( Messages.getInstance().getErrorString("HibernateSettingsXml.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }/*from w ww . j ava2 s .co m*/ document = doc; }
From source file:org.pentaho.platform.config.PdiConfigXml.java
License:Open Source License
public PdiConfigXml(Document doc) throws DocumentException { Element rootElement = doc.getRootElement(); if ((rootElement != null) && !doc.getRootElement().getName().equals(ROOT_ELEMENT)) { throw new DocumentException( Messages.getInstance().getErrorString("GoogleMapsConfig.ERROR_0001_INVALID_ROOT_ELEMENT")); //$NON-NLS-1$ }//from w w w . j a va2 s . com document = doc; }