Class WriteConcernPropertyEditor

  extended by java.beans.PropertyEditorSupport
      extended by
All Implemented Interfaces:

public class WriteConcernPropertyEditor
extends PropertyEditorSupport

Parse a string to a WriteConcern. If it is a well know String as identified by the WriteConcern.valueOf(String), use the well known WriteConcern value, otherwise pass the string as is to the constructor of the write concern. There is no support for other constructor signatures when parsing from a string value.

Mark Pollack

Constructor Summary
Method Summary
 void setAsText(String writeConcernString)
          Parse a string to a List
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public WriteConcernPropertyEditor()
Method Detail


public void setAsText(String writeConcernString)
Parse a string to a List

Specified by:
setAsText in interface PropertyEditor
setAsText in class PropertyEditorSupport

Copyright © 2011. All Rights Reserved.