code: public SnapModeEnum getSnapMode()
  	{
  		String literal = options.getLiteral("snapMode");
  		return literal == null ? SnapModeEnum.BOTH : SnapModeEnum.valueOf(literal.toUpperCase());
  	}
docs: Returns the snapMode option