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 than 1 class compatible with a language-independent tag (!!int, !!float, !!timestamp etc)boolean
Check if the that is global and not standard to provide it to TagInspector for verification.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
-
standardTags
-
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 than 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 this tag can be used as a global tag for the Class during serialisation
-
isCustomGlobal
public boolean isCustomGlobal()Check if the that is global and not standard to provide it to TagInspector for verification.- Returns:
- true when the tag must be verified to avoid remote code invocation
-