Top Description Fields Constructors Methods
org.yaml.snakeyaml.events

public Class ImplicitTuple

extends Object
Class Inheritance

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
Events

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean

Constructor Summary

AccessConstructor and Description
public
ImplicitTuple(boolean
- true when tag can be omitted in plain
plain
,
boolean
- true when tag can be omitted in non-plain
nonplain
)

Create

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true when both are false
bothFalse
()

getter

public boolean

Returns:

true when tag may be omitted when the scalar is emitted in a non-plain style.
canOmitTagInNonPlainScalar
()

public boolean

Returns:

true when tag may be omitted when the scalar is emitted in a plain style.
canOmitTagInPlainScalar
()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nonPlainback to summary
private final boolean nonPlain
plainback to summary
private final boolean plain

Constructor Detail

ImplicitTupleback to summary
public ImplicitTuple(boolean plain, boolean nonplain)

Create

Parameters
plain:boolean

- true when tag can be omitted in plain

nonplain:boolean

- true when tag can be omitted in non-plain

Method Detail

bothFalseback to summary
public boolean bothFalse()

getter

Returns:boolean

true when both are false

canOmitTagInNonPlainScalarback to summary
public boolean canOmitTagInNonPlainScalar()
Returns:boolean

true when tag may be omitted when the scalar is emitted in a non-plain style.

canOmitTagInPlainScalarback to summary
public boolean canOmitTagInPlainScalar()
Returns:boolean

true when tag may be omitted when the scalar is emitted in a plain style.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override