资 源 简 介
**`SapIdoc`** is a Java library that provides binding from Object to IDOC file.
The aims of this project is to help developpers for producing IDOC file without the hassle of learning IDOC specific format.
The project draws its inspiration from [JAXB](https://jaxb.dev.java.net/) for XML files and provides the same mechanism to generate domain specific object and write them to a file.
# Generating domain specific Object #
To generate objects from idoc, you have to launch the following command line :
`java -classpath sapidoc.jar org.sapidoc.idoc.generatorclass.Generation [OPTION]`
## Option ##
Available options
* -p : package of object generation
* -f : Idoc file definition
* -d : Root folder of Object generation
# Marshalling #
Assuming you have the following generated classes :
```
@IdocRootElement
public class ZUTILACCOUNT_CREATEFROMDATA01{
@IdocProperty(positionInSegment=-1,offset=1,length=6)
private String SEGNUM = "000000";
private Z1ZUTILACCOUNT_CREATEFROMDA z1Z