Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/360.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java JiBX生成忽略属性名称空间的绑定_Java_Xsd_Code Generation_Jibx - Fatal编程技术网

Java JiBX生成忽略属性名称空间的绑定

Java JiBX生成忽略属性名称空间的绑定,java,xsd,code-generation,jibx,Java,Xsd,Code Generation,Jibx,我有以下模式(片段): 如果有任何建议可以帮助解决这个问题,比如为什么JiBX生成这样的映射,如何使它尊重属性名称空间等等,我将不胜感激。JiBX行为实际上是正确的,属性的名称空间前缀不是基于xsd的 实际的解决方案是用XJC/JAXB替换JiBX,并为我需要属性名称空间前缀的实体创建单独的模式。JiBX行为实际上是正确的,属性名称空间前缀不是基于xsd的 实际的解决方案是用XJC/JAXB替换JiBX,并为需要名称空间前缀作为属性的实体提供单独的模式 <xs:complexType na

我有以下模式(片段):


如果有任何建议可以帮助解决这个问题,比如为什么JiBX生成这样的映射,如何使它尊重属性名称空间等等,我将不胜感激。

JiBX行为实际上是正确的,属性的名称空间前缀不是基于xsd的


实际的解决方案是用XJC/JAXB替换JiBX,并为我需要属性名称空间前缀的实体创建单独的模式。

JiBX行为实际上是正确的,属性名称空间前缀不是基于xsd的

实际的解决方案是用XJC/JAXB替换JiBX,并为需要名称空间前缀作为属性的实体提供单独的模式

<xs:complexType name="partnerPaymentsItemType">
    <xs:sequence>
        <xs:element name="changeTime" type="dateTime"/>
        <xs:element name="statusId" type="shortId"/>
        <xs:element name="paymentPointId" type="shortString"/>
        <xs:element name="money" type="currency"/>
        <xs:element name="paymentDestination" type="shortString"/>
        <xs:element name="paymentDestinationType" type="shortId"/>
        <xs:element name="subagentId" type="shortId" minOccurs="0"/>
        <xs:element name="discountCardNumber" type="xs:string" minOccurs="0"/>
        <xs:element name="amountAll" type="currency" minOccurs="0"/>
        <xs:element name="rewardPercent" type="percentAmount" minOccurs="0"/>
        <xs:element name="rewardPercentValue" type="percentAmount" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="paymentTime" use="required" type="dateTime"/>
    <xs:attribute name="externalId" use="required" type="id"/>
    <xs:attribute name="registeredId" use="required" type="id"/>
</xs:complexType>
<schema-set xmlns:xs="http://www.w3.org/2001/XMLSchema"
        delete-annotations="true"
        prefer-inline="false"
        generate-all="true"
        show-schema="true"
        type-substitutions="xs:date xs:string"
        package="here.lays.my.package">
    <class-decorator     class="org.jibx.schema.codegen.extend.SerializableDecorator"/>
</schema-set>
public static PartnerPaymentsItemType JiBX_beeline_binding_unmarshalAttr_1_93(PartnerPaymentsItemType arg1, UnmarshallingContext arg2)
    throws JiBXException
{
    arg2.pushTrackedObject(arg1);
    arg1;
    arg1.setPaymentTime(arg2.attributeText(null, "paymentTime"));
    arg1.setExternalId(Utility.parseLong(WhitespaceConversions.trim(arg2.attributeText(null, "externalId"))));
    arg1.setRegisteredId(Utility.parseLong(WhitespaceConversions.trim(arg2.attributeText(null, "registeredId"))));
    arg2.popObject();
    return arg1;
}