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 classAccessControlSchemaXmlMapper.ValidationEventHandlerImplCustom implementation ofValidationEventHandler.
-
Constructor Summary
Constructors Constructor Description AccessControlSchemaXmlMapper()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessControlSchemaread(InputStream in)Reads theAccessControlSchemafrom the givenInputStream.voidwrite(AccessControlSchema conf, OutputStream out)Writes the givenAccessControlSchemato the givenOutputStream.voidwriteXsd(File outFile)Generates the XSD (XML Schema Definition) to the givenFile.voidwriteXsd(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:AccessControlSchemaMapperWrites the givenAccessControlSchemato the givenOutputStream.- Specified by:
writein interfaceAccessControlSchemaMapper- Parameters:
conf- is theAccessControlSchemato write.out- is theOutputStreamwhere to write theAccessControlSchemato. Has to beclosedby the caller of this method who created the stream.
-
read
public AccessControlSchema read(InputStream in)
Description copied from interface:AccessControlSchemaMapperReads theAccessControlSchemafrom the givenInputStream.- Specified by:
readin interfaceAccessControlSchemaMapper- Parameters:
in- is theInputStreamwithAccessControlSchemato read. Has to beclosedby the caller of this method who created the stream.- Returns:
- the
AccessControlSchemarepresented by the given input.
-
writeXsd
public void writeXsd(File outFile)
Generates the XSD (XML Schema Definition) to the givenFile.- Parameters:
outFile- is theFileto write to.
-
writeXsd
public void writeXsd(OutputStream out)
Generates the XSD (XML Schema Definition) to the givenOutputStream.- Parameters:
out- is theOutputStreamto write to.
-
-