|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.data.RecordBuilderBase<T> org.apache.avro.specific.SpecificErrorBuilderBase<T>
public abstract class SpecificErrorBuilderBase<T extends SpecificExceptionBase>
Abstract base class for specific ErrorBuilder implementations. Not thread-safe.
Field Summary |
---|
Fields inherited from class org.apache.avro.data.RecordBuilderBase |
---|
data, fields, fieldSetFlags, schema |
Constructor Summary | |
---|---|
protected |
SpecificErrorBuilderBase(Schema schema)
Creates a SpecificErrorBuilderBase for building errors of the given type. |
protected |
SpecificErrorBuilderBase(SpecificErrorBuilderBase<T> other)
SpecificErrorBuilderBase copy constructor. |
protected |
SpecificErrorBuilderBase(T other)
Creates a SpecificErrorBuilderBase by copying an existing error instance. |
Method Summary | |
---|---|
SpecificErrorBuilderBase<T> |
clearCause()
Clears the cause |
SpecificErrorBuilderBase<T> |
clearValue()
Clears the value |
Throwable |
getCause()
Gets the error cause |
Object |
getValue()
Gets the value |
boolean |
hasCause()
Checks whether the cause has been set |
boolean |
hasValue()
Checks whether the value has been set |
SpecificErrorBuilderBase<T> |
setCause(Throwable cause)
Sets the error cause |
SpecificErrorBuilderBase<T> |
setValue(Object value)
Sets the value |
Methods inherited from class org.apache.avro.data.RecordBuilderBase |
---|
equals, getDefaultValue, hashCode, isValidValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avro.data.RecordBuilder |
---|
build |
Constructor Detail |
---|
protected SpecificErrorBuilderBase(Schema schema)
schema
- the schema associated with the error class.protected SpecificErrorBuilderBase(SpecificErrorBuilderBase<T> other)
other
- SpecificErrorBuilderBase instance to copy.protected SpecificErrorBuilderBase(T other)
other
- the error instance to copy.Method Detail |
---|
public Object getValue()
ErrorBuilder
getValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> setValue(Object value)
ErrorBuilder
setValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public boolean hasValue()
ErrorBuilder
hasValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> clearValue()
ErrorBuilder
clearValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public Throwable getCause()
ErrorBuilder
getCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> setCause(Throwable cause)
ErrorBuilder
setCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
public boolean hasCause()
ErrorBuilder
hasCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> clearCause()
ErrorBuilder
clearCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |