Package org.yaml.snakeyaml.nodes
Class Tag
java.lang.Object
org.yaml.snakeyaml.nodes.Tag
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Tag
static final Tag
static final Tag
static final Tag
static final Tag
static final Tag
static final Tag
static final Tag
static final Tag
static final Tag
static final String
private boolean
static final Tag
static final Tag
static final Tag
static final Tag
private final String
static final Tag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
int
hashCode()
boolean
isCompatible
(Class<?> clazz) Java has more then 1 class compatible with a language-independent tag (!!int, !!float, !!timestamp etc)boolean
boolean
Check whether this tag matches the global tag for the Classboolean
startsWith
(String prefix) toString()
-
Field Details
-
PREFIX
- See Also:
-
YAML
-
MERGE
-
SET
-
PAIRS
-
OMAP
-
BINARY
-
INT
-
FLOAT
-
TIMESTAMP
-
BOOL
-
NULL
-
STR
-
SEQ
-
MAP
-
COMMENT
-
COMPATIBILITY_MAP
-
value
-
secondary
private boolean secondary
-
-
Constructor Details
-
Tag
-
Tag
-
-
Method Details
-
isSecondary
public boolean isSecondary() -
getValue
-
startsWith
-
getClassName
-
toString
-
equals
-
hashCode
public int hashCode() -
isCompatible
Java has more then 1 class compatible with a language-independent tag (!!int, !!float, !!timestamp etc)- Parameters:
clazz
- - Class to check compatibility- Returns:
- true when the Class can be represented by this language-independent tag
-
matches
Check whether this tag matches the global tag for the Class- Parameters:
clazz
- - Class to check- Returns:
- true when the this tag can be used as a global tag for the Class
-