Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
                         "http://castor.org/mapping.dtd">

<!-- /////////////////////////////////////////////////////////// -->
<!-- // Project SIX: OVAL                                     // -->
<!-- //                                                       // -->
<!-- // Castor XML Mapping Specification                      // -->
<!-- /////////////////////////////////////////////////////////// -->

<!-- @author    Akihito Nakamura, AIST -->
<!-- @version   $Id: castor-xml_oval-5-esx.xml 3155 2013-05-16 02:58:00Z nakamura5akihito@gmail.com $ -->

<mapping>

    <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
    <!-- %                                                     % -->
    <!-- %  #esx                                               % -->
    <!-- %                                                     % -->
    <!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->

    <!-- ******************************************************* -->
    <!-- patch, patch56                                          -->
    <!-- ******************************************************* -->
    <class name="jp.go.aist.six.oval.model.esx.Patch56Test"
        extends="jp.go.aist.six.oval.model.definitions.TestType">
        <map-to xml="patch56_test"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="object" 
            type="jp.go.aist.six.oval.model.definitions.SystemObjectRefType">
            <bind-xml name="object" node="element"/>
        </field>
        <field name="state" 
            type="jp.go.aist.six.oval.model.definitions.StateRefType"
            collection="collection">
            <bind-xml name="state" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.Patch56Object"
        extends="jp.go.aist.six.oval.model.definitions.SystemObjectType">
        <map-to xml="patch56_object"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="behaviors" 
            type="jp.go.aist.six.oval.model.esx.Patch56Behaviors">
            <bind-xml name="behaviors" node="element"/>
        </field>
        <field name="patchName" 
            type="jp.go.aist.six.oval.model.definitions.EntityObjectStringType">
            <bind-xml name="patch_name" node="element"/>
        </field>
        <field name="filter" 
            type="jp.go.aist.six.oval.model.definitions.Filter"
            collection="collection">
            <bind-xml name="filter" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.Patch56State"
        extends="jp.go.aist.six.oval.model.definitions.StateType">
        <map-to xml="patch56_state"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="patchName" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateStringType">
            <bind-xml name="patch_name" node="element"/>
        </field>
        <field name="knowledgeBaseId" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateIntType">
            <bind-xml name="knowledge_base_id" node="element"/>
        </field>
        <field name="bundleId" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateIntType">
            <bind-xml name="bundle_id" node="element"/>
        </field>
        <field name="classification" 
            type="jp.go.aist.six.oval.model.esx.EntityStateClassificationType">
            <bind-xml name="classification" node="element"/>
        </field>
        <field name="supportLevel" 
            type="jp.go.aist.six.oval.model.esx.EntityStateSupportLevelType">
            <bind-xml name="support_level" node="element"/>
        </field>
        <field name="installationStatus" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateBoolType">
            <bind-xml name="status" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.PatchTest"
        extends="jp.go.aist.six.oval.model.definitions.TestType">
        <map-to xml="esx_patch_test"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="object" 
            type="jp.go.aist.six.oval.model.definitions.SystemObjectRefType">
            <bind-xml name="object" node="element"/>
        </field>
        <field name="state" 
            type="jp.go.aist.six.oval.model.definitions.StateRefType"
            collection="collection">
            <bind-xml name="state" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.PatchObject"
        extends="jp.go.aist.six.oval.model.definitions.SystemObjectType">
        <map-to xml="esx_patch_object"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="behaviors" 
            type="jp.go.aist.six.oval.model.esx.PatchBehaviors">
            <bind-xml name="behaviors" node="element"/>
        </field>
        <field name="patchNumber" 
            type="jp.go.aist.six.oval.model.definitions.EntityObjectStringType">
            <bind-xml name="patch_number" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.PatchState"
        extends="jp.go.aist.six.oval.model.definitions.StateType">
        <map-to xml="esx_patch_state"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="patchNumber" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateStringType">
            <bind-xml name="patch_number" node="element"/>
        </field>
        <field name="installationStatus" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateBoolType">
            <bind-xml name="status" node="element"/>
        </field>
    </class>

    <class name ="jp.go.aist.six.oval.model.esx.PatchItem"
        extends="jp.go.aist.six.oval.model.sc.ItemType">
        <map-to xml="patch_item"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#esx"
            ns-prefix=""/>
        <field name="patchNumber" 
            type="jp.go.aist.six.oval.model.sc.EntityItemStringType">
            <bind-xml name="patch_number" node="element"/>
        </field>
        <field name="patchName" 
            type="jp.go.aist.six.oval.model.sc.EntityItemStringType">
            <bind-xml name="patch_name" node="element"/>
        </field>
        <field name="knowledgeBaseId" 
            type="jp.go.aist.six.oval.model.sc.EntityItemIntType">
            <bind-xml name="knowledge_base_id" node="element"/>
        </field>
        <field name="bundleId" 
            type="jp.go.aist.six.oval.model.sc.EntityItemIntType">
            <bind-xml name="bundle_id" node="element"/>
        </field>
        <field name="classification" 
            type="jp.go.aist.six.oval.model.esx.EntityItemClassificationType">
            <bind-xml name="classification" node="element"/>
        </field>
        <field name="supportLevel" 
            type="jp.go.aist.six.oval.model.esx.EntityItemSupportLevelType">
            <bind-xml name="support_level" node="element"/>
        </field>
        <field name="installtaionStatus" 
            type="jp.go.aist.six.oval.model.sc.EntityItemBoolType">
            <bind-xml name="status" node="element"/>
        </field>
    </class>


    <!-- ******************************************************* -->
    <!-- version                                                 -->
    <!-- ******************************************************* -->
    <class name="jp.go.aist.six.oval.model.esx.VersionTest"
        extends="jp.go.aist.six.oval.model.definitions.TestType">
        <map-to xml="version_test"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="object" 
            type="jp.go.aist.six.oval.model.definitions.SystemObjectRefType">
            <bind-xml name="object" node="element"/>
        </field>
        <field name="state" 
            type="jp.go.aist.six.oval.model.definitions.StateRefType"
            collection="collection">
            <bind-xml name="state" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.VersionObject"
        extends="jp.go.aist.six.oval.model.definitions.SystemObjectType">
        <map-to xml="version_object"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.VersionState"
        extends="jp.go.aist.six.oval.model.definitions.StateType">
        <map-to xml="version_state"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="release" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateVersionType">
            <bind-xml name="release" node="element"/>
        </field>
        <field name="build" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateIntType">
            <bind-xml name="build" node="element"/>
        </field>
    </class>

    <class name ="jp.go.aist.six.oval.model.esx.VersionItem"
        extends="jp.go.aist.six.oval.model.sc.ItemType">
        <map-to xml="version_item"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#esx"
            ns-prefix=""/>
        <field name="release" 
            type="jp.go.aist.six.oval.model.sc.EntityItemVersionType">
            <bind-xml name="release" node="element"/>
        </field>
        <field name="build" 
            type="jp.go.aist.six.oval.model.sc.EntityItemIntType">
            <bind-xml name="build" node="element"/>
        </field>
    </class>


    <!-- ******************************************************* -->
    <!-- visdkmanagedobject                                      -->
    <!-- ******************************************************* -->
    <class name="jp.go.aist.six.oval.model.esx.ViSdkManagedObjectTest"
        extends="jp.go.aist.six.oval.model.definitions.TestType">
        <map-to xml="visdkmanagedobject_test"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="object" 
            type="jp.go.aist.six.oval.model.definitions.SystemObjectRefType">
            <bind-xml name="object" node="element"/>
        </field>
        <field name="state" 
            type="jp.go.aist.six.oval.model.definitions.StateRefType"
            collection="collection">
            <bind-xml name="state" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.ViSdkManagedObjectObject"
        extends="jp.go.aist.six.oval.model.definitions.SystemObjectType">
        <map-to xml="visdkmanagedobject_object"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="behaviors" 
            type="jp.go.aist.six.oval.model.esx.ViSdkManagedEntityBehaviors">
            <bind-xml name="behaviors" node="element"/>
        </field>
        <field name="property" 
            type="jp.go.aist.six.oval.model.definitions.EntityObjectStringType">
            <bind-xml name="property" node="element"/>
        </field>
        <field name="filter" 
            type="jp.go.aist.six.oval.model.definitions.Filter"
            collection="collection">
            <bind-xml name="filter" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.oval.model.esx.ViSdkManagedObjectState"
        extends="jp.go.aist.six.oval.model.definitions.StateType">
        <map-to xml="visdkmanagedobject_state"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#esx"
            ns-prefix=""/>
        <field name="property" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateStringType">
            <bind-xml name="property" node="element"/>
        </field>
        <field name="value" 
            type="jp.go.aist.six.oval.model.definitions.EntityStateAnySimpleType">
            <bind-xml name="value" node="element"/>
        </field>
    </class>

    <class name ="jp.go.aist.six.oval.model.esx.ViSdkManagedObjectItem"
        extends="jp.go.aist.six.oval.model.sc.ItemType">
        <map-to xml="visdkmanagedobject_item"
            ns-uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#esx"
            ns-prefix=""/>
        <field name="property" 
            type="jp.go.aist.six.oval.model.sc.EntityItemStringType">
            <bind-xml name="property" node="element"/>
        </field>
        <field name="value" 
            type="jp.go.aist.six.oval.model.sc.EntityItemAnySimpleType"
            collection="collection">
            <bind-xml name="value" node="element"/>
        </field>
    </class>


    <!-- ******************************************************* -->
    <!-- entity attribute types                                  -->
    <!-- ******************************************************* -->

<!-- classification -->
    <class name="jp.go.aist.six.oval.model.esx.EntityStateClassificationType"
        extends="jp.go.aist.six.oval.model.definitions.EntityStateStringType">
    </class>
    <class name="jp.go.aist.six.oval.model.esx.EntityItemClassificationType"
        extends="jp.go.aist.six.oval.model.sc.EntityItemStringType">
    </class>

<!-- patch, 56 -->
    <class name="jp.go.aist.six.oval.model.esx.Patch56Behaviors"
        extends="jp.go.aist.six.oval.model.OvalObject">
        <field name="supersedence" type="boolean">
            <bind-xml name="supersedence" node="attribute"/>
        </field>
    </class>
    <class name="jp.go.aist.six.oval.model.esx.PatchBehaviors"
        extends="jp.go.aist.six.oval.model.OvalObject">
        <field name="supersedence" type="boolean">
            <bind-xml name="supersedence" node="attribute"/>
        </field>
    </class>

<!-- support level -->
    <class name="jp.go.aist.six.oval.model.esx.EntityStateSupportLevelType"
        extends="jp.go.aist.six.oval.model.definitions.EntityStateStringType">
    </class>
    <class name="jp.go.aist.six.oval.model.esx.EntityItemSupportLevelType"
        extends="jp.go.aist.six.oval.model.sc.EntityItemStringType">
    </class>

<!-- visdkmanagedobject -->
    <class name="jp.go.aist.six.oval.model.esx.ViSdkManagedEntityBehaviors"
        extends="jp.go.aist.six.oval.model.OvalObject">
        <field name="managedEntityType" type="string">
            <bind-xml name="managed_entity_type" node="attribute"/>
        </field>
    </class>

</mapping>

New to GrepCode? Check out our FAQ X