Package org.cip4.lib.xjdf.type
Class URI
- java.lang.Object
-
- jakarta.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
-
- org.cip4.lib.xjdf.type.AbstractXJdfType<java.lang.String,URI>
-
- org.cip4.lib.xjdf.type.URI
-
public class URI extends AbstractXJdfType<java.lang.String,URI>
Implementation of the XJDF URI data type.
-
-
Constructor Summary
Constructors Constructor Description URI()Constructor.URI(byte[] source, java.lang.String destPath)Constructor.URI(java.io.InputStream source, java.lang.String destPath)Constructor.URI(java.lang.String sourceUri)Constructor.URI(java.net.URI sourceUri)Constructor.URI(java.net.URI sourceUri, java.lang.String destPath)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIcomplete()Completes this URI in order to marshal the correct file reference.java.lang.StringgetDestinationPath()Get the destination path.java.io.InputStreamgetSourceInputStream()Get the source input stream.java.net.URIgetSourceUri()Get the source uri.java.lang.Stringmarshal(URI v)java.lang.StringtoString()URIunmarshal(java.lang.String v)-
Methods inherited from class org.cip4.lib.xjdf.type.AbstractXJdfType
equals, hashCode
-
-
-
-
Constructor Detail
-
URI
public URI()
Constructor.
-
URI
public URI(java.lang.String sourceUri) throws java.net.URISyntaxExceptionConstructor. Using this constructor will not package the file.- Parameters:
sourceUri- Source uri of the file.- Throws:
java.net.URISyntaxException
-
URI
public URI(java.net.URI sourceUri)
Constructor. Using this constructor will not package the file.- Parameters:
sourceUri- Source uri of the file.
-
URI
public URI(java.net.URI sourceUri, java.lang.String destPath) throws java.net.URISyntaxExceptionConstructor. 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:
java.net.URISyntaxException
-
URI
public URI(byte[] source, java.lang.String destPath) throws java.net.URISyntaxExceptionConstructor. 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:
java.net.URISyntaxException
-
URI
public URI(java.io.InputStream source, java.lang.String destPath) throws java.net.URISyntaxExceptionConstructor. 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:
java.net.URISyntaxException
-
-
Method Detail
-
getSourceUri
public final java.net.URI getSourceUri()
Get the source uri.- Returns:
- Source uri.
-
getSourceInputStream
public final java.io.InputStream getSourceInputStream()
Get the source input stream.- Returns:
- Source input stream.
-
getDestinationPath
public final java.lang.String getDestinationPath()
Get the destination path.- Returns:
- Destination path
-
complete
public final URI complete()
Completes this URI in order to marshal the correct file reference.- Returns:
- This URI
-
marshal
public final java.lang.String marshal(URI v)
- Specified by:
marshalin classjakarta.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,URI>
-
unmarshal
public final URI unmarshal(java.lang.String v) throws java.lang.Exception
- Specified by:
unmarshalin classjakarta.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,URI>- Throws:
java.lang.Exception
-
toString
public final java.lang.String toString()
- Specified by:
toStringin classAbstractXJdfType<java.lang.String,URI>- See Also:
Object.toString()
-
-