Class DumpEntity<T>
java.lang.Object
org.bedework.carddav.server.dirHandlers.db.DumpEntity<T>
- Type Parameters:
T-
- All Implemented Interfaces:
org.bedework.util.logging.Logged
- Direct Known Subclasses:
UnversionedDbentity
An entity which can be dumped..
- Version:
- 1.0
- Author:
- Mike Douglass
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(org.bedework.util.xml.XmlEmit xml, DumpEntity.DumpType dtype) Dump this entity as xml.voiddump(org.bedework.util.xml.XmlEmit xml, DumpEntity.DumpType dtype, boolean fromCollection) Dump this entity as xml.org.bedework.util.logging.BwLoggerbooleanOverride this if we want to optionally suppress the dump based on some attributes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
DumpEntity
public DumpEntity()
-
-
Method Details
-
hasDumpValue
public boolean hasDumpValue()Override this if we want to optionally suppress the dump based on some attributes. This allows us to skip empty objects which occassionally turn up.- Returns:
- boolean true to continue with dump.
-
dump
Dump this entity as xml.- Parameters:
xml- emitterdtype- DumpType
-
dump
public void dump(org.bedework.util.xml.XmlEmit xml, DumpEntity.DumpType dtype, boolean fromCollection) Dump this entity as xml.- Parameters:
xml- emitterdtype- DumpTypefromCollection- true if the value is a member of a collection
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-