Uses of Class
cz.martlin.xspf.util.XSPFException
-
Packages that use XSPFException Package Description cz.martlin.xspf.playlist cz.martlin.xspf.playlist.base The all the abstract superclasses in the xspf-playlist.cz.martlin.xspf.playlist.collections The implementations of the collections, subclasses of theXSPFCollection.cz.martlin.xspf.playlist.elements The actual xspf file elements (playlist, track, ...) implementation.cz.martlin.xspf.util All the utilities and helper classes. -
-
Uses of XSPFException in cz.martlin.xspf.playlist
Methods in cz.martlin.xspf.playlist that throw XSPFException Modifier and Type Method Description StringBaseXSPFElement. getAnnotation()Deprecated.ElementBaseXSPFElement. getAttribution()Deprecated.StringBaseXSPFElement. getCreator()Deprecated.java.time.LocalDateTimeBaseXSPFElement. getDate()Deprecated.ElementBaseXSPFElement. getExtension()Deprecated.URIBaseXSPFElement. getIdentifier()Deprecated.URIBaseXSPFElement. getImage()Deprecated.URIBaseXSPFElement. getInfo()Deprecated.URIBaseXSPFElement. getLicence()Deprecated.List<Element>BaseXSPFElement. getLinks()Deprecated.URIBaseXSPFElement. getLocation()Deprecated.List<Element>BaseXSPFElement. getMetas()Deprecated.StringBaseXSPFElement. getTitle()Deprecated.voidBaseXSPFElement. setAnnotation(String annotation)Deprecated.voidBaseXSPFElement. setCreator(String creator)Deprecated.voidBaseXSPFElement. setDate(java.time.LocalDateTime date)Deprecated.voidBaseXSPFElement. setIdentifier(URI identifier)Deprecated.voidBaseXSPFElement. setImage(URI image)Deprecated.voidBaseXSPFElement. setInfo(URI info)Deprecated.voidBaseXSPFElement. setLicence(URI licence)Deprecated.voidBaseXSPFElement. setLocation(URI location)Deprecated.voidBaseXSPFElement. setTitle(String title)Deprecated. -
Uses of XSPFException in cz.martlin.xspf.playlist.base
Methods in cz.martlin.xspf.playlist.base that throw XSPFException Modifier and Type Method Description voidXSPFCollection. add(E element)Adds the given element to this collection.protected <E extends XSPFElement>
XSPFCollection<E>XSPFElement. collection(XSPFElement.XSPFCollectionFactory<E> factory)Returns the collection (view) mapped to this element, constructed by the given factory.protected <E extends XSPFElement>
XSPFCollection<E>XSPFElement. collection(String name, XSPFElement.XSPFCollectionFactory<E> factory)Returns the collection (view) mapped to this element's child of given name, constructed by the given factory.EXSPFCollection. createNew()Creates (but does not add to this collection yet) new element.protected <T extends XSPFElement>
TXSPFNode. createOne(String name, java.util.function.Function<Element,T> mapper)XSPFExtensionsXSPFCommon. extensions()Returns the playlist/track extensions (as view).protected <T extends XSPFElement>
List<T>XSPFNode. getAll(String name, java.util.function.Function<Element,T> mapper)StringXSPFCommon. getAnnotation()Returns the playlist/track annotation.protected <E extends XSPFElement>
XSPFCollection<E>XSPFElement. getCollection(XSPFElement.XSPFCollectionFactory<E> factory)Returns the collection (clone) mapped to this element, constructed by the given factory.protected <E extends XSPFElement>
XSPFCollection<E>XSPFElement. getCollection(String name, XSPFElement.XSPFCollectionFactory<E> factory)Returns the collection (clone) mapped to this element's child of given name, constructed by the given factory.StringXSPFCommon. getCreator()Returns the playlist/track creator.protected java.time.LocalDateTimeXSPFElement. getDate(String name)Gets datetime contents of this element's child of given name.protected java.time.DurationXSPFElement. getDuration(String name)Gets duration contents of this element's child of given name.XSPFExtensionsXSPFCommon. getExtensions()Returns the playlist/track extensions (as copy).URIXSPFCommon. getIdentifier()Returns the playlist/track identifier.URIXSPFCommon. getImage()Returns the playlist/track image.URIXSPFCommon. getInfo()Returns the playlist/track info.protected IntegerXSPFElement. getInt(String name)Gets integer contents of this element's child of given name.XSPFLinksXSPFCommon. getLinks()Returns the playlist/track links (as a copy).URIXSPFCommon. getLocation()Returns the playlist/track location.XSPFMetasXSPFCommon. getMetas()Returns the playlist/track metas (as a copy).protected <T extends XSPFElement>
TXSPFNode. getOne(String name, java.util.function.Function<Element,T> mapper)protected StringXSPFElement. getStr()Returns actual element's string contents.protected StringXSPFElement. getStr(String name)Get string contents of this element's child of given name.StringXSPFCommon. getTitle()Returns the playlist/track title.protected URIXSPFElement. getUri()Gets uri contents of this element.protected URIXSPFElement. getUri(String name)Gets uri contents of this element's child of given name.protected URIXSPFElement. getUriAttr(String name)Gets uri contents of this element's attribute of given name.Iterable<E>XSPFCollection. iterate()Returns iterable version of this collection.XSPFLinksXSPFCommon. links()Returns the playlist/track links (as a view).java.util.stream.Stream<E>XSPFCollection. list()Returns theStreamcontaining all the elements inside of this collection.XSPFMetasXSPFCommon. metas()Returns the playlist/track metas (as a view).protected <T extends XSPFElement>
TXSPFNode. one(String name, java.util.function.Function<Element,T> mapper)voidXSPFCollection. remove(E element)Removes the given element from this collection.protected <T extends XSPFElement>
voidXSPFNode. setAll(String name, List<T> items)voidXSPFCommon. setAnnotation(String annotation)Sets the playlist/track annotation.protected <E extends XSPFElement,C extends XSPFCollection<E>>
voidXSPFElement. setCollection(XSPFCollection<E> collection)Sets the collection (clone) mapped to this element.protected <E extends XSPFElement,C extends XSPFCollection<E>>
voidXSPFElement. setCollection(String name, XSPFCollection<E> collection)Sets the collection (clone) mapped to this element's child of given name.voidXSPFCommon. setCreator(String creator)Sets the playlist/track creator.protected voidXSPFElement. setDate(String name, java.time.LocalDateTime value)Sets datetime contents of this element's child of given name.protected voidXSPFElement. setDuration(String name, java.time.Duration value)Sets duration contents of this element's child of given name.voidXSPFCommon. setExtensions(XSPFExtensions extensions)Sets the (copy of the) playlist/track extensions.voidXSPFCommon. setIdentifier(URI identifier)Sets the playlist/track identifier.voidXSPFCommon. setImage(URI image)Sets the playlist/track image.voidXSPFCommon. setInfo(URI info)Sets the playlist/track info.protected voidXSPFElement. setInt(String name, int value)Set integer contents of this element's child of given name.voidXSPFCommon. setLinks(XSPFLinks links)Sets the (copy of) the playlist/track links.voidXSPFCommon. setLocation(URI location)Sets the playlist/track location.voidXSPFCommon. setMetas(XSPFMetas metas)Sets (copy of) the playlist/track metas.protected <T extends XSPFElement>
voidXSPFNode. setOne(String name, T value)protected voidXSPFElement. setStr(String value)Sets actual element's string contents.protected voidXSPFElement. setStr(String name, String value)Sets string contents of this element's child of given name.voidXSPFCommon. setTitle(String title)Sets the playlist/track title.protected voidXSPFElement. setUri(String name, URI value)Sets uri contents of this element's child of given name.protected voidXSPFElement. setUri(URI value)Sets uri contents of this element.protected voidXSPFElement. setUriAttr(String name, URI value)Sets uri contents of this element's attribute of given name.intXSPFCollection. size()Returns the count of elements in this collection. -
Uses of XSPFException in cz.martlin.xspf.playlist.collections
Methods in cz.martlin.xspf.playlist.collections that throw XSPFException Modifier and Type Method Description XSPFExtensionXSPFExtensions. createExtension()Creates (empty) extension.XSPFExtensionXSPFExtensions. createExtension(URI application)Creates new extension for the given application.XSPFLinkXSPFLinks. createLink()Creates new (empty) link.XSPFLinkXSPFLinks. createLink(URI rel, URI content)Creates link with given rel and content.XSPFMetaXSPFMetas. createMeta()Creates (empty) meta.XSPFMetaXSPFMetas. createMeta(URI rel, String content)Creates the meta with given rel and content.XSPFTrackXSPFTracks. createTrack()Creates (empty) track.XSPFTrackXSPFTracks. createTrack(URI location)Creates track with given location.XSPFTrackXSPFTracks. createTrack(URI location, String title)Creates track with given location and title.XSPFTrackXSPFTracks. createTrack(URI location, String title, int trackNum, java.time.Duration duration)Creates track with given location, title trackNum and duration.XSPFTrackXSPFTracks. createTrack(URI location, String creator, String album, String title, int trackNum, java.time.Duration duration)Creates track with given location, creator, album, title, trackNum and duration.XSPFExtensionXSPFExtensions. extension(URI application)Finds the extension for the given application.URIXSPFLink. getContent()URIXSPFLink. getRel()XSPFLinkXSPFLinks. link(URI rel)Returns link having the given rel.XSPFMetaXSPFMetas. meta(URI rel)Returns meta having the given rel.voidXSPFLink. setContent(URI rel)voidXSPFLink. setRel(URI rel)XSPFTrackXSPFTracks. track(int trackNum)Returns track having the given trackNum.XSPFTrackXSPFTracks. track(String title)Returns track having the given title. -
Uses of XSPFException in cz.martlin.xspf.playlist.elements
Methods in cz.martlin.xspf.playlist.elements that throw XSPFException Modifier and Type Method Description voidXSPFAttribution. add(XSPFAttribution.XSPFAttributionItem item)Adds given item.voidXSPFAttribution. add(String element, String value)Adds item with given element name and value.XSPFAttributionXSPFPlaylist. attribution()Gets the (view of) the playlist attribution.static XSPFFileXSPFFile. create()Creates empty xspf file.StringXSPFTrack. getAlbum()Returns the track album.URIXSPFExtension. getApplication()Returns the application.XSPFAttributionXSPFPlaylist. getAttribution()Gets (copy of) the playlist attribution.URIXSPFLink. getContent()Gets the link content.StringXSPFMeta. getContent()Returns the meta content.java.time.LocalDateTimeXSPFPlaylist. getDate()Returns the playlist date.java.time.DurationXSPFTrack. getDuration()Returns the track duration.URIXSPFPlaylist. getLicense()Returns the playlist license.XSPFPlaylistXSPFFile. getPlaylist()Returns the (copy of) the playlist.URIXSPFLink. getRel()Returns the link rel.URIXSPFMeta. getRel()Returns the meta rel.IntegerXSPFTrack. getTrackNum()Returns the trackNum.XSPFTracksXSPFPlaylist. getTracks()Returns the (copy of) the tracks.XMLDocumentUtilityXSPFExtension. getUtility(String nsPrefix, String nsURI)Returns the utility for the given extension.List<XSPFAttribution.XSPFAttributionItem>XSPFAttribution. list()Lists the items.static XSPFFileXSPFFile. load(File file)Loads the XSPF playlist from the given file.XSPFAttributionXSPFFile. newAttribution()Creates new attribution.XSPFExtensionsXSPFFile. newExtensions()Creates new collection of extensions.XSPFLinksXSPFFile. newLinks()Creates new collection of links.XSPFMetasXSPFFile. newMetas()Creates new collection of metas.XSPFPlaylistXSPFFile. newPlaylist()Creates new playlist.XSPFTracksXSPFFile. newTracks()Creates new collection of tracks.XSPFPlaylistXSPFFile. playlist()Return the (view of) the playlist.voidXSPFFile. save(File file)Saves this xspf file to the given file.voidXSPFTrack. setAlbum(String album)Sets the track album.voidXSPFExtension. setApplication(URI application)Sets the application.voidXSPFPlaylist. setAttribution(XSPFAttribution attribution)Sets the (copy of) playlist attribution.voidXSPFLink. setContent(URI rel)Sets the link content.voidXSPFMeta. setContent(String content)Sets the meta content.voidXSPFPlaylist. setDate(java.time.LocalDateTime date)Sets the playlist date.voidXSPFTrack. setDuration(java.time.Duration duration)Sets the track duration.voidXSPFPlaylist. setLicense(URI license)Sets the playlist license.voidXSPFFile. setPlaylist(XSPFPlaylist playlist)Sets the (copy of) the playlist.voidXSPFLink. setRel(URI rel)Sets the link rel.voidXSPFMeta. setRel(URI rel)Sets the meta rel.voidXSPFTrack. setTrackNum(int trackNum)Sets the trackNum.voidXSPFPlaylist. setTracks(XSPFTracks tracks)Set the (copy of) the tracks.XSPFTracksXSPFPlaylist. tracks()Returns the (view of) the tracks. -
Uses of XSPFException in cz.martlin.xspf.util
Methods in cz.martlin.xspf.util that throw XSPFException Modifier and Type Method Description voidXMLDocumentUtilityHelper. addChild(Node owner, Element child)Adds the given child element.voidXMLDocumentUtility. addChildElement(Node owner, Element elem)Just adds the given element to the given owner.static DocumentXMLFileLoaderStorer. createEmptyDocument()Creates the empty XML DOM document instance.ElementXMLDocumentUtilityHelper. createChild(Node owner, String elemName)Creates (and appends) child element of the given owner.ElementXMLDocumentUtilityHelper. createNew(Node context, String elemName)Creates new element of the given name in the given context (any node or the whole document).ElementXMLDocumentUtility. createNewElement(Node context, String name)Just creates new element in the document given by the context (the whole document including).StringXMLDocumentUtilityHelper. getAttrValue(Element elem, String attrName)Returns the value of the given element's attribute.StringXMLDocumentUtilityHelper. getAttrValueOrNull(Element elem, String attrName)Returns the value of the given element's attribute.StringXSPFDocumentUtility. getElementAttr(Element owner, String attrName)<T> TXSPFDocumentUtility. getElementAttr(Element owner, String attrName, XSPFDocumentUtility.TextToValueMapper<T> mapper)<T> TXMLDocumentUtility. getElementAttrOrNull(Element owner, String attrName, XMLDocumentUtilityHelper.NullableTextToValueMapper<T> mapper)Returns the value of the given element attribute of given name, converted by given mapper.StringXSPFDocumentUtility. getElementText(Element owner, String elemName)StringXMLDocumentUtilityHelper. getElementValue(Element elem)Returns the value of the given element's content.<T> TXSPFDocumentUtility. getElementValue(Element elem, XSPFDocumentUtility.TextToValueMapper<T> mapper)<T> TXSPFDocumentUtility. getElementValue(Element owner, String elemName, XSPFDocumentUtility.TextToValueMapper<T> mapper)<T> TXMLDocumentUtility. getElementValueOrNull(Element elem, XMLDocumentUtilityHelper.NullableTextToValueMapper<T> mapper)Returns the value of the given element, converted by given mapper.StringXMLDocumentUtilityHelper. getElementValueOrNull(Element elem)Returns the value of the given element's content.ElementXSPFDocumentUtility. getChildElem(Element owner, String elemName)ElementXMLDocumentUtility. getChildElemCloneOrNull(Node owner, String elemName)Returns the copy of the child element of the given name of the given owner.<T> TXMLDocumentUtility. getChildElementValueOrNull(Element owner, String elemName, XMLDocumentUtilityHelper.NullableTextToValueMapper<T> mapper)Returns the value of the given element child of given name, converted by given mapper.ElementXMLDocumentUtility. getChildElemOrNull(Node owner, String elemName)Returns the child element of the given name of the given owner.ElementXMLDocumentUtilityHelper. getChildOrNull(Node owner, String elemName)Returns the child element of the given owner.java.util.stream.Stream<Element>XMLDocumentUtilityHelper. getChildren(Node owner, String elemName)Returns the child elements of the given owner (having given name).ElementXMLDocumentUtilityHelper. getOrCreateChild(Node owner, String elemName)Returns the child element of the given owner.ElementXMLDocumentUtility. getOrCreateChildElem(Node owner, String elemName)Returns the child element of the given name of the given owner.ElementXSPFDocumentUtility. getOrCreateChildElem(Element owner, String elemName)ElementXSPFDocumentUtility. getOrCreateRootElem(Document doc, String elemName)ElementXSPFDocumentUtility. getRootElem(Document doc, String elemName)booleanXMLDocumentUtilityHelper. hasChildren(Node owner, String elemName)Returns true whether the given owner has any child elements having the given name.voidXSPFDocumentUtility. init(Document document)java.util.stream.Stream<Element>XMLDocumentUtility. listChildrenElems(Node container)Lists all the children of the given container node (element or document).java.util.stream.Stream<Element>XMLDocumentUtility. listChildrenElems(Node container, String elemName)Lists the children of the given name of the given container node (element or document).java.util.stream.Stream<Element>XMLDocumentUtility. listChildrenElemsClones(Node container, String elemName)Lists the copies of the children of the given name of the given container node (element or document).static DocumentXMLFileLoaderStorer. loadDocument(File file)Loads the XML DOM document from the given file.static voidPrinter. print(int padding, String label, XSPFExtensions extensions)Prints the given extensions with given label and padding.static voidPrinter. print(int padding, String label, XSPFLinks links)Prints the given links with given label and padding.static voidPrinter. print(int padding, String label, XSPFMetas metas)Prints the given metas with given label and padding.static voidPrinter. print(int padding, String label, XSPFTracks tracks)Prints the given tracks with given label and padding.static voidPrinter. print(int padding, String label, XSPFAttribution attribution)Prints the given attribution with given label and padding.static voidPrinter. print(int padding, String label, XSPFExtension extension)Prints the given extension with given label and padding.static voidPrinter. print(int padding, String label, XSPFFile file)Prints the given file with given label and padding.static voidPrinter. print(int padding, String label, XSPFLink link)Prints the given link with given label and padding.static voidPrinter. print(int padding, String label, XSPFMeta meta)Prints the given meta with given label and padding.static voidPrinter. print(int padding, String label, XSPFPlaylist playlist)Prints the given plůaylist with given label and padding.static voidPrinter. print(int padding, String label, XSPFTrack track)Prints the given track with given label and padding.voidXMLDocumentUtility. register(Element elem)Registers given element to this utility (populates he namespace).voidXMLDocumentUtilityHelper. removeChild(Node owner, Element child)Removes the given child element.voidXMLDocumentUtility. removeChildElement(Node owner, String elemName)Removes one child element of the given name of the given owner.voidXMLDocumentUtility. removeChildElement(Node owner, Element elem)Just removes the given element from the given owner.voidXMLDocumentUtility. removeChildElements(Node owner, String elemName)Removes all child elements of the given name of the given owner.voidXSPFDocumentUtility. replaceAllChildren(Element owner, String elemName, List<Element> elements)ElementXSPFDocumentUtility. replaceChildElem(Element owner, String elemName)ElementXSPFDocumentUtility. replaceChildElem(Element owner, String elemName, Element replacement)voidXMLDocumentUtility. replaceChildElement(Node owner, String elemName, Element replacement)Replaces one child element of the given name of the given owner with the another one.voidXMLDocumentUtility. replaceChildElement(Node owner, Element original, Element replacement)Just replaces the given element with another one.voidXMLDocumentUtility. replaceChildElementByClone(Node owner, String elemName, Element replacement)Replaces one child element of the given name of the given owner with the clone of another one.voidXMLDocumentUtility. replaceChildElements(Node owner, String elemName, java.util.stream.Stream<Element> replacements)Replaces all child elements of the given name of the given owner with the another ones.voidXMLDocumentUtility. replaceChildElements(Node owner, java.util.stream.Stream<Element> originals, java.util.stream.Stream<Element> replacements)Just replaces the given elements by another ones.voidXMLDocumentUtility. replaceChildElementsByClone(Node owner, String elemName, java.util.stream.Stream<Element> replacements)Replaces all child elements of the given name of the given owner with the clone of another ones.static voidXMLFileLoaderStorer. saveDocument(Document document, File file)Saves the XML DOM document to the given file.<T> voidXMLDocumentUtility. setElementAttr(Element owner, String attrName, T value, XMLDocumentUtilityHelper.NullableValueToTextMapper<T> mapper)Sets the value of the given element attribute of given name, converted by given mapper.voidXSPFDocumentUtility. setElementAttr(Element owner, String attrName, String value)<T> voidXSPFDocumentUtility. setElementAttr(Element owner, String attrName, T value, XSPFDocumentUtility.ValueToTextMapper<T> mapper)voidXSPFDocumentUtility. setElementText(Element owner, String elemName, String value)<T> voidXMLDocumentUtility. setElementValue(Element elem, T value, XMLDocumentUtilityHelper.NullableValueToTextMapper<T> mapper)Sets the value of the given element, converted by given mapper.<T> voidXSPFDocumentUtility. setElementValue(Element owner, String elemName, T value, XSPFDocumentUtility.ValueToTextMapper<T> mapper)<T> voidXSPFDocumentUtility. setElementValue(Element elem, T value, XSPFDocumentUtility.ValueToTextMapper<T> mapper)<T> voidXMLDocumentUtility. setChildElementValue(Element owner, String elemName, T value, XMLDocumentUtilityHelper.NullableValueToTextMapper<T> mapper)Sets the value of the given element child of given name, converted by given mapper.voidXMLDocumentUtilityHelper. specifyNSattribute(Element elem)Sets the namespace declaration attribute to the given element.<T> TXMLDocumentUtilityHelper. textToValue(String text, XMLDocumentUtilityHelper.NullableTextToValueMapper<T> mapper)Converts the given text to value of particular type by the given mapper.<T> StringXMLDocumentUtilityHelper. valueToText(T value, XMLDocumentUtilityHelper.NullableValueToTextMapper<T> mapper)Converts the given value of particular type to text by the given mapper.
-