org.yaml.snakeyaml.events
Class ImplicitTuple

java.lang.Object
  extended by org.yaml.snakeyaml.events.ImplicitTuple

public class ImplicitTuple
extends Object

The implicit flag of a scalar event is a pair of boolean values that indicate if the tag may be omitted when the scalar is emitted in a plain and non-plain style correspondingly.

See Also:
http://pyyaml.org/wiki/PyYAMLDocumentation#Events, PyYAML for more information

Constructor Summary
ImplicitTuple(boolean plain, boolean nonplain)
           
 
Method Summary
 boolean bothFalse()
           
 boolean isFirst()
           
 boolean isSecond()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImplicitTuple

public ImplicitTuple(boolean plain,
                     boolean nonplain)
Method Detail

isFirst

public boolean isFirst()
Returns:
true when tag may be omitted when the scalar is emitted in a plain style.

isSecond

public boolean isSecond()
Returns:
true when tag may be omitted when the scalar is emitted in a non-plain style.

bothFalse

public boolean bothFalse()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2010. All Rights Reserved.