问题描述
<xs:complexType name="searchLoopType">
<xs:sequence>
<xs:element name="loopVarName" type="xs:string"/>
<xs:choice>
<xs:sequence>
<xs:element name="forever" />
<xs:element name="whileCondition" type="dps:condition" />
</xs:sequence>
<xs:sequence>
<xs:element name="startValue" type="dps:valueType" />
<xs:element name="endValue" type="dps:valueType" />
<xs:element name="whileCondition" type="dps:condition" minOccurs="0" />
</xs:sequence>
.
.
.
.
它正在创建 JAXB 类:
@XmlAccessorType(XmlAccesstype.FIELD)
@XmlType(name = "searchLoopType",propOrder = {
"loopVarName","foreverAndWhileConditionorStartValue","loopVariables","outputLoopOrOutputGroupOrOutput"
})
public class SearchLoopType {
@XmlElement(required = true)
protected String loopVarName;
@XmlElementRefs({
@XmlElementRef(name = "startValue",namespace = "http://www.gtt.com/logicalprovisioning/dps/xml/discoveryProcessingTable",type = JAXBElement.class,required = false),@XmlElementRef(name = "whileCondition",@XmlElementRef(name = "loopList",@XmlElementRef(name = "forever",@XmlElementRef(name = "endValue",required = false)
})
protected List<JAXBElement<?>> foreverAndWhileConditionorStartValue;
.
.
.
.
我尝试进行一些自定义。但不知何故,我无法在标签下制作具体的元素类。你能指导我怎么做吗?我的 globalBindings
设置为:
<jxb:globalBindings generateIsSetMethod="true" enableJavaNamingConventions="true" typesafeEnumMemberName="generateName" typesafeEnumBase="xsd:string" fixedAttributeAsConstantProperty="true" generateElementClass="true" choicecontentproperty="true" />
如果您需要更多信息,请告诉我。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)