Package org.cip4.lib.xjdf.type
Class URI
- java.lang.Object
-
- javax.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.
-
-
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.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.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
-
-
Method Detail
-
getSourceUri
public final java.net.URI getSourceUri()
Get the source uri.- Returns:
- Source uri.
-
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 classjavax.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 classjavax.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()
-
-