package com.niomongo.conversion.json2bson;

import com.niomongo.conversion.custom.ClassMeta;
import com.niomongo.conversion.custom.Meta;
import com.niomongo.conversion.custom.Size;
import com.niomongo.conversion.custom.Strict;
import com.niomongo.conversion.json.NameLiteralValue;
import com.niomongo.conversion.json.NameObjectValue;
import com.niomongo.conversion.json.NameStringValue;
import com.niomongo.processing.common.UsersObject;

import java.nio.ByteBuffer;

/**
 * Created with IntelliJ IDEA.
 * User: Yevgen Bushuyev
 * Date: 12/25/14
 * Time: 4:27 PM
 */
@Strict
public class Catalog extends UsersObject {
  public static final ClassMeta meta = ClassMeta.findMeta(Catalog.class);

  public Catalog() {
  }

  public Catalog(ByteBuffer buffer) {
    super(buffer);
  }

  @Meta(String.class)
  @Size(min = 5, max = 100)
  public NameStringValue name;

  @Meta(Boolean.class)
  public NameLiteralValue ready;
//
//  @Meta(Branch.class)
//  public NameObjectValue rootBranch;
}
