public abstract class AbstractDocumentViewCodec extends Object implements DocumentViewCodec
Implements methods that are not likely to be customized except for optimization.
Constructor and Description |
---|
AbstractDocumentViewCodec() |
Modifier and Type | Method and Description |
---|---|
String |
getPrefix() |
boolean |
handleDocumentView(DocumentView docView)
Returns true if this codec should apply when iterating over codecs to find a matching one.
|
boolean |
handleUrl(String url)
Returns true if this codec should apply when iterating over codecs to find a matching one.
|
void |
setPrefix(String prefix) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentViewFromUrl, getUrlFromDocumentView
public AbstractDocumentViewCodec()
public String getPrefix()
getPrefix
in interface DocumentViewCodec
public void setPrefix(String prefix)
setPrefix
in interface DocumentViewCodec
public boolean handleDocumentView(DocumentView docView)
DocumentViewCodec
handleDocumentView
in interface DocumentViewCodec
DocumentViewCodecManager.getUrlFromDocumentView(DocumentView, boolean, String)
public boolean handleUrl(String url)
DocumentViewCodec
handleUrl
in interface DocumentViewCodec
DocumentViewCodecManager.getDocumentViewFromUrl(String, boolean, String)
Copyright © 2017 Nuxeo. All rights reserved.