@Immutable
public final class PackingList
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PackingList.Asset
This class represents a thin, immutable wrapper around the XML type 'AssetType' which is defined in Section 7,
st0429-8:2007.
|
Constructor and Description |
---|
PackingList(java.io.File packingListXMLFile)
Constructor for a
PackingList object that corresponds to a PackingList XML document |
Modifier and Type | Method and Description |
---|---|
java.util.List<PackingList.Asset> |
getAssets()
Getter for the complete list of assets present in this PackingList
|
java.util.UUID |
getUUID()
Getter for the UUID corresponding to this PackingList object
|
static void |
main(java.lang.String[] args) |
java.lang.String |
toString() |
public PackingList(java.io.File packingListXMLFile) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.bind.JAXBException, java.net.URISyntaxException
PackingList
object that corresponds to a PackingList XML documentpackingListXMLFile
- the input XML filejava.io.IOException
- - any I/O related error is exposed through an IOExceptionorg.xml.sax.SAXException
- - exposes any issues with instantiating a Schema
objectjavax.xml.bind.JAXBException
- - any issues in serializing the XML document using JAXB are exposed through a JAXBExceptionjava.net.URISyntaxException
- exposes any issues instantiating a URI
objectpublic java.util.List<PackingList.Asset> getAssets()
public java.util.UUID getUUID()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.io.IOException, java.net.URISyntaxException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, javax.xml.bind.JAXBException
java.io.IOException
java.net.URISyntaxException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
javax.xml.bind.JAXBException