Structure

The Axiom library allows you to easily serialize and deserialize java objects.

Details for developers are available here.

Axiom configuration example:

# Comments are written starting with the “#” symbol
# Their number is unlimited
# However, you cannot add comments to the file if they are not provided by the author,
# because this is a technical limitation of Axiom.
# Also, a comment can only be written ABOVE any value
#
# This comment refers to the stringValue value, due to technical limitations
# That is, one comment cannot go right after another
# In this case, this is all considered one comment, because there is no empty line between them
#
#
#
# Example of a string value
# The string can start and end with any number of spaces.
# Axiom automatically determines the data type, but strings are written exclusively in “quotes”
stringValue: " Any string  "

# Example of a boolean value. Only true or false!
booleanValue: true

# Example of writing a numeric value. Any number
numberValue: -40.97205719

# Example of writing an array. From this example, you can see that they are written in {}
someArrayExample: {
   # Array content
   # Important! The array can contain different data types, if provided by the author of the configuration
   
   # Example of a custom object. From this example, you can see that custom objects are written in []
   [
      # String value of the custom object
      customObjectFirstString: " Первая строка"
      
      # Boolean value of the custom object.
      someBoolean: true
      
      # Numeric value of the custom object
      # Important! The author can limit the type of available numbers
      someNumber: 3.14
   ]
}

# Example of a string array
# Array elements are written with a comma
# The last element of the array should not end with a comma
stringArrayExample: {
   "String 1",
   "String 2",
   "And so so"
}

# Example of an array of custom objects
# Just like with a string array, elements are separated by commas
# The last element of the array should not end with a comma
customObjectsArrayExample: {
     [
        hello: "Yes, hello!"
        goodWeather: false
     ],
     [
        hello: "Hello again!"
        goodWeather: true
     ]
}

# Example of writing a Map
# A Map represents a key-value structure
#
# The key is a string value without spaces between characters, and it should not
# start or end with spaces
#
# The value can be any object
# Additionally, the value can also be another Map, and so on indefinitely
mapExample: [
   # fist - key
   # Inside {} is the content (in this case) of a string array
   first: {
     "Just a string",
     "Just another string"
   }
   
   # TwoExample - key
   # Inside [] is the content (in this case) of an array of custom objects
   TwoExample: [
      [
         hello: "Hello again!"
         goodWeather: true
      ],
      [
         hello: "How much more can you take!"
         goodWeather: false
      ]
   ]
]

# Example of writing an object outside of an array, and so on.
thatsObject: [
   name: "Example"
   isEnabled: true
]

Last updated