Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <binding>
- <mapping name="libs"
- class="xxx.importer.binding.trans.Libraries"
- extends="xxx.importer.binding.trans.BaseImport">
- <structure map-as="xxx.importer.binding.trans.BaseImport"></structure>
- <!-- <namespace uri="http://devel.dreipplus.com/profilerImport" default="elements"></namespace> -->
- <collection field="libraries"
- factory="org.jibx.runtime.Utility.arrayListFactory" ordered="true">
- </collection>
- </mapping>
- <mapping class="xxx.importer.binding.trans.BaseImport"
- abstract="true">
- <value name="uuid" field="uuid" style="attribute" ident="def"></value>
- </mapping>
- <!-- xxx.server.api.vo.common.AbstractEntityVO private
- String id; private Long dbId; xxx.server.api.vo.library.LibraryVO
- private LibraryTypeVO type; /** library type */ private String name; /**
- library name */ private Integer versionNumber; /** library version number
- */ private String path; /** library path */ private LanguageVO language;
- /** language */ private Date releaseDate; // TODO [rja] filling should be
- done in service /** TODO [design] clarify source of this or add to Library
- DAO */ private Date lastModificationDate; // TODO [rja] filling should be
- done in /** TODO [design] clarify source of this or add to Library DAO */
- // service private CategoryVO rootCategory; -->
- <mapping name="lib"
- class="xxx.importer.binding.trans.LibraryImport"
- extends="xxx.importer.binding.trans.BaseImport">
- <structure map-as="xxx.importer.binding.trans.BaseImport"></structure>
- <value style="attribute" name="company" get-method="getCompany"
- set-method="setCompany" usage="optional" />
- <value style="attribute" name="libowner" get-method="getLibOwner"
- set-method="setLibOwner" usage="optional" />
- <value style="attribute" name="libadmin" get-method="getLibAdmin"
- set-method="setLibAdmin" usage="optional" />
- <collection name="attachments" field="attachments"
- item-type="xxx.importer.binding.trans.AttachmentImport"
- factory="org.jibx.runtime.Utility.arrayListFactory" ordered="true"
- usage="optional">
- </collection>
- <structure field="library" />
- <!-- private AttachmentVO attachment; -->
- <structure field="libAttachment" name="libattachment"
- get-method="getLibAttachment" set-method="setLibAttachment"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- <!-- Object list for all Objects of the actual Library -->
- <collection name="objects" field="objects" ordered="false"
- factory="org.jibx.runtime.Utility.arrayListFactory" usage="optional">
- </collection>
- <structure name="categories" usage="optional">
- <structure field="rootCategory" />
- </structure>
- </mapping>
- <mapping name="lang"
- class="xxx.server.api.vo.common.LanguageVO">
- <value style="attribute" name="uuid" get-method="getId"
- set-method="setId" />
- <value style="element" name="language" get-method="getLanguage"
- set-method="setLanguage" usage="optional" />
- </mapping>
- <mapping
- class="xxx.server.api.vo.library.InternalLibraryVO"
- abstract="true">
- <!-- /** library path */ private String path; -->
- <value style="attribute" name="path" get-method="getPath"
- set-method="setPath" usage="optional" />
- <!-- value style="attribute" name="releaseDate" get-method="getReleaseDate"
- set-method="setReleaseDate" usage="optional"/ --> <!-- java.util.Date -->
- <!-- value style="attribute" name="lastModificationDate" get-method="getLastModificationDate"
- set-method="setLastModificationDate" usage="optional"/ -->
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO shortText; -->
- <structure name="shorttext">
- <structure name="localizedtext" get-method="getShortText"
- set-method="setShortText"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO longText; -->
- <structure name="longtext">
- <structure name="localizedtext" get-method="getLongText"
- set-method="setLongText"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- /** library type */ xxx.server.api.vo.library.LibraryType
- private LibraryType type; -->
- <value style="element" name="libtype" get-method="getType"
- set-method="setType" />
- <!-- /** language */ xxx.server.api.vo.common.LanguageVO
- private LanguageVO defaultLanguage; -->
- <structure name="defaultlang">
- <structure set-method="setDefaultLanguage" get-method="getDefaultLanguage">
- </structure>
- </structure>
- <!-- private List<LanguageVO> languages = new ArrayList<LanguageVO>(); -->
- <collection name="langs" set-method="setLanguages"
- get-method="getLanguages" item-type="xxx.server.api.vo.common.LanguageVO"
- factory="org.jibx.runtime.Utility.arrayListFactory" ordered="true"
- usage="optional">
- </collection>
- </mapping>
- <mapping name="producerlib"
- class="xxx.server.api.vo.library.ProducerLibraryVO"
- extends="xxx.server.api.vo.library.InternalLibraryVO">
- <structure
- map-as="xxx.server.api.vo.library.InternalLibraryVO" />
- </mapping>
- <mapping name="mandantlib"
- class="xxx.server.api.vo.library.MandantLibraryVO"
- extends="xxx.server.api.vo.library.InternalLibraryVO">
- <structure
- map-as="xxx.server.api.vo.library.InternalLibraryVO" />
- </mapping>
- <mapping name="projectlib"
- class="xxx.server.api.vo.library.ProjectLibraryVO"
- extends="xxx.server.api.vo.library.InternalLibraryVO">
- <structure
- map-as="xxx.server.api.vo.library.InternalLibraryVO" />
- </mapping>
- <mapping name="personallib"
- class="xxx.server.api.vo.library.PersonalLibraryVO"
- extends="xxx.server.api.vo.library.InternalLibraryVO">
- <structure
- map-as="xxx.server.api.vo.library.InternalLibraryVO" />
- </mapping>
- <mapping name="metalib"
- class="xxx.server.api.vo.library.MetaLibraryVO"
- extends="xxx.server.api.vo.library.InternalLibraryVO">
- <structure
- map-as="xxx.server.api.vo.library.InternalLibraryVO" />
- </mapping>
- <mapping name="category"
- class="xxx.importer.binding.trans.CategoryImport"
- extends="xxx.importer.binding.trans.BaseImport">
- <structure map-as="xxx.importer.binding.trans.BaseImport"></structure>
- <structure field="category"
- type="xxx.server.api.vo.library.CategoryVO" usage="optional">
- <value style="attribute" name="created" get-method="getCreated"
- set-method="setCreated" usage="optional" />
- <value style="attribute" name="modified" get-method="getModified"
- set-method="setModified" usage="optional" />
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- </structure>
- <collection name="entries" field="entries"
- factory="org.jibx.runtime.Utility.arrayListFactory" usage="optional"
- ordered="false">
- <structure name="objectsroomproduct"
- type="xxx.importer.binding.trans.LibRoomObjectImport"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- <structure name="objectsproduct"
- type="xxx.importer.binding.trans.LibProductObjectImport"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- <structure name="objectsref"
- type="xxx.importer.binding.trans.LibRefObjectImport"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- <structure name="objectsmaterial"
- type="xxx.importer.binding.trans.LibMaterialObjectImport"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- <structure name="objectscolor"
- type="xxx.importer.binding.trans.LibColorObjectImport"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- <structure name="objectscompany"
- type="xxx.importer.binding.trans.LibCompanyObjectImport"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- </collection>
- <collection field="childCategories"
- item-type="xxx.importer.binding.trans.CategoryImport"
- usage="optional" />
- </mapping>
- <mapping name="attachment"
- class="xxx.importer.binding.trans.AttachmentImport"
- extends="xxx.importer.binding.trans.BaseImport">
- <structure map-as="xxx.importer.binding.trans.BaseImport"></structure>
- <value style="attribute" name="href" get-method="getHref"
- set-method="setHref" />
- <value style="attribute" name="type" get-method="getType"
- set-method="setType" />
- <value style="attribute" name="original-name" get-method="getOriginalname"
- set-method="setOriginalname" />
- </mapping>
- <mapping name="attachmentgroup"
- class="xxx.importer.binding.trans.AttachmentGroupImport"
- extends="xxx.importer.binding.trans.BaseImport">
- <structure map-as="xxx.importer.binding.trans.BaseImport" />
- <value style="attribute" name="name" get-method="getName"
- set-method="setName" />
- <collection field="attachments"
- factory="org.jibx.runtime.Utility.arrayListFactory">
- <structure name="attachment"
- type="xxx.importer.binding.trans.AttachmentImport"
- marshaller="xxx.importer.binding.util.LibObjectIDRefMapper"
- unmarshaller="xxx.importer.binding.util.LibObjectIDRefMapper" />
- </collection>
- </mapping>
- <mapping
- class="xxx.importer.binding.trans.LibObjectImport"
- abstract="true" extends="xxx.importer.binding.trans.BaseImport">
- <structure map-as="xxx.importer.binding.trans.BaseImport"></structure>
- </mapping>
- <mapping name="objectscolor"
- class="xxx.importer.binding.trans.LibColorObjectImport"
- extends="xxx.importer.binding.trans.LibObjectImport"
- factory="xxx.importer.binding.factory.LibColorObjectImportFactory.newInstance">
- <structure field="object" />
- <structure name="attachments">
- <collection field="attachmentGroups"></collection>
- </structure>
- </mapping>
- <mapping name="color"
- class="xxx.server.api.vo.library.ColorVO">
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO longText; -->
- <structure name="longtext">
- <structure name="localizedtext" get-method="getLongtext"
- set-method="setLongtext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO shortText; -->
- <structure name="shorttext">
- <structure name="localizedtext" get-method="getShorttext"
- set-method="setShorttext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <value style="attribute" name="releaseDate" get-method="getReleaseDate"
- set-method="setReleaseDate" usage="optional" />
- <value style="attribute" name="validFrom" get-method="getValidFrom"
- set-method="setValidFrom" usage="optional" />
- <value style="attribute" name="validTo" get-method="getValidTo"
- set-method="setValidTo" usage="optional" />
- <structure name="specifics">
- <structure name="coloring" usage="optional">
- <value style="attribute" name="hex" get-method="getColor"
- set-method="setColor" usage="optional" />
- </structure>
- </structure>
- </mapping>
- <mapping name="objectsroomproduct"
- class="xxx.importer.binding.trans.LibRoomObjectImport"
- extends="xxx.importer.binding.trans.LibObjectImport"
- factory="xxx.importer.binding.factory.LibRoomObjectImportFactory.newInstance">
- <structure field="roomobject" />
- <structure name="attachments">
- <collection field="attachmentGroups"></collection>
- </structure>
- </mapping>
- <mapping name="roomproduct"
- class="xxx.server.api.vo.library.RoomProductVO"
- factory="xxx.importer.binding.factory.LibRoomObjectVOFactory.newInstance">
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO longText; -->
- <structure name="longtext">
- <structure name="localizedtext" get-method="getLongtext"
- set-method="setLongtext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO shortText; -->
- <structure name="shorttext">
- <structure name="localizedtext" get-method="getShorttext"
- set-method="setShorttext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <value style="attribute" name="releaseDate" get-method="getReleaseDate"
- set-method="setReleaseDate" usage="optional" />
- <value style="attribute" name="validFrom" get-method="getValidFrom"
- set-method="setValidFrom" usage="optional" />
- <value style="attribute" name="validTo" get-method="getValidTo"
- set-method="setValidTo" usage="optional" />
- <structure name="specifics" />
- </mapping>
- <mapping name="objectsproduct"
- class="xxx.importer.binding.trans.LibProductObjectImport"
- extends="xxx.importer.binding.trans.LibObjectImport"
- factory="xxx.importer.binding.factory.LibProductObjectImportFactory.newInstance">
- <structure field="productobject" />
- <structure name="attachments">
- <collection field="attachmentGroups"></collection>
- </structure>
- </mapping>
- <mapping name="product"
- class="xxx.server.api.vo.library.SolitaireProductVO"
- factory="xxx.importer.binding.factory.LibProductObjectVOFactory.newInstance">
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO longText; -->
- <structure name="longtext">
- <structure name="localizedtext" get-method="getLongtext"
- set-method="setLongtext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO shortText; -->
- <structure name="shorttext">
- <structure name="localizedtext" get-method="getShorttext"
- set-method="setShorttext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <value style="attribute" name="releaseDate" get-method="getReleaseDate"
- set-method="setReleaseDate" usage="optional" />
- <value style="attribute" name="validFrom" get-method="getValidFrom"
- set-method="setValidFrom" usage="optional" />
- <value style="attribute" name="validTo" get-method="getValidTo"
- set-method="setValidTo" usage="optional" />
- <structure name="specifics" />
- </mapping>
- <mapping name="objectsref"
- class="xxx.importer.binding.trans.LibRefObjectImport"
- extends="xxx.importer.binding.trans.LibObjectImport"
- factory="xxx.importer.binding.factory.LibRefObjectImportFactory.newInstance">
- <structure field="refobject" />
- <structure name="attachments">
- <collection field="attachmentGroups"></collection>
- </structure>
- </mapping>
- <mapping name="ref"
- class="xxx.server.api.vo.library.ReferenceVO"
- factory="xxx.importer.binding.factory.LibRefObjectVOFactory.newInstance">
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO longText; -->
- <structure name="longtext">
- <structure name="localizedtext" get-method="getLongtext"
- set-method="setLongtext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO shortText; -->
- <structure name="shorttext">
- <structure name="localizedtext" get-method="getShorttext"
- set-method="setShorttext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <value style="attribute" name="releaseDate" get-method="getReleaseDate"
- set-method="setReleaseDate" usage="optional" />
- <value style="attribute" name="validFrom" get-method="getValidFrom"
- set-method="setValidFrom" usage="optional" />
- <value style="attribute" name="validTo" get-method="getValidTo"
- set-method="setValidTo" usage="optional" />
- <structure name="specifics" />
- </mapping>
- <mapping name="objectsmaterial"
- class="xxx.importer.binding.trans.LibMaterialObjectImport"
- extends="xxx.importer.binding.trans.LibObjectImport"
- factory="xxx.importer.binding.factory.LibMaterialObjectImportFactory.newInstance">
- <structure field="object" />
- <structure name="attachments">
- <collection field="attachmentGroups"></collection>
- </structure>
- </mapping>
- <mapping name="material"
- class="xxx.server.api.vo.library.MaterialVO">
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO longText; -->
- <structure name="longtext">
- <structure name="localizedtext" get-method="getLongtext"
- set-method="setLongtext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO shortText; -->
- <structure name="shorttext">
- <structure name="localizedtext" get-method="getShorttext"
- set-method="setShorttext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <value style="attribute" name="releaseDate" get-method="getReleaseDate"
- set-method="setReleaseDate" usage="optional" />
- <value style="attribute" name="validFrom" get-method="getValidFrom"
- set-method="setValidFrom" usage="optional" />
- <value style="attribute" name="validTo" get-method="getValidTo"
- set-method="setValidTo" usage="optional" />
- <structure name="specifics" />
- </mapping>
- <mapping name="objectscompany"
- class="xxx.importer.binding.trans.LibCompanyObjectImport"
- extends="xxx.importer.binding.trans.LibObjectImport"
- factory="xxx.importer.binding.factory.LibCompanyObjectImportFactory.newInstance">
- <structure field="companyobject" />
- <structure name="attachments">
- <collection field="attachmentGroups"></collection>
- </structure>
- </mapping>
- <mapping name="company"
- class="xxx.server.api.vo.library.LibPresentationVO"
- factory="xxx.importer.binding.factory.LibCompanyObjectVOFactory.newInstance">
- <!-- /** library name */ private LocalizedTextVO name; -->
- <structure name="name">
- <structure name="localizedtext" get-method="getName"
- set-method="setName"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO longText; -->
- <structure name="longtext">
- <structure name="localizedtext" get-method="getLongtext"
- set-method="setLongtext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <!-- private LocalizedTextVO shortText; -->
- <structure name="shorttext">
- <structure name="localizedtext" get-method="getShorttext"
- set-method="setShorttext"
- marshaller="xxx.importer.binding.util.LocalizedTextHashMapper"
- unmarshaller="xxx.importer.binding.util.LocalizedTextHashMapper">
- </structure>
- </structure>
- <value style="attribute" name="releaseDate" get-method="getReleaseDate"
- set-method="setReleaseDate" usage="optional" />
- <value style="attribute" name="validFrom" get-method="getValidFrom"
- set-method="setValidFrom" usage="optional" />
- <value style="attribute" name="validTo" get-method="getValidTo"
- set-method="setValidTo" usage="optional" />
- <structure name="specifics" />
- </mapping>
- </binding>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement