public abstract class AbstractRecord extends Object implements Record
Modifier and Type | Field and Description |
---|---|
protected NamespaceResolver |
nsResolver
Namespace resolver.
|
protected NamePathResolver |
resolver
Name and Path resolver.
|
Constructor and Description |
---|
AbstractRecord(NamespaceResolver nsResolver,
NamePathResolver resolver)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
NodeId |
readNodeId()
Read a
NodeId from the underlying stream. |
QNodeTypeDefinition |
readNodeTypeDef()
Read a
NodeTypeDef from the underlying stream. |
Path |
readPath()
Read a
Path from the underlying stream. |
Path |
readPathElement()
Read a named path element from the underlying stream.
|
PrivilegeDefinition |
readPrivilegeDef()
Read a
PrivilegeDefinition from the underlying stream. |
PropertyId |
readPropertyId()
Read a
PropertyId from the underlying stream. |
Name |
readQName()
Read a
Name frmo the underlying stream. |
void |
writeNodeId(NodeId nodeId)
Write a
NodeId to the underlying stream. |
void |
writeNodeTypeDef(QNodeTypeDefinition ntd)
Write a
NodeTypeDef to the underlying stream. |
void |
writePath(Path path)
Write a
Path to the underlying stream. |
void |
writePathElement(Path path)
Write a
Path.Element to the underlying stream. |
void |
writePrivilegeDef(PrivilegeDefinition privilegeDefinition)
Write a
PrivilegeDefinition to the underlying stream. |
void |
writePropertyId(PropertyId propertyId)
Write a
PropertyId to the underlying stream. |
void |
writeQName(Name name)
Write a
Name to the underlying stream. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelUpdate, getJournalId, getProducerId, getRevision, readBoolean, readByte, readChar, readFully, readInt, readLong, readString, update, write, writeBoolean, writeByte, writeChar, writeInt, writeLong, writeString
protected final NamespaceResolver nsResolver
protected final NamePathResolver resolver
public AbstractRecord(NamespaceResolver nsResolver, NamePathResolver resolver)
nsResolver
- the namespace resolverresolver
- the name-path resolverpublic void writeQName(Name name) throws JournalException
Name
to the underlying stream.writeQName
in interface Record
name
- nameJournalException
- if an error occurspublic void writePathElement(Path path) throws JournalException
Path.Element
to the underlying stream.writePathElement
in interface Record
path
- path elementJournalException
- if an error occurspublic void writePath(Path path) throws JournalException
Path
to the underlying stream.writePath
in interface Record
path
- pathJournalException
- if an error occurspublic void writeNodeId(NodeId nodeId) throws JournalException
NodeId
to the underlying stream.writeNodeId
in interface Record
nodeId
- node idJournalException
- if an error occurspublic void writePropertyId(PropertyId propertyId) throws JournalException
PropertyId
to the underlying stream.writePropertyId
in interface Record
propertyId
- property idJournalException
- if an error occurspublic void writeNodeTypeDef(QNodeTypeDefinition ntd) throws JournalException
NodeTypeDef
to the underlying stream.writeNodeTypeDef
in interface Record
ntd
- node type definitionJournalException
- if an error occurspublic void writePrivilegeDef(PrivilegeDefinition privilegeDefinition) throws JournalException
PrivilegeDefinition
to the underlying stream.writePrivilegeDef
in interface Record
privilegeDefinition
- privilege definitionJournalException
- if an error occurspublic Name readQName() throws JournalException
Name
frmo the underlying stream.readQName
in interface Record
JournalException
- if an error occurspublic Path readPathElement() throws JournalException
readPathElement
in interface Record
JournalException
- if an error occurspublic Path readPath() throws JournalException
Path
from the underlying stream.readPath
in interface Record
JournalException
- if an error occurspublic NodeId readNodeId() throws JournalException
NodeId
from the underlying stream.readNodeId
in interface Record
JournalException
- if an error occurspublic PropertyId readPropertyId() throws JournalException
PropertyId
from the underlying stream.readPropertyId
in interface Record
JournalException
- if an error occurspublic QNodeTypeDefinition readNodeTypeDef() throws JournalException
NodeTypeDef
from the underlying stream.readNodeTypeDef
in interface Record
JournalException
- if an error occurspublic PrivilegeDefinition readPrivilegeDef() throws JournalException
PrivilegeDefinition
from the underlying stream.readPrivilegeDef
in interface Record
JournalException
- if an error occursCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.