private boolean isYaml ( ) { String extension = getLocation ( ) == null ? null : FilenameUtils . getExtension ( getLocation ( ) . getPath ( ) ) . toLowerCase ( ) ; return "yml" . equals ( extension ) || "yaml" . equals ( extension ) ; }
Returns true if this is a YAML document .