Package de.mid.innovator.m2msdk.ui.model
Class XMLTransferable
java.lang.Object
de.mid.innovator.m2msdk.ui.model.XMLTransferable
- All Implemented Interfaces:
ClipboardOwner,Transferable
Transferable supporting XML content.
- Version:
- 11.4.1
- Author:
- jmback
-
Constructor Summary
ConstructorsConstructorDescriptionXMLTransferable(String data) XMLTransferable(String iId, List<org.jdom2.Element> iElements) -
Method Summary
Modifier and TypeMethodDescriptionorg.jdom2.ElementDelivers a single element.List<org.jdom2.Element> Delivers a list of elements.getId()Get qualified identifier of transfered element.getTransferData(DataFlavor flavor) getURI()Get the URI of the first mapping element.getURIs()Delivers a list of URI pointing to mapping elements.booleanisDataFlavorSupported(DataFlavor flavor) voidlostOwnership(Clipboard clipboard, Transferable contents) toString()
-
Constructor Details
-
XMLTransferable
-
XMLTransferable
-
-
Method Details
-
getElement
public org.jdom2.Element getElement()Delivers a single element.- Returns:
- the element, the first element of the list or null
-
getId
Get qualified identifier of transfered element.- Returns:
- qualified absolute identifier
-
getElements
Delivers a list of elements.- Returns:
- list of zero or more elements.
-
getURI
Get the URI of the first mapping element.- Returns:
- URI or null
-
getURIs
Delivers a list of URI pointing to mapping elements.- Returns:
- listof zero or more URIs
-
getTransferData
- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
lostOwnership
- Specified by:
lostOwnershipin interfaceClipboardOwner
-
toString
-