解决BBFCRatingType与BBFCRatingType1内容一致,清理多余内容

This commit is contained in:
sanmao 2021-01-06 15:26:09 +08:00
parent e3bab6cd4b
commit a70f9371a5
8 changed files with 77 additions and 151 deletions

View File

@ -1,76 +0,0 @@
//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2021.01.06 时间 12:14:58 PM CST
//
package com.amazon.SellingPartnerAPI.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>BBFCRatingType1的 Java
*
* <p>以下模式片段指定包含在此类中的预期内容
* <p>
* <pre>
* &lt;simpleType name="BBFCRatingType1">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="ages_12_and_over"/>
* &lt;enumeration value="ages_15_and_over"/>
* &lt;enumeration value="ages_18_and_over"/>
* &lt;enumeration value="exempt"/>
* &lt;enumeration value="parental_guidance"/>
* &lt;enumeration value="to_be_announced"/>
* &lt;enumeration value="universal_childrens"/>
* &lt;enumeration value="universal"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "BBFCRatingType1")
@XmlEnum
public enum BBFCRatingType1 {
@XmlEnumValue("ages_12_and_over")
AGES_12_AND_OVER("ages_12_and_over"),
@XmlEnumValue("ages_15_and_over")
AGES_15_AND_OVER("ages_15_and_over"),
@XmlEnumValue("ages_18_and_over")
AGES_18_AND_OVER("ages_18_and_over"),
@XmlEnumValue("exempt")
EXEMPT("exempt"),
@XmlEnumValue("parental_guidance")
PARENTAL_GUIDANCE("parental_guidance"),
@XmlEnumValue("to_be_announced")
TO_BE_ANNOUNCED("to_be_announced"),
@XmlEnumValue("universal_childrens")
UNIVERSAL_CHILDRENS("universal_childrens"),
@XmlEnumValue("universal")
UNIVERSAL("universal");
private final String value;
BBFCRatingType1(String v) {
value = v;
}
public String value() {
return value;
}
public static BBFCRatingType1 fromValue(String v) {
for (BBFCRatingType1 c: BBFCRatingType1 .values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}

View File

@ -8,10 +8,6 @@
package com.amazon.SellingPartnerAPI.model;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@ -20,6 +16,10 @@ import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
@ -640,7 +640,7 @@ public class GiftCard {
public static class ProductType {
@XmlElement(name = "GiftCard")
protected GiftCard.ProductType.GiftCard giftCard;
protected GiftCardItem giftCard;
@XmlElement(name = "PhysicalGiftCard")
protected GiftCard.ProductType.PhysicalGiftCard physicalGiftCard;
@XmlElement(name = "ElectronicGiftCard")
@ -651,10 +651,10 @@ public class GiftCard {
*
* @return
* possible object is
* {@link GiftCard.ProductType.GiftCard }
* {@link GiftCardItem }
*
*/
public GiftCard.ProductType.GiftCard getGiftCard() {
public GiftCardItem getGiftCard() {
return giftCard;
}
@ -663,10 +663,10 @@ public class GiftCard {
*
* @param value
* allowed object is
* {@link GiftCard.ProductType.GiftCard }
* {@link GiftCardItem }
*
*/
public void setGiftCard(GiftCard.ProductType.GiftCard value) {
public void setGiftCard(GiftCardItem value) {
this.giftCard = value;
}
@ -748,7 +748,7 @@ public class GiftCard {
"itemDisplayWeight",
"itemDisplayWidth"
})
public static class GiftCard {
public static class GiftCardItem {
@XmlElement(name = "ItemDisplayHeight")
protected LengthDimension itemDisplayHeight;

View File

@ -8,10 +8,6 @@
package com.amazon.SellingPartnerAPI.model;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@ -20,6 +16,10 @@ import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
@ -2699,7 +2699,7 @@ public class Home {
@XmlElement(name = "WaterPurificationUnit")
protected WaterPurificationUnit waterPurificationUnit;
@XmlElement(name = "Home")
protected Home.ProductType.Home home;
protected HomeItem home;
/**
* 获取bedAndBath属性的值
@ -3378,10 +3378,10 @@ public class Home {
*
* @return
* possible object is
* {@link Home.ProductType.Home }
* {@link HomeItem }
*
*/
public Home.ProductType.Home getHome() {
public HomeItem getHome() {
return home;
}
@ -3390,10 +3390,10 @@ public class Home {
*
* @param value
* allowed object is
* {@link Home.ProductType.Home }
* {@link HomeItem }
*
*/
public void setHome(Home.ProductType.Home value) {
public void setHome(HomeItem value) {
this.home = value;
}
@ -3613,7 +3613,7 @@ public class Home {
"voltage",
"powerPlugType"
})
public static class Home {
public static class HomeItem {
@XmlElement(name = "Battery")
protected Battery battery;
@ -3655,7 +3655,7 @@ public class Home {
@XmlElement(name = "TowelWeight")
protected WeightDimension towelWeight;
@XmlElement(name = "VariationData")
protected Home.ProductType.Home.VariationData variationData;
protected HomeItem.VariationData variationData;
@XmlElement(name = "Wattage")
protected WattageDimensionOptionalUnit wattage;
@XmlElement(name = "InnerMaterialType")
@ -4055,10 +4055,10 @@ public class Home {
*
* @return
* possible object is
* {@link Home.ProductType.Home.VariationData }
* {@link HomeItem.VariationData }
*
*/
public Home.ProductType.Home.VariationData getVariationData() {
public HomeItem.VariationData getVariationData() {
return variationData;
}
@ -4067,10 +4067,10 @@ public class Home {
*
* @param value
* allowed object is
* {@link Home.ProductType.Home.VariationData }
* {@link HomeItem.VariationData }
*
*/
public void setVariationData(Home.ProductType.Home.VariationData value) {
public void setVariationData(HomeItem.VariationData value) {
this.variationData = value;
}

View File

@ -8,9 +8,6 @@
package com.amazon.SellingPartnerAPI.model;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
@ -251,17 +251,17 @@ public class MechanicalFasteners {
public static class ProductType {
@XmlElement(name = "MechanicalFasteners")
protected MechanicalFasteners.ProductType.MechanicalFasteners mechanicalFasteners;
protected MechanicalFastenerItem mechanicalFasteners;
/**
* 获取mechanicalFasteners属性的值
*
* @return
* possible object is
* {@link MechanicalFasteners.ProductType.MechanicalFasteners }
* {@link MechanicalFastenerItem }
*
*/
public MechanicalFasteners.ProductType.MechanicalFasteners getMechanicalFasteners() {
public MechanicalFastenerItem getMechanicalFasteners() {
return mechanicalFasteners;
}
@ -270,10 +270,10 @@ public class MechanicalFasteners {
*
* @param value
* allowed object is
* {@link MechanicalFasteners.ProductType.MechanicalFasteners }
* {@link MechanicalFastenerItem }
*
*/
public void setMechanicalFasteners(MechanicalFasteners.ProductType.MechanicalFasteners value) {
public void setMechanicalFasteners(MechanicalFastenerItem value) {
this.mechanicalFasteners = value;
}
@ -421,7 +421,7 @@ public class MechanicalFasteners {
"workingLoadLimit",
"styleName"
})
public static class MechanicalFasteners {
public static class MechanicalFastenerItem {
@XmlElement(name = "Color")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)

View File

@ -2040,11 +2040,11 @@ public class ObjectFactory {
}
/**
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.Home }
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem }
*
*/
public com.amazon.SellingPartnerAPI.model.Home.ProductType.Home createHomeProductTypeHome() {
return new com.amazon.SellingPartnerAPI.model.Home.ProductType.Home();
public com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem createHomeProductTypeHome() {
return new com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem();
}
/**
@ -7160,19 +7160,20 @@ public class ObjectFactory {
}
/**
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFasteners }
* Create an instance of
* {@link com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFastenerItem }
*
*/
public com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFasteners createMechanicalFastenersProductTypeMechanicalFasteners() {
return new com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFasteners();
public com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFastenerItem createMechanicalFastenersProductTypeMechanicalFasteners() {
return new com.amazon.SellingPartnerAPI.model.MechanicalFasteners.ProductType.MechanicalFastenerItem();
}
/**
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCard }
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCardItem }
*
*/
public com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCard createGiftCardProductTypeGiftCard() {
return new com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCard();
public com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCardItem createGiftCardProductTypeGiftCard() {
return new com.amazon.SellingPartnerAPI.model.GiftCard.ProductType.GiftCardItem();
}
/**
@ -7184,19 +7185,20 @@ public class ObjectFactory {
}
/**
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSan }
* Create an instance of
* {@link com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSanItem }
*
*/
public com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSan createFoodServiceAndJanSanProductTypeFoodServiceAndJanSan() {
return new com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSan();
public com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSanItem createFoodServiceAndJanSanProductTypeFoodServiceAndJanSan() {
return new com.amazon.SellingPartnerAPI.model.FoodServiceAndJanSan.ProductType.FoodServiceAndJanSanItem();
}
/**
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.Home.VariationData }
* Create an instance of {@link com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem.VariationData }
*
*/
public com.amazon.SellingPartnerAPI.model.Home.ProductType.Home.VariationData createHomeProductTypeHomeVariationData() {
return new com.amazon.SellingPartnerAPI.model.Home.ProductType.Home.VariationData();
public com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem.VariationData createHomeProductTypeHomeVariationData() {
return new com.amazon.SellingPartnerAPI.model.Home.ProductType.HomeItem.VariationData();
}
/**

View File

@ -8,9 +8,6 @@
package com.amazon.SellingPartnerAPI.model;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
@ -113,7 +113,7 @@ public class Software {
protected String esrbRating;
@XmlElement(name = "BBFCRating")
@XmlSchemaType(name = "string")
protected BBFCRatingType1 bbfcRating;
protected BBFCRatingType bbfcRating;
@XmlElement(name = "PEGIRating")
@XmlSchemaType(name = "string")
protected PEGIRatingType pegiRating;
@ -308,10 +308,10 @@ public class Software {
*
* @return
* possible object is
* {@link BBFCRatingType1 }
* {@link BBFCRatingType }
*
*/
public BBFCRatingType1 getBBFCRating() {
public BBFCRatingType getBBFCRating() {
return bbfcRating;
}
@ -320,10 +320,10 @@ public class Software {
*
* @param value
* allowed object is
* {@link BBFCRatingType1 }
* {@link BBFCRatingType }
*
*/
public void setBBFCRating(BBFCRatingType1 value) {
public void setBBFCRating(BBFCRatingType value) {
this.bbfcRating = value;
}

View File

@ -8,9 +8,6 @@
package com.amazon.SellingPartnerAPI.model;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
@ -34,7 +34,7 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
* &lt;element name="SoftwareVideoGamesGenre" type="{}StringNotNull" maxOccurs="5"/>
* &lt;choice>
* &lt;element name="ESRBRating" type="{}FortyStringNotNull"/>
* &lt;element name="BBFCRating" type="{}BBFCRatingType1"/>
* &lt;element name="BBFCRating" type="{}BBFCRatingType"/>
* &lt;element name="PEGIRating" type="{}PEGIRatingType"/>
* &lt;element name="USKRating" type="{}USKRatingType"/>
* &lt;/choice>
@ -95,7 +95,7 @@ public class SoftwareGames {
protected String esrbRating;
@XmlElement(name = "BBFCRating")
@XmlSchemaType(name = "string")
protected BBFCRatingType1 bbfcRating;
protected BBFCRatingType bbfcRating;
@XmlElement(name = "PEGIRating")
@XmlSchemaType(name = "string")
protected PEGIRatingType pegiRating;
@ -207,10 +207,10 @@ public class SoftwareGames {
*
* @return
* possible object is
* {@link BBFCRatingType1 }
* {@link BBFCRatingType }
*
*/
public BBFCRatingType1 getBBFCRating() {
public BBFCRatingType getBBFCRating() {
return bbfcRating;
}
@ -219,10 +219,10 @@ public class SoftwareGames {
*
* @param value
* allowed object is
* {@link BBFCRatingType1 }
* {@link BBFCRatingType }
*
*/
public void setBBFCRating(BBFCRatingType1 value) {
public void setBBFCRating(BBFCRatingType value) {
this.bbfcRating = value;
}

View File

@ -8,9 +8,6 @@
package com.amazon.SellingPartnerAPI.model;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@ -19,6 +16,9 @@ import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
@ -34,7 +34,7 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
* &lt;element name="ConsoleVideoGamesGenre" type="{}StringNotNull" maxOccurs="5"/>
* &lt;choice>
* &lt;element name="ESRBRating" type="{}FortyStringNotNull"/>
* &lt;element name="BBFCRating" type="{}BBFCRatingType1"/>
* &lt;element name="BBFCRating" type="{}BBFCRatingType"/>
* &lt;element name="PEGIRating" type="{}PEGIRatingType"/>
* &lt;element name="USKRating" type="{}USKRatingType"/>
* &lt;/choice>
@ -85,7 +85,7 @@ public class VideoGames {
protected String esrbRating;
@XmlElement(name = "BBFCRating")
@XmlSchemaType(name = "string")
protected BBFCRatingType1 bbfcRating;
protected BBFCRatingType bbfcRating;
@XmlElement(name = "PEGIRating")
@XmlSchemaType(name = "string")
protected PEGIRatingType pegiRating;
@ -182,10 +182,10 @@ public class VideoGames {
*
* @return
* possible object is
* {@link BBFCRatingType1 }
* {@link BBFCRatingType }
*
*/
public BBFCRatingType1 getBBFCRating() {
public BBFCRatingType getBBFCRating() {
return bbfcRating;
}
@ -194,10 +194,10 @@ public class VideoGames {
*
* @param value
* allowed object is
* {@link BBFCRatingType1 }
* {@link BBFCRatingType }
*
*/
public void setBBFCRating(BBFCRatingType1 value) {
public void setBBFCRating(BBFCRatingType value) {
this.bbfcRating = value;
}