Constructor and Description |
---|
SkuAttributeRec(long id,
String val,
String unit)
Create a new SkuAttribute instance
|
SkuAttributeRec(long id,
String val,
String unit,
String name)
Create a new SkuAttribute instance
|
Modifier and Type | Method and Description |
---|---|
SkuAttributeRec |
createCopy()
Create a copy of this
|
static SkuAttributeRec |
fromJson(javax.json.JsonObject json) |
String |
getAttributeName() |
long |
getId()
Retrieve the id
|
String |
getUnit()
Retrieve the unit
|
String |
getVal()
Retrieve the value
|
javax.json.JsonObject |
toJSON()
Retrieve the json for this object
|
String |
toString() |
public SkuAttributeRec(long id, String val, String unit) throws IllegalArgumentException
id
- The node attribute ID number that you get from Jet provided
documentation that corresponds with the attribute you are passingval
- The value for the attribute. For example, if the attribute is
size you may pass 'large' or if the the attribute is weight, you may
pass '22'. For attributes like weight the unit will be passed in the
next field.unit
- If the attribute_value requires a unit, then you pass the
unit here.IllegalArgumentException
- if any of the above rules are brokenpublic SkuAttributeRec(long id, String val, String unit, String name) throws IllegalArgumentException
id
- The node attribute ID number that you get from Jet provided
documentation that corresponds with the attribute you are passingval
- The value for the attribute. For example, if the attribute is
size you may pass 'large' or if the the attribute is weight, you may
pass '22'. For attributes like weight the unit will be passed in the
next field.unit
- If the attribute_value requires a unit, then you pass the
unit here.name
- the attribute name (this is not sent or received from jet api)IllegalArgumentException
- if any of the above rules are brokenpublic SkuAttributeRec createCopy()
public static SkuAttributeRec fromJson(javax.json.JsonObject json)
public long getId()
public String getVal()
public String getUnit()
public String getAttributeName()
public javax.json.JsonObject toJSON()
Copyright © 2017. All rights reserved.