public class AccessControlSchemaXmlMapper extends Object implements AccessControlSchemaMapper
Modifier and Type | Class and Description |
---|---|
protected static class |
AccessControlSchemaXmlMapper.ValidationEventHandlerImpl
Custom implementation of
ValidationEventHandler . |
Modifier and Type | Field and Description |
---|---|
private JAXBContext |
jaxbContext |
private static org.slf4j.Logger |
LOG
Logger instance.
|
Constructor and Description |
---|
AccessControlSchemaXmlMapper()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
AccessControlSchema |
read(InputStream in)
Reads the
AccessControlSchema from the given InputStream . |
void |
write(AccessControlSchema conf,
OutputStream out)
Writes the given
AccessControlSchema to the given OutputStream . |
void |
writeXsd(File outFile)
Generates the XSD (XML Schema Definition) to the given
File . |
void |
writeXsd(OutputStream out)
Generates the XSD (XML Schema Definition) to the given
OutputStream . |
private static final org.slf4j.Logger LOG
private JAXBContext jaxbContext
public AccessControlSchemaXmlMapper()
public void write(AccessControlSchema conf, OutputStream out)
AccessControlSchemaMapper
AccessControlSchema
to the given OutputStream
.write
in interface AccessControlSchemaMapper
conf
- is the AccessControlSchema
to write.out
- is the OutputStream
where to write the AccessControlSchema
to. Has to be
closed
by the caller of this method who created the stream.public AccessControlSchema read(InputStream in)
AccessControlSchemaMapper
AccessControlSchema
from the given InputStream
.read
in interface AccessControlSchemaMapper
in
- is the InputStream
with AccessControlSchema
to read. Has to be
closed
by the caller of this method who created the stream.AccessControlSchema
represented by the given input.public void writeXsd(File outFile)
File
.outFile
- is the File
to write to.public void writeXsd(OutputStream out)
OutputStream
.out
- is the OutputStream
to write to.Copyright © 2014–2016 OASP-Team. All rights reserved.