Class ConfigurationUnmarshaller
- java.lang.Object
-
- org.exoplatform.container.configuration.ConfigurationUnmarshaller
-
public class ConfigurationUnmarshaller extends Object
Unmarshall a configuration.- Version:
- $Revision$
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description ConfigurationUnmarshaller()ConfigurationUnmarshaller(Set<String> profiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(URL url)Returns true if the configuration file is valid according to its schema declaration.Configurationunmarshall(URL url)
-
-
-
Method Detail
-
isValid
public boolean isValid(URL url) throws NullPointerException, 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:
IOException- any IOException thrown by using the provided URLNullPointerException- if the provided URL is null
-
unmarshall
public Configuration unmarshall(URL url) throws Exception
- Throws:
Exception
-
-