org.exoplatform.container.configuration
Class ConfigurationUnmarshaller

java.lang.Object
  extended by org.exoplatform.container.configuration.ConfigurationUnmarshaller

public class ConfigurationUnmarshaller
extends java.lang.Object

Unmarshall a configuration.

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ConfigurationUnmarshaller()
           
 
Method Summary
 boolean isValid(java.net.URL url)
          Returns true if the configuration file is valid according to its schema declaration.
 Configuration unmarshall(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationUnmarshaller

public ConfigurationUnmarshaller()
Method Detail

isValid

public boolean isValid(java.net.URL url)
                throws java.lang.NullPointerException,
                       java.io.IOException
Returns true if the configuration file is valid according to its schema declaration. If the file does not have any schema declaration, the file will be reported as valid.

Parameters:
url - the url of the configuration to validate
Returns:
true if the configuration file is valid
Throws:
java.io.IOException - any IOException thrown by using the provided URL
java.lang.NullPointerException - if the provided URL is null

unmarshall

public Configuration unmarshall(java.net.URL url)
                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2012 eXo Platform SAS. All Rights Reserved.