public interface OpaqueResource
Different wrappers can be provided for different kind of resources. For example resources returned from the xmldb layer can be cheaply mapped to an OpaqueResource, without going to full xml->bean conversion.
Modifier and Type | Method and Description |
---|---|
Document |
asDom()
Implementors may store the DOM in the first place.
|
String |
asString()
Implementors may need to serialize the resource to a xml string representation.
|
Date |
getModificationDate()
get modification time stamp.
|
String |
getResourceId()
Resource identifier.
|
String |
getResourceKind()
Resource kind.
|
String |
getResourceType()
Resource type.
|
String |
getResourceUri()
Resource URI.
|
void |
setModificationDate(Date timeStamp)
set modification timestamp.
|
void |
setResourceId(String identifier)
change the resource identifier.
|
void |
setResourceKind(String kind)
change the resource kind.
|
void |
setResourceUri(String uri)
change the resource uri.
|
String getResourceType()
String getResourceKind()
String getResourceId()
String getResourceUri()
Date getModificationDate()
String asString()
Document asDom()
void setResourceId(String identifier)
identifier
- new identifiervoid setResourceKind(String kind)
kind
- new kindvoid setResourceUri(String uri)
uri
- new urivoid setModificationDate(Date timeStamp)
timeStamp
- modification time stampCopyright © 2019. All rights reserved.