public class PageFormat extends CommonNodeWrapper implements Comparable<PageFormat>
Constructor and Description |
---|
PageFormat(Page page,
com.hp.hpl.jena.rdf.model.Resource root)
Construct a page format whose configuration root is the given resource.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PageFormat o)
When sorting, use the name as a comparison key
|
com.epimorphics.rdfutil.RDFNodeWrapper |
isFormatOf() |
String |
label()
Return the label for this format, which is denoted by the
rdfs:label
on the page format resource |
MediaType |
mimeType()
Return the media (mime) type of this format
|
getInt, getResource, isXmlLiteral, page
asList, asLiteral, asRDFNode, asResource, asTurtle, asTurtle, closure, closure, connectedNodes, equals, firstValueOf, get, getDatatype, getLanguage, getLexicalForm, getLocalizedValue, getModelW, getName, getPropertyValue, getShortURI, getURI, getValue, hashCode, hasResourceValue, isAnon, isList, isLiteral, isResource, listInLinks, listInLinks, listProperties, listPropertyValues, tokeniseWords, toProperty, toString
public PageFormat(Page page, com.hp.hpl.jena.rdf.model.Resource root)
page
- The page object this is one of the formats forroot
- The configuration root resourcepublic String label()
rdfs:label
on the page format resourcepublic MediaType mimeType()
public com.epimorphics.rdfutil.RDFNodeWrapper isFormatOf()
public int compareTo(PageFormat o)
compareTo
in interface Comparable<PageFormat>
Copyright © 2014. All Rights Reserved.