title: How to hide bean type in snakeyaml
body: <p>This code will output:(YAML)</p>
  
  <p>--- !!org.test.bean.Person</p>
  
  <p>address: 4011 16th Ave S</p>
  
  <p>.....</p>
  
  <p>Can hide my bean type(org.test.bean.Person) anyway !?
  (prefer to use snakeyaml config...i can't find it..)</p>
  
  <p>thanks!!</p>
  
  <pre><code>public static void dumpYAML(){
      Constructor constructor = new Constructor(Person.class);
      TypeDescription personDescription = new TypeDescription(Person.class);
      personDescription.putListPropertyType("phone", Tel.class);
      constructor.addTypeDescription(personDescription);
  
      Yaml yaml = new Yaml(constructor);
      Person person = (Person) yaml.load(makeYAML());
  
      DumperOptions options = new DumperOptions();
      options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
      options.setCanonical(false); // display bean member attribute
      options.setExplicitStart(true); // display --- start
  
      yaml = new Yaml(options);
      String output = yaml.dump(person);
      System.out.println(output);
  }
  </code></pre>