diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index f55ce72..a72ff1a 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -12,7 +12,7 @@ distribution = "2201.8.1" graalvmCompatible = true [[platform.java17.dependency]] -groupId = "io.ballerina.stdlib" +groupId = "io.ballerina.lib" artifactId = "yaml-native" version = "@toml.version@" path = "../native/build/libs/data.yaml-native-@project.version@.jar" diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/Native.java b/native/src/main/java/io/ballerina/lib/data/yaml/Native.java index f9ebf32..ac942c9 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/Native.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/Native.java @@ -16,8 +16,14 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml; +package io.ballerina.lib.data.yaml; +import io.ballerina.lib.data.yaml.emitter.Emitter; +import io.ballerina.lib.data.yaml.io.DataReaderTask; +import io.ballerina.lib.data.yaml.io.DataReaderThreadPool; +import io.ballerina.lib.data.yaml.parser.YamlParser; +import io.ballerina.lib.data.yaml.serializer.Serializer; +import io.ballerina.lib.data.yaml.utils.OptionsUtils; import io.ballerina.runtime.api.Environment; import io.ballerina.runtime.api.Future; import io.ballerina.runtime.api.creators.ValueCreator; @@ -28,12 +34,6 @@ import io.ballerina.runtime.api.values.BStream; import io.ballerina.runtime.api.values.BString; import io.ballerina.runtime.api.values.BTypedesc; -import io.ballerina.stdlib.data.yaml.emitter.Emitter; -import io.ballerina.stdlib.data.yaml.io.DataReaderTask; -import io.ballerina.stdlib.data.yaml.io.DataReaderThreadPool; -import io.ballerina.stdlib.data.yaml.parser.YamlParser; -import io.ballerina.stdlib.data.yaml.serializer.Serializer; -import io.ballerina.stdlib.data.yaml.utils.OptionsUtils; import java.io.ByteArrayInputStream; import java.io.InputStreamReader; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/common/Types.java b/native/src/main/java/io/ballerina/lib/data/yaml/common/Types.java index a150886..d56a5eb 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/common/Types.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/common/Types.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.common; +package io.ballerina.lib.data.yaml.common; /** * Define basic types and schemas in YAML files. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/common/YamlEvent.java b/native/src/main/java/io/ballerina/lib/data/yaml/common/YamlEvent.java index b553a45..38a7c78 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/common/YamlEvent.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/common/YamlEvent.java @@ -16,9 +16,9 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.common; +package io.ballerina.lib.data.yaml.common; -import io.ballerina.stdlib.data.yaml.common.Types.Collection; +import io.ballerina.lib.data.yaml.common.Types.Collection; /** * Parser Events when parsing yaml data. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Emitter.java b/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Emitter.java index 9a484be..2dca69a 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Emitter.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Emitter.java @@ -16,22 +16,22 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.emitter; +package io.ballerina.lib.data.yaml.emitter; +import io.ballerina.lib.data.yaml.common.Types; +import io.ballerina.lib.data.yaml.common.YamlEvent; +import io.ballerina.lib.data.yaml.utils.DiagnosticErrorCode; +import io.ballerina.lib.data.yaml.utils.DiagnosticLog; import io.ballerina.runtime.api.utils.StringUtils; import io.ballerina.runtime.api.values.BString; -import io.ballerina.stdlib.data.yaml.common.Types; -import io.ballerina.stdlib.data.yaml.common.YamlEvent; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticErrorCode; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticLog; import java.util.ArrayList; import java.util.List; -import static io.ballerina.stdlib.data.yaml.utils.Constants.DEFAULT_GLOBAL_TAG_HANDLE; -import static io.ballerina.stdlib.data.yaml.utils.Constants.DEFAULT_LOCAL_TAG_HANDLE; -import static io.ballerina.stdlib.data.yaml.utils.Constants.END_OF_YAML_DOCUMENT; -import static io.ballerina.stdlib.data.yaml.utils.Constants.START_OF_YAML_DOCUMENT; +import static io.ballerina.lib.data.yaml.utils.Constants.DEFAULT_GLOBAL_TAG_HANDLE; +import static io.ballerina.lib.data.yaml.utils.Constants.DEFAULT_LOCAL_TAG_HANDLE; +import static io.ballerina.lib.data.yaml.utils.Constants.END_OF_YAML_DOCUMENT; +import static io.ballerina.lib.data.yaml.utils.Constants.START_OF_YAML_DOCUMENT; /** * Convert Yaml Event stream into list of YAML strings. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Utils.java b/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Utils.java index 90a7ede..d775c25 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Utils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/emitter/Utils.java @@ -16,10 +16,10 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.emitter; +package io.ballerina.lib.data.yaml.emitter; -import io.ballerina.stdlib.data.yaml.common.Types; -import io.ballerina.stdlib.data.yaml.common.YamlEvent; +import io.ballerina.lib.data.yaml.common.Types; +import io.ballerina.lib.data.yaml.common.YamlEvent; /** * Holds utilities use to emit YAML strings. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/io/BallerinaByteBlockInputStream.java b/native/src/main/java/io/ballerina/lib/data/yaml/io/BallerinaByteBlockInputStream.java index 9ae8021..9c1100a 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/io/BallerinaByteBlockInputStream.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/io/BallerinaByteBlockInputStream.java @@ -16,8 +16,9 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.io; +package io.ballerina.lib.data.yaml.io; +import io.ballerina.lib.data.yaml.utils.DiagnosticLog; import io.ballerina.runtime.api.Environment; import io.ballerina.runtime.api.async.Callback; import io.ballerina.runtime.api.async.StrandMetadata; @@ -28,7 +29,6 @@ import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BObject; import io.ballerina.runtime.api.values.BString; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticLog; import java.io.IOException; import java.io.InputStream; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderTask.java b/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderTask.java index 8a1e6e4..84ffa00 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderTask.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderTask.java @@ -16,8 +16,10 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.io; +package io.ballerina.lib.data.yaml.io; +import io.ballerina.lib.data.yaml.parser.YamlParser; +import io.ballerina.lib.data.yaml.utils.DiagnosticLog; import io.ballerina.runtime.api.Environment; import io.ballerina.runtime.api.Future; import io.ballerina.runtime.api.types.MethodType; @@ -27,8 +29,6 @@ import io.ballerina.runtime.api.values.BObject; import io.ballerina.runtime.api.values.BString; import io.ballerina.runtime.api.values.BTypedesc; -import io.ballerina.stdlib.data.yaml.parser.YamlParser; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticLog; import java.io.InputStreamReader; import java.util.function.Consumer; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderThreadPool.java b/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderThreadPool.java index 3beff67..df1aee6 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderThreadPool.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/io/DataReaderThreadPool.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.io; +package io.ballerina.lib.data.yaml.io; import java.util.concurrent.ExecutorService; import java.util.concurrent.SynchronousQueue; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/CharacterReader.java b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/CharacterReader.java index 16bff34..b17746f 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/CharacterReader.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/CharacterReader.java @@ -16,11 +16,11 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.lexer; +package io.ballerina.lib.data.yaml.lexer; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticErrorCode; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticLog; -import io.ballerina.stdlib.data.yaml.utils.Error; +import io.ballerina.lib.data.yaml.utils.DiagnosticErrorCode; +import io.ballerina.lib.data.yaml.utils.DiagnosticLog; +import io.ballerina.lib.data.yaml.utils.Error; import java.io.IOException; import java.io.Reader; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/IndentUtils.java b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/IndentUtils.java index 545d319..4977936 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/IndentUtils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/IndentUtils.java @@ -16,10 +16,10 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.lexer; +package io.ballerina.lib.data.yaml.lexer; -import io.ballerina.stdlib.data.yaml.common.Types.Collection; -import io.ballerina.stdlib.data.yaml.utils.Error; +import io.ballerina.lib.data.yaml.common.Types.Collection; +import io.ballerina.lib.data.yaml.utils.Error; import java.util.ArrayList; import java.util.Collections; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/LexerState.java b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/LexerState.java index 1709745..bf5aa47 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/LexerState.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/LexerState.java @@ -16,56 +16,56 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.lexer; +package io.ballerina.lib.data.yaml.lexer; -import io.ballerina.stdlib.data.yaml.utils.Error; +import io.ballerina.lib.data.yaml.utils.Error; import java.util.ArrayList; import java.util.List; import java.util.Stack; -import static io.ballerina.stdlib.data.yaml.lexer.Scanner.COMMENT_SCANNER; -import static io.ballerina.stdlib.data.yaml.lexer.Scanner.VERBATIM_URI_SCANNER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.ALIAS; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.ANCHOR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.CHOMPING_INDICATOR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.COMMENT; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DECIMAL; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DIRECTIVE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DIRECTIVE_MARKER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DOCUMENT_MARKER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DOT; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DOUBLE_QUOTE_CHAR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DOUBLE_QUOTE_DELIMITER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.EMPTY_LINE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.EOL; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.FOLDED; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.LITERAL; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.MAPPING_END; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.MAPPING_KEY; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.MAPPING_START; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.MAPPING_VALUE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.PLANAR_CHAR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.PRINTABLE_CHAR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEPARATION_IN_LINE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEPARATOR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEQUENCE_END; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEQUENCE_ENTRY; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEQUENCE_START; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SINGLE_QUOTE_CHAR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SINGLE_QUOTE_DELIMITER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.TAG; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.TAG_HANDLE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.TAG_PREFIX; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.TRAILING_COMMENT; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.DECIMAL_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.FLOW_INDICATOR_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.URI_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.WHITE_SPACE_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.WORD_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.checkCharacters; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.discernPlanarFromIndicator; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.getWhitespace; +import static io.ballerina.lib.data.yaml.lexer.Scanner.COMMENT_SCANNER; +import static io.ballerina.lib.data.yaml.lexer.Scanner.VERBATIM_URI_SCANNER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.ALIAS; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.ANCHOR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.CHOMPING_INDICATOR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.COMMENT; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DECIMAL; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DIRECTIVE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DIRECTIVE_MARKER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DOCUMENT_MARKER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DOT; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DOUBLE_QUOTE_CHAR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DOUBLE_QUOTE_DELIMITER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.EMPTY_LINE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.EOL; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.FOLDED; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.LITERAL; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.MAPPING_END; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.MAPPING_KEY; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.MAPPING_START; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.MAPPING_VALUE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.PLANAR_CHAR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.PRINTABLE_CHAR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEPARATION_IN_LINE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEPARATOR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEQUENCE_END; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEQUENCE_ENTRY; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEQUENCE_START; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SINGLE_QUOTE_CHAR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SINGLE_QUOTE_DELIMITER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.TAG; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.TAG_HANDLE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.TAG_PREFIX; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.TRAILING_COMMENT; +import static io.ballerina.lib.data.yaml.lexer.Utils.DECIMAL_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.FLOW_INDICATOR_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.URI_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.WHITE_SPACE_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.WORD_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.checkCharacters; +import static io.ballerina.lib.data.yaml.lexer.Utils.discernPlanarFromIndicator; +import static io.ballerina.lib.data.yaml.lexer.Utils.getWhitespace; /** * State of the YAML Lexer. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Scanner.java b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Scanner.java index 9087f75..4bb6dee 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Scanner.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Scanner.java @@ -16,26 +16,26 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.lexer; +package io.ballerina.lib.data.yaml.lexer; -import io.ballerina.stdlib.data.yaml.utils.Error; +import io.ballerina.lib.data.yaml.utils.Error; import java.util.HashMap; import java.util.HexFormat; import java.util.List; import java.util.Map; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.PRINTABLE_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.JSON_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.BOM_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.LINE_BREAK_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.WHITE_SPACE_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.DECIMAL_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.HEXA_DECIMAL_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.WORD_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.FLOW_INDICATOR_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.URI_PATTERN; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.matchPattern; +import static io.ballerina.lib.data.yaml.lexer.Utils.PRINTABLE_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.JSON_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.BOM_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.LINE_BREAK_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.WHITE_SPACE_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.DECIMAL_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.HEXA_DECIMAL_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.WORD_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.FLOW_INDICATOR_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.URI_PATTERN; +import static io.ballerina.lib.data.yaml.lexer.Utils.matchPattern; /** * This class will hold utility functions to scan and consume different character patterns. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Token.java b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Token.java index b53cebf..5704c33 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Token.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Token.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.lexer; +package io.ballerina.lib.data.yaml.lexer; /** * Tokens used in YAML parser. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Utils.java b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Utils.java index feb5dd2..43f7970 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Utils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/Utils.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.lexer; +package io.ballerina.lib.data.yaml.lexer; import java.util.List; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/YamlLexer.java b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/YamlLexer.java index 49cdbed..3fd2117 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/lexer/YamlLexer.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/lexer/YamlLexer.java @@ -16,15 +16,15 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.lexer; +package io.ballerina.lib.data.yaml.lexer; -import io.ballerina.stdlib.data.yaml.utils.Error; +import io.ballerina.lib.data.yaml.utils.Error; -import static io.ballerina.stdlib.data.yaml.lexer.LexerState.LEXER_DOUBLE_QUOTE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.EMPTY_LINE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.TAG; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.EOL; -import static io.ballerina.stdlib.data.yaml.lexer.Utils.isTagChar; +import static io.ballerina.lib.data.yaml.lexer.LexerState.LEXER_DOUBLE_QUOTE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.EMPTY_LINE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.TAG; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.EOL; +import static io.ballerina.lib.data.yaml.lexer.Utils.isTagChar; /** * Core logic of the YAML Lexer. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/parser/Directive.java b/native/src/main/java/io/ballerina/lib/data/yaml/parser/Directive.java index fcdfc2e..4d6d889 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/parser/Directive.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/parser/Directive.java @@ -16,12 +16,12 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.parser; +package io.ballerina.lib.data.yaml.parser; -import io.ballerina.stdlib.data.yaml.lexer.LexerState; -import io.ballerina.stdlib.data.yaml.lexer.Token; -import io.ballerina.stdlib.data.yaml.utils.Error; +import io.ballerina.lib.data.yaml.lexer.LexerState; +import io.ballerina.lib.data.yaml.lexer.Token; +import io.ballerina.lib.data.yaml.utils.Error; import java.util.List; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserState.java b/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserState.java index 5b77dfb..5b9d03f 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserState.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserState.java @@ -16,14 +16,14 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.parser; - -import io.ballerina.stdlib.data.yaml.common.Types; -import io.ballerina.stdlib.data.yaml.common.YamlEvent; -import io.ballerina.stdlib.data.yaml.lexer.CharacterReader; -import io.ballerina.stdlib.data.yaml.lexer.LexerState; -import io.ballerina.stdlib.data.yaml.lexer.Token; -import io.ballerina.stdlib.data.yaml.utils.Error; +package io.ballerina.lib.data.yaml.parser; + +import io.ballerina.lib.data.yaml.common.Types; +import io.ballerina.lib.data.yaml.common.YamlEvent; +import io.ballerina.lib.data.yaml.lexer.CharacterReader; +import io.ballerina.lib.data.yaml.lexer.LexerState; +import io.ballerina.lib.data.yaml.lexer.Token; +import io.ballerina.lib.data.yaml.utils.Error; import java.io.Reader; import java.util.ArrayList; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserUtils.java b/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserUtils.java index b3149fd..01d3587 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserUtils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/parser/ParserUtils.java @@ -16,21 +16,21 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.parser; +package io.ballerina.lib.data.yaml.parser; +import io.ballerina.lib.data.yaml.common.YamlEvent; +import io.ballerina.lib.data.yaml.utils.DiagnosticErrorCode; +import io.ballerina.lib.data.yaml.utils.DiagnosticLog; import io.ballerina.runtime.api.types.Field; import io.ballerina.runtime.api.types.RecordType; import io.ballerina.runtime.api.utils.StringUtils; import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BString; -import io.ballerina.stdlib.data.yaml.common.YamlEvent; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticErrorCode; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticLog; import java.util.HashMap; import java.util.Map; -import static io.ballerina.stdlib.data.yaml.common.Types.Collection.STREAM; +import static io.ballerina.lib.data.yaml.common.Types.Collection.STREAM; /** * This class will hold utility functions used in parser. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/parser/Values.java b/native/src/main/java/io/ballerina/lib/data/yaml/parser/Values.java index 8c0f6f5..11a1cc0 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/parser/Values.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/parser/Values.java @@ -16,8 +16,10 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.parser; +package io.ballerina.lib.data.yaml.parser; +import io.ballerina.lib.data.yaml.utils.DiagnosticErrorCode; +import io.ballerina.lib.data.yaml.utils.DiagnosticLog; import io.ballerina.runtime.api.PredefinedTypes; import io.ballerina.runtime.api.TypeTags; import io.ballerina.runtime.api.creators.TypeCreator; @@ -39,8 +41,6 @@ import io.ballerina.runtime.api.values.BError; import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BString; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticErrorCode; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticLog; import org.ballerinalang.langlib.value.CloneReadOnly; import java.util.ArrayList; @@ -51,7 +51,7 @@ import java.util.Optional; import java.util.Stack; -import static io.ballerina.stdlib.data.yaml.parser.ParserUtils.getAllFieldsInRecord; +import static io.ballerina.lib.data.yaml.parser.ParserUtils.getAllFieldsInRecord; /** * Create BValue for partially parsed YAML inputs. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/parser/YamlParser.java b/native/src/main/java/io/ballerina/lib/data/yaml/parser/YamlParser.java index 962a07d..647eb10 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/parser/YamlParser.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/parser/YamlParser.java @@ -16,8 +16,22 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.parser; - +package io.ballerina.lib.data.yaml.parser; + +import io.ballerina.lib.data.yaml.common.Types; +import io.ballerina.lib.data.yaml.common.Types.Collection; +import io.ballerina.lib.data.yaml.common.YamlEvent; +import io.ballerina.lib.data.yaml.lexer.IndentUtils; +import io.ballerina.lib.data.yaml.lexer.LexerState; +import io.ballerina.lib.data.yaml.lexer.Token; +import io.ballerina.lib.data.yaml.lexer.YamlLexer; +import io.ballerina.lib.data.yaml.utils.Constants; +import io.ballerina.lib.data.yaml.utils.DiagnosticErrorCode; +import io.ballerina.lib.data.yaml.utils.DiagnosticLog; +import io.ballerina.lib.data.yaml.utils.Error; +import io.ballerina.lib.data.yaml.utils.JsonTraverse; +import io.ballerina.lib.data.yaml.utils.OptionsUtils; +import io.ballerina.lib.data.yaml.utils.TagResolutionUtils; import io.ballerina.runtime.api.PredefinedTypes; import io.ballerina.runtime.api.TypeTags; import io.ballerina.runtime.api.creators.TypeCreator; @@ -37,20 +51,6 @@ import io.ballerina.runtime.api.values.BError; import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BString; -import io.ballerina.stdlib.data.yaml.common.Types; -import io.ballerina.stdlib.data.yaml.common.Types.Collection; -import io.ballerina.stdlib.data.yaml.common.YamlEvent; -import io.ballerina.stdlib.data.yaml.lexer.IndentUtils; -import io.ballerina.stdlib.data.yaml.lexer.LexerState; -import io.ballerina.stdlib.data.yaml.lexer.Token; -import io.ballerina.stdlib.data.yaml.lexer.YamlLexer; -import io.ballerina.stdlib.data.yaml.utils.Constants; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticErrorCode; -import io.ballerina.stdlib.data.yaml.utils.DiagnosticLog; -import io.ballerina.stdlib.data.yaml.utils.Error; -import io.ballerina.stdlib.data.yaml.utils.JsonTraverse; -import io.ballerina.stdlib.data.yaml.utils.OptionsUtils; -import io.ballerina.stdlib.data.yaml.utils.TagResolutionUtils; import org.ballerinalang.langlib.value.CloneReadOnly; import java.io.Reader; @@ -65,38 +65,38 @@ import java.util.Set; import java.util.Stack; -import static io.ballerina.stdlib.data.yaml.common.Types.Collection.SEQUENCE; -import static io.ballerina.stdlib.data.yaml.common.Types.DocumentType.ANY_DOCUMENT; -import static io.ballerina.stdlib.data.yaml.common.Types.DocumentType.BARE_DOCUMENT; -import static io.ballerina.stdlib.data.yaml.common.Types.DocumentType.DIRECTIVE_DOCUMENT; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.ANCHOR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.COMMENT; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DIRECTIVE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DIRECTIVE_MARKER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.DOUBLE_QUOTE_DELIMITER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.EMPTY_LINE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.EOL; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.FOLDED; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.MAPPING_END; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.MAPPING_KEY; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.MAPPING_VALUE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.PLANAR_CHAR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEPARATION_IN_LINE; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEPARATOR; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEQUENCE_END; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SEQUENCE_ENTRY; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.SINGLE_QUOTE_DELIMITER; -import static io.ballerina.stdlib.data.yaml.lexer.Token.TokenType.TAG; -import static io.ballerina.stdlib.data.yaml.parser.Directive.reservedDirective; -import static io.ballerina.stdlib.data.yaml.parser.Directive.tagDirective; -import static io.ballerina.stdlib.data.yaml.parser.Directive.yamlDirective; -import static io.ballerina.stdlib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_MAP_KEY; -import static io.ballerina.stdlib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_MAP_VALUE; -import static io.ballerina.stdlib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_SEQUENCE_ENTRY; -import static io.ballerina.stdlib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_SEQUENCE_VALUE; -import static io.ballerina.stdlib.data.yaml.parser.ParserUtils.getAllFieldsInRecord; -import static io.ballerina.stdlib.data.yaml.utils.Constants.DEFAULT_GLOBAL_TAG_HANDLE; -import static io.ballerina.stdlib.data.yaml.utils.Constants.DEFAULT_LOCAL_TAG_HANDLE; +import static io.ballerina.lib.data.yaml.common.Types.Collection.SEQUENCE; +import static io.ballerina.lib.data.yaml.common.Types.DocumentType.ANY_DOCUMENT; +import static io.ballerina.lib.data.yaml.common.Types.DocumentType.BARE_DOCUMENT; +import static io.ballerina.lib.data.yaml.common.Types.DocumentType.DIRECTIVE_DOCUMENT; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.ANCHOR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.COMMENT; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DIRECTIVE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DIRECTIVE_MARKER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.DOUBLE_QUOTE_DELIMITER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.EMPTY_LINE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.EOL; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.FOLDED; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.MAPPING_END; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.MAPPING_KEY; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.MAPPING_VALUE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.PLANAR_CHAR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEPARATION_IN_LINE; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEPARATOR; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEQUENCE_END; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SEQUENCE_ENTRY; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.SINGLE_QUOTE_DELIMITER; +import static io.ballerina.lib.data.yaml.lexer.Token.TokenType.TAG; +import static io.ballerina.lib.data.yaml.parser.Directive.reservedDirective; +import static io.ballerina.lib.data.yaml.parser.Directive.tagDirective; +import static io.ballerina.lib.data.yaml.parser.Directive.yamlDirective; +import static io.ballerina.lib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_MAP_KEY; +import static io.ballerina.lib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_MAP_VALUE; +import static io.ballerina.lib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_SEQUENCE_ENTRY; +import static io.ballerina.lib.data.yaml.parser.ParserUtils.ParserOption.EXPECT_SEQUENCE_VALUE; +import static io.ballerina.lib.data.yaml.parser.ParserUtils.getAllFieldsInRecord; +import static io.ballerina.lib.data.yaml.utils.Constants.DEFAULT_GLOBAL_TAG_HANDLE; +import static io.ballerina.lib.data.yaml.utils.Constants.DEFAULT_LOCAL_TAG_HANDLE; /** * Core parsing of YAML strings. @@ -519,7 +519,7 @@ private boolean canAddMoreRestMembers() { } private void updateTupleMemberIndexTableAndAddToTuple(Object value, BArray tupleValue) { - Type type = io.ballerina.stdlib.data.yaml.utils.TypeUtils.getType(value); + Type type = io.ballerina.lib.data.yaml.utils.TypeUtils.getType(value); int typeHashOfBValue = type.hashCode(); for (int i = 0; i < indexToTupleMemberMapping.size(); i++) { Map typeMapping = indexToTupleMemberMapping.get(i); diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/serializer/Serializer.java b/native/src/main/java/io/ballerina/lib/data/yaml/serializer/Serializer.java index f0e1cec..f0dabbd 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/serializer/Serializer.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/serializer/Serializer.java @@ -16,22 +16,22 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.serializer; +package io.ballerina.lib.data.yaml.serializer; +import io.ballerina.lib.data.yaml.common.Types; +import io.ballerina.lib.data.yaml.common.YamlEvent; import io.ballerina.runtime.api.TypeTags; import io.ballerina.runtime.api.values.BArray; import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BString; import io.ballerina.runtime.api.values.BValue; -import io.ballerina.stdlib.data.yaml.common.Types; -import io.ballerina.stdlib.data.yaml.common.YamlEvent; import java.util.ArrayList; import java.util.List; -import static io.ballerina.stdlib.data.yaml.utils.Constants.DEFAULT_GLOBAL_MAP_TAG_HANDLE; -import static io.ballerina.stdlib.data.yaml.utils.Constants.DEFAULT_GLOBAL_SEQ_TAG_HANDLE; -import static io.ballerina.stdlib.data.yaml.utils.Constants.DEFAULT_GLOBAL_STR_TAG_HANDLE; +import static io.ballerina.lib.data.yaml.utils.Constants.DEFAULT_GLOBAL_MAP_TAG_HANDLE; +import static io.ballerina.lib.data.yaml.utils.Constants.DEFAULT_GLOBAL_SEQ_TAG_HANDLE; +import static io.ballerina.lib.data.yaml.utils.Constants.DEFAULT_GLOBAL_STR_TAG_HANDLE; /** * Converts a Ballerina value to stream of YAML events. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/Constants.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/Constants.java index dcfdc07..737e9aa 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/Constants.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/Constants.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; import io.ballerina.runtime.api.utils.StringUtils; import io.ballerina.runtime.api.values.BString; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticErrorCode.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticErrorCode.java index 35f0c20..5ffb40a 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticErrorCode.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticErrorCode.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; /** * Represents a diagnostic error code. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticLog.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticLog.java index e21319e..163e0c6 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticLog.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/DiagnosticLog.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; import io.ballerina.runtime.api.creators.ErrorCreator; import io.ballerina.runtime.api.utils.StringUtils; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/Error.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/Error.java index 2a2de39..1651b27 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/Error.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/Error.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; /** * Error class use to handle all the parsing level exceptions. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/JsonTraverse.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/JsonTraverse.java index 2f26eea..2f632e7 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/JsonTraverse.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/JsonTraverse.java @@ -16,8 +16,10 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; +import io.ballerina.lib.data.yaml.parser.ParserUtils; +import io.ballerina.lib.data.yaml.parser.Values; import io.ballerina.runtime.api.PredefinedTypes; import io.ballerina.runtime.api.TypeTags; import io.ballerina.runtime.api.creators.ValueCreator; @@ -37,8 +39,6 @@ import io.ballerina.runtime.api.values.BError; import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BString; -import io.ballerina.stdlib.data.yaml.parser.ParserUtils; -import io.ballerina.stdlib.data.yaml.parser.Values; import java.util.ArrayDeque; import java.util.Deque; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/ModuleUtils.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/ModuleUtils.java index eda433d..586a88e 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/ModuleUtils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/ModuleUtils.java @@ -16,7 +16,7 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; import io.ballerina.runtime.api.Environment; import io.ballerina.runtime.api.Module; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/OptionsUtils.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/OptionsUtils.java index 1ebf52f..dd873c7 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/OptionsUtils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/OptionsUtils.java @@ -16,11 +16,11 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; +import io.ballerina.lib.data.yaml.common.Types; import io.ballerina.runtime.api.values.BMap; import io.ballerina.runtime.api.values.BString; -import io.ballerina.stdlib.data.yaml.common.Types; /** * This class will parse the user configs to Java records. diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/TagResolutionUtils.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/TagResolutionUtils.java index bd43f24..4e7414d 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/TagResolutionUtils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/TagResolutionUtils.java @@ -16,9 +16,9 @@ * under the License. */ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; -import io.ballerina.stdlib.data.yaml.parser.YamlParser; +import io.ballerina.lib.data.yaml.parser.YamlParser; import java.util.regex.Matcher; import java.util.regex.Pattern; diff --git a/native/src/main/java/io/ballerina/lib/data/yaml/utils/TypeUtils.java b/native/src/main/java/io/ballerina/lib/data/yaml/utils/TypeUtils.java index cd0dcaa..06ef95f 100644 --- a/native/src/main/java/io/ballerina/lib/data/yaml/utils/TypeUtils.java +++ b/native/src/main/java/io/ballerina/lib/data/yaml/utils/TypeUtils.java @@ -1,4 +1,4 @@ -package io.ballerina.stdlib.data.yaml.utils; +package io.ballerina.lib.data.yaml.utils; import io.ballerina.runtime.api.PredefinedTypes; import io.ballerina.runtime.api.types.Type; diff --git a/native/src/main/java/module-info.java b/native/src/main/java/module-info.java index 94ed7ae..cbbec37 100644 --- a/native/src/main/java/module-info.java +++ b/native/src/main/java/module-info.java @@ -16,10 +16,10 @@ * under the License. */ -module io.ballerina.stdlib.data { +module io.ballerina.lib.data { requires io.ballerina.runtime; requires io.ballerina.lang.value; requires junit; requires org.apache.commons.lang3; - exports io.ballerina.stdlib.data.yaml; + exports io.ballerina.lib.data.yaml; }