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, waitgetDocumentViewFromUrl, getUrlFromDocumentViewpublic AbstractDocumentViewCodec()
public String getPrefix()
getPrefix in interface DocumentViewCodecpublic void setPrefix(String prefix)
setPrefix in interface DocumentViewCodecpublic boolean handleDocumentView(DocumentView docView)
DocumentViewCodechandleDocumentView in interface DocumentViewCodecDocumentViewCodecManager.getUrlFromDocumentView(DocumentView, boolean, String)public boolean handleUrl(String url)
DocumentViewCodechandleUrl in interface DocumentViewCodecDocumentViewCodecManager.getDocumentViewFromUrl(String, boolean, String)Copyright © 2019 Nuxeo. All rights reserved.