Package org.cip4.lib.xjdf.type
Class URI
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
Implementation of the XJDF URI data type.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.cip4.lib.xjdf.type.AbstractXJdfType
equals, hashCode
-
Constructor Details
-
URI
public URI()Constructor. -
URI
Constructor. Using this constructor will not package the file.- Parameters:
sourceUri- Source uri of the file.- Throws:
URISyntaxException
-
URI
Constructor. Using this constructor will not package the file.- Parameters:
sourceUri- Source uri of the file.
-
URI
Constructor. Using this constructor the file will be packaged into given destination path.- Parameters:
sourceUri- Source uri.destPath- Destination path. Should be given in case the file has to be packaged.- Throws:
URISyntaxException
-
URI
Constructor. Using this constructor the file will be packaged into given destination path.- Parameters:
source- The Source as bytes.destPath- Destination path. Should be given in case the file has to be packaged.- Throws:
URISyntaxException
-
URI
Constructor. Using this constructor the file will be packaged into given destination path.- Parameters:
source- The Source as InputStream.destPath- Destination path. Should be given in case the file has to be packaged.- Throws:
URISyntaxException
-
-
Method Details
-
getSourceUri
Get the source uri.- Returns:
- Source uri.
-
getSourceInputStream
Get the source input stream.- Returns:
- Source input stream.
-
getDestinationPath
Get the destination path.- Returns:
- Destination path
-
complete
Completes this URI in order to marshal the correct file reference.- Returns:
- This URI
-
marshal
-
unmarshal
-
toString
- Specified by:
toStringin classAbstractXJdfType<String,URI> - See Also:
-