Class AccessControlSchemaXmlMapper
- java.lang.Object
-
- com.devonfw.module.security.common.impl.accesscontrol.AccessControlSchemaXmlMapper
-
- All Implemented Interfaces:
AccessControlSchemaMapper
- Direct Known Subclasses:
AccessControlSchemaXsdWriter
public class AccessControlSchemaXmlMapper extends Object implements AccessControlSchemaMapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AccessControlSchemaXmlMapper.ValidationEventHandlerImpl
Custom implementation ofValidationEventHandler
.
-
Constructor Summary
Constructors Constructor Description AccessControlSchemaXmlMapper()
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlSchema
read(InputStream in)
Reads theAccessControlSchema
from the givenInputStream
.void
write(AccessControlSchema conf, OutputStream out)
Writes the givenAccessControlSchema
to the givenOutputStream
.void
writeXsd(File outFile)
Generates the XSD (XML Schema Definition) to the givenFile
.void
writeXsd(OutputStream out)
Generates the XSD (XML Schema Definition) to the givenOutputStream
.
-
-
-
Method Detail
-
write
public void write(AccessControlSchema conf, OutputStream out)
Description copied from interface:AccessControlSchemaMapper
Writes the givenAccessControlSchema
to the givenOutputStream
.- Specified by:
write
in interfaceAccessControlSchemaMapper
- Parameters:
conf
- is theAccessControlSchema
to write.out
- is theOutputStream
where to write theAccessControlSchema
to. Has to beclosed
by the caller of this method who created the stream.
-
read
public AccessControlSchema read(InputStream in)
Description copied from interface:AccessControlSchemaMapper
Reads theAccessControlSchema
from the givenInputStream
.- Specified by:
read
in interfaceAccessControlSchemaMapper
- Parameters:
in
- is theInputStream
withAccessControlSchema
to read. Has to beclosed
by the caller of this method who created the stream.- Returns:
- the
AccessControlSchema
represented by the given input.
-
writeXsd
public void writeXsd(File outFile)
Generates the XSD (XML Schema Definition) to the givenFile
.- Parameters:
outFile
- is theFile
to write to.
-
writeXsd
public void writeXsd(OutputStream out)
Generates the XSD (XML Schema Definition) to the givenOutputStream
.- Parameters:
out
- is theOutputStream
to write to.
-
-