├── .github
└── workflows
│ └── maven.yml
├── .gitignore
├── CONTRIBUTING.md
├── LICENSE.md
├── NOTICE.md
├── README.md
├── SECURITY.md
├── api
├── pom.xml
└── src
│ └── main
│ ├── java
│ ├── jakarta
│ │ └── json
│ │ │ └── bind
│ │ │ ├── Jsonb.java
│ │ │ ├── JsonbBuilder.java
│ │ │ ├── JsonbConfig.java
│ │ │ ├── JsonbException.java
│ │ │ ├── adapter
│ │ │ ├── JsonbAdapter.java
│ │ │ └── package-info.java
│ │ │ ├── annotation
│ │ │ ├── JsonbAnnotation.java
│ │ │ ├── JsonbCreator.java
│ │ │ ├── JsonbDateFormat.java
│ │ │ ├── JsonbNillable.java
│ │ │ ├── JsonbNumberFormat.java
│ │ │ ├── JsonbProperty.java
│ │ │ ├── JsonbPropertyOrder.java
│ │ │ ├── JsonbSubtype.java
│ │ │ ├── JsonbTransient.java
│ │ │ ├── JsonbTypeAdapter.java
│ │ │ ├── JsonbTypeDeserializer.java
│ │ │ ├── JsonbTypeInfo.java
│ │ │ ├── JsonbTypeSerializer.java
│ │ │ ├── JsonbVisibility.java
│ │ │ └── package-info.java
│ │ │ ├── config
│ │ │ ├── BinaryDataStrategy.java
│ │ │ ├── PropertyNamingStrategy.java
│ │ │ ├── PropertyOrderStrategy.java
│ │ │ ├── PropertyVisibilityStrategy.java
│ │ │ └── package-info.java
│ │ │ ├── package-info.java
│ │ │ ├── serializer
│ │ │ ├── DeserializationContext.java
│ │ │ ├── JsonbDeserializer.java
│ │ │ ├── JsonbSerializer.java
│ │ │ ├── SerializationContext.java
│ │ │ └── package-info.java
│ │ │ └── spi
│ │ │ ├── JsonbProvider.java
│ │ │ └── package-info.java
│ └── module-info.java
│ └── javadoc
│ └── doc-files
│ └── EFSL.html
├── docs
├── pom.xml
└── src
│ └── docs
│ └── user-guide.adoc
├── etc
└── config
│ ├── checkstyle.xml
│ ├── copyright-exclude
│ ├── edl-copyright.txt
│ ├── epl-copyright.txt
│ └── spotbugs-exclude.xml
├── spec
├── LICENSE
├── README.md
├── assembly.xml
├── pom.xml
└── src
│ ├── main
│ └── asciidoc
│ │ ├── images
│ │ └── jakarta_ee_logo_schooner_color_stacked_default.png
│ │ ├── jsonb-spec.adoc
│ │ ├── jsonb.adoc
│ │ └── license-efsl.adoc
│ └── theme
│ └── jakartaee-theme.yml
├── tck-dist
├── pom.xml
└── src
│ └── main
│ ├── assembly
│ └── assembly.xml
│ ├── bin
│ └── pom.xml
│ ├── resources
│ ├── LICENSE_EFTL.md
│ └── LICENSE_EPL.md
│ └── scripts
│ └── artifact-install.sh
├── tck-docs
├── JSONB3.0-ReleaseNotes.html
├── TCK-Exclude-List.txt
├── assertions
│ ├── JSONBJavadocAssertions.html
│ ├── JSONBJavadocAssertions.xml
│ └── JSONBSpecAssertions.html
├── index.html
└── userguide
│ ├── README.md
│ ├── pom.xml
│ └── src
│ ├── main
│ ├── assembly
│ │ └── assembly.xml
│ └── jbake
│ │ ├── assets
│ │ ├── README.md
│ │ ├── _config.yml
│ │ ├── css
│ │ │ └── style.css
│ │ └── img
│ │ │ └── eclipse_foundation_logo_tiny.png
│ │ ├── content
│ │ ├── README
│ │ ├── attributes.conf
│ │ ├── config.adoc
│ │ ├── config.inc
│ │ ├── debug-tips.inc
│ │ ├── debug.adoc
│ │ ├── defns.inc
│ │ ├── faq.adoc
│ │ ├── install-server-vi.inc
│ │ ├── install-server.inc
│ │ ├── install.adoc
│ │ ├── intro.adoc
│ │ ├── intro.inc
│ │ ├── packages.inc
│ │ ├── platforms.inc
│ │ ├── preface.adoc
│ │ ├── rebuild.adoc
│ │ ├── rebuild.inc
│ │ ├── req-software.inc
│ │ ├── rules.adoc
│ │ ├── rules.inc
│ │ ├── tck-packages.inc
│ │ ├── title.adoc
│ │ ├── title.inc
│ │ ├── toc.adoc
│ │ ├── using-examples.inc
│ │ ├── using.adoc
│ │ └── using.inc
│ │ ├── jbake.properties
│ │ └── templates
│ │ ├── footer.ftl
│ │ ├── header.ftl
│ │ ├── menu.ftl
│ │ └── page.ftl
│ └── theme
│ └── jakartaee-theme.yml
└── tck
├── pom.xml
└── src
└── main
├── java
└── ee
│ └── jakarta
│ └── tck
│ └── json
│ └── bind
│ ├── MappingTester.java
│ ├── SimpleMappingTester.java
│ ├── TypeContainer.java
│ ├── api
│ ├── annotation
│ │ └── AnnotationTest.java
│ ├── builder
│ │ └── JsonbBuilderTest.java
│ ├── config
│ │ └── JsonbConfigTest.java
│ ├── exception
│ │ └── JsonbExceptionTest.java
│ ├── jsonb
│ │ └── JsonbTest.java
│ ├── jsonbadapter
│ │ └── JsonbAdapterTest.java
│ └── model
│ │ ├── SimpleAnnotatedAdaptedContainer.java
│ │ ├── SimpleAnnotatedDateContainer.java
│ │ ├── SimpleAnnotatedDoubleContainer.java
│ │ ├── SimpleAnnotatedNillableContainer.java
│ │ ├── SimpleAnnotatedNillablePropertyContainer.java
│ │ ├── SimpleAnnotatedPropertyOrderContainer.java
│ │ ├── SimpleAnnotatedPropertyVisibilityContainer.java
│ │ ├── SimpleAnnotatedSerializedArrayContainer.java
│ │ ├── SimpleAnnotatedSerializedContainer.java
│ │ ├── SimpleContainer.java
│ │ ├── SimpleContainerAdapted.java
│ │ ├── SimpleContainerArrayDeserializer.java
│ │ ├── SimpleContainerArraySerializer.java
│ │ ├── SimpleContainerContainer.java
│ │ ├── SimpleContainerDeserializer.java
│ │ ├── SimpleContainerSerializer.java
│ │ ├── SimpleIntegerAdapter.java
│ │ ├── SimpleIntegerDeserializer.java
│ │ ├── SimpleIntegerSerializer.java
│ │ ├── SimplePartiallyAnnotatedPropertyOrderContainer.java
│ │ ├── SimplePropertyNamingStrategy.java
│ │ ├── SimplePropertyVisibilityStrategy.java
│ │ ├── SimpleStringAdapter.java
│ │ └── SimpleVisibilityStrategy.java
│ ├── cdi
│ └── customizedmapping
│ │ ├── adapters
│ │ ├── AdaptersCustomizationCDITest.java
│ │ └── model
│ │ │ ├── AnimalShelterInjectedAdapter.java
│ │ │ └── adapter
│ │ │ ├── InjectedAdapter.java
│ │ │ └── InjectedListAdapter.java
│ │ └── serializers
│ │ ├── SerializersCustomizationCDITest.java
│ │ └── model
│ │ ├── AnimalShelterWithInjectedSerializer.java
│ │ └── serializer
│ │ ├── AnimalDeserializerInjected.java
│ │ └── AnimalListDeserializerInjected.java
│ ├── customizedmapping
│ ├── adapters
│ │ ├── AdaptersCustomizationTest.java
│ │ └── model
│ │ │ ├── Animal.java
│ │ │ ├── AnimalShelter.java
│ │ │ ├── AnimalShelterAdapted.java
│ │ │ ├── Cat.java
│ │ │ ├── Dog.java
│ │ │ └── adapter
│ │ │ ├── AnimalAdapter.java
│ │ │ ├── AnimalIdentifier.java
│ │ │ ├── AnimalJson.java
│ │ │ └── AnimalListAdapter.java
│ ├── binarydata
│ │ ├── BinaryDataCustomizationTest.java
│ │ └── model
│ │ │ └── BinaryDataContainer.java
│ ├── dateformat
│ │ ├── DateFormatCustomizationTest.java
│ │ └── model
│ │ │ ├── AnnotatedAccessorsDateContainer.java
│ │ │ ├── AnnotatedFieldDateContainer.java
│ │ │ ├── AnnotatedTypeDateContainer.java
│ │ │ ├── AnnotatedTypeFieldOverrideDateContainer.java
│ │ │ ├── DateContainer.java
│ │ │ └── customized
│ │ │ ├── CustomizedPackageDateContainer.java
│ │ │ ├── CustomizedPackageTypeOverrideDateContainer.java
│ │ │ ├── CustomizedPackageTypeOverrideFieldOverrideDateContainer.java
│ │ │ └── package-info.java
│ ├── ijson
│ │ ├── IJsonSupportTest.java
│ │ └── model
│ │ │ ├── BinaryDataContainer.java
│ │ │ ├── CalendarContainer.java
│ │ │ ├── DateContainer.java
│ │ │ ├── DurationContainer.java
│ │ │ ├── GregorianCalendarContainer.java
│ │ │ ├── InstantContainer.java
│ │ │ ├── LocalDateContainer.java
│ │ │ └── LocalDateTimeContainer.java
│ ├── instantiation
│ │ ├── InstantiationCustomizationTest.java
│ │ ├── OptionalCreatorParametersTest.java
│ │ └── model
│ │ │ ├── CreatorPlusFactoryContainer.java
│ │ │ ├── CreatorWithAdapterContainer.java
│ │ │ ├── CreatorWithDeserializerContainer.java
│ │ │ ├── IllegalInstanceFactoryCreatorContainer.java
│ │ │ ├── MultipleCreatorsContainer.java
│ │ │ ├── MultipleFactoryCreatorsContainer.java
│ │ │ ├── OptionalTypeContainer.java
│ │ │ ├── PrimitiveTypeContainer.java
│ │ │ ├── SimpleCreatorContainer.java
│ │ │ ├── SimpleCreatorParamContainer.java
│ │ │ ├── SimpleCreatorPlusFieldsContainer.java
│ │ │ ├── SimpleCreatorRenameContainer.java
│ │ │ └── SimpleFactoryCreatorContainer.java
│ ├── nullhandling
│ │ ├── NullHandlingCustomizationTest.java
│ │ └── model
│ │ │ ├── NillableContainer.java
│ │ │ ├── NillablePropertyContainer.java
│ │ │ ├── NillablePropertyNonNillableContainer.java
│ │ │ ├── NonNillableAndNillablePropertyContainer.java
│ │ │ ├── NonNillableContainer.java
│ │ │ ├── NonNillablePropertyContainer.java
│ │ │ ├── NonNillablePropertyNillableContainer.java
│ │ │ ├── SimpleContainer.java
│ │ │ ├── nillable
│ │ │ ├── NillablePackageNillablePropertyNonNillableContainer.java
│ │ │ ├── NillablePackageNonNillablePropertyContainer.java
│ │ │ ├── NillablePackageSimpleContainer.java
│ │ │ └── package-info.java
│ │ │ └── nonnillable
│ │ │ ├── NonNillablePackageNillableContainer.java
│ │ │ ├── NonNillablePackageNonNillablePropertyNillableContainer.java
│ │ │ ├── NonNillablePackageSimpleContainer.java
│ │ │ └── package-info.java
│ ├── numberformat
│ │ ├── NumberFormatCustomizationTest.java
│ │ └── model
│ │ │ ├── AccessorCustomizedDoubleContainer.java
│ │ │ ├── FieldCustomizedDoubleContainer.java
│ │ │ ├── TypeCustomizedDoubleContainer.java
│ │ │ ├── TypeCustomizedFieldOverriddenDoubleContainer.java
│ │ │ └── customized
│ │ │ ├── PackageCustomizedDoubleContainer.java
│ │ │ ├── PackageCustomizedTypeOverriddenDoubleContainer.java
│ │ │ ├── PackageCustomizedTypeOverriddenFieldOverriddenDoubleContainer.java
│ │ │ └── package-info.java
│ ├── propertynames
│ │ ├── PropertyNameCustomizationTest.java
│ │ └── model
│ │ │ ├── DuplicateNameContainer.java
│ │ │ ├── PropertyNameCustomizationAccessorsContainer.java
│ │ │ ├── PropertyNameCustomizationContainer.java
│ │ │ ├── StringContainer.java
│ │ │ ├── TransientAnnotatedPropertyContainer.java
│ │ │ ├── TransientGetterAnnotatedPropertyContainer.java
│ │ │ ├── TransientGetterPlusCustomizationAnnotatedFieldContainer.java
│ │ │ ├── TransientGetterPlusCustomizationAnnotatedGetterContainer.java
│ │ │ ├── TransientPlusCustomizationAnnotatedGetterContainer.java
│ │ │ ├── TransientPlusCustomizationAnnotatedPropertyContainer.java
│ │ │ ├── TransientPlusCustomizationAnnotatedSetterContainer.java
│ │ │ ├── TransientPropertyContainer.java
│ │ │ ├── TransientSetterAnnotatedPropertyContainer.java
│ │ │ ├── TransientSetterPlusCustomizationAnnotatedFieldContainer.java
│ │ │ └── TransientSetterPlusCustomizationAnnotatedSetterContainer.java
│ ├── propertyorder
│ │ ├── PropertyOrderCustomizationTest.java
│ │ └── model
│ │ │ ├── CustomOrderContainer.java
│ │ │ ├── PartialOrderContainer.java
│ │ │ ├── RenamedPropertiesContainer.java
│ │ │ ├── SimpleContainer.java
│ │ │ └── SimpleOrderContainer.java
│ ├── serializers
│ │ ├── SerializersCustomizationTest.java
│ │ └── model
│ │ │ ├── Animal.java
│ │ │ ├── AnimalShelter.java
│ │ │ ├── AnimalShelterWithSerializer.java
│ │ │ ├── Cat.java
│ │ │ ├── Dog.java
│ │ │ └── serializer
│ │ │ ├── AnimalBuilder.java
│ │ │ ├── AnimalDeserializer.java
│ │ │ ├── AnimalListDeserializer.java
│ │ │ ├── AnimalListSerializer.java
│ │ │ └── AnimalSerializer.java
│ └── visibility
│ │ ├── VisibilityCustomizationTest.java
│ │ └── model
│ │ ├── CustomFieldVisibilityStrategy.java
│ │ ├── CustomVisibilityAnnotatedContainer.java
│ │ ├── CustomVisibilityStrategy.java
│ │ ├── SimpleContainer.java
│ │ └── customized
│ │ ├── PackageCustomizedContainer.java
│ │ └── package-info.java
│ ├── defaultmapping
│ ├── arrays
│ │ ├── ArraysMappingTest.java
│ │ └── model
│ │ │ ├── MultiDimensionalArrayContainer.java
│ │ │ └── PrimitiveArrayContainer.java
│ ├── attributeorder
│ │ ├── AttributeOrderMappingTest.java
│ │ └── model
│ │ │ ├── ExtendedContainer.java
│ │ │ └── SimpleContainer.java
│ ├── basictypes
│ │ ├── BasicJavaTypesMappingTest.java
│ │ └── model
│ │ │ ├── BooleanContainer.java
│ │ │ ├── ByteContainer.java
│ │ │ ├── CharacterContainer.java
│ │ │ ├── DoubleContainer.java
│ │ │ ├── FloatContainer.java
│ │ │ ├── IntegerContainer.java
│ │ │ ├── LongContainer.java
│ │ │ ├── NumberContainer.java
│ │ │ ├── ShortContainer.java
│ │ │ └── StringContainer.java
│ ├── bignumbers
│ │ └── BigNumbersMappingTest.java
│ ├── classes
│ │ ├── ClassesMappingTest.java
│ │ └── model
│ │ │ ├── StringContainerAccessorsWithoutMatchingField.java
│ │ │ ├── StringContainerFinalField.java
│ │ │ ├── StringContainerFinalPublicField.java
│ │ │ ├── StringContainerNoAccessorsPackagePrivateField.java
│ │ │ ├── StringContainerNoAccessorsPrivateField.java
│ │ │ ├── StringContainerNoAccessorsProtectedField.java
│ │ │ ├── StringContainerNoAccessorsPublicField.java
│ │ │ ├── StringContainerPackagePrivateAccessors.java
│ │ │ ├── StringContainerPackagePrivateConstructor.java
│ │ │ ├── StringContainerPrivateAccessors.java
│ │ │ ├── StringContainerPrivateAccessorsPublicField.java
│ │ │ ├── StringContainerPrivateConstructor.java
│ │ │ ├── StringContainerProtectedAccessors.java
│ │ │ ├── StringContainerProtectedConstructor.java
│ │ │ ├── StringContainerProtectedStaticNestedClass.java
│ │ │ ├── StringContainerPublicAccessors.java
│ │ │ ├── StringContainerPublicAccessorsPublicField.java
│ │ │ ├── StringContainerPublicConstructor.java
│ │ │ ├── StringContainerPublicStaticNestedClass.java
│ │ │ ├── StringContainerStaticField.java
│ │ │ └── StringContainerTransientField.java
│ ├── collections
│ │ ├── CollectionsMappingTest.java
│ │ └── model
│ │ │ ├── ArrayDequeContainer.java
│ │ │ ├── ArrayListContainer.java
│ │ │ ├── CollectionContainer.java
│ │ │ ├── DequeContainer.java
│ │ │ ├── EnumMapContainer.java
│ │ │ ├── EnumSetContainer.java
│ │ │ ├── HashMapContainer.java
│ │ │ ├── HashSetContainer.java
│ │ │ ├── LinkedHashMapContainer.java
│ │ │ ├── LinkedHashSetContainer.java
│ │ │ ├── LinkedListContainer.java
│ │ │ ├── ListContainer.java
│ │ │ ├── MapContainer.java
│ │ │ ├── NavigableMapContainer.java
│ │ │ ├── NavigableSetContainer.java
│ │ │ ├── PriorityQueueContainer.java
│ │ │ ├── QueueContainer.java
│ │ │ ├── SetContainer.java
│ │ │ ├── SortedMapContainer.java
│ │ │ ├── SortedSetContainer.java
│ │ │ ├── TreeMapContainer.java
│ │ │ └── TreeSetContainer.java
│ ├── dates
│ │ ├── DatesMappingTest.java
│ │ └── model
│ │ │ ├── CalendarContainer.java
│ │ │ ├── DateContainer.java
│ │ │ ├── DurationContainer.java
│ │ │ ├── GregorianCalendarContainer.java
│ │ │ ├── InstantContainer.java
│ │ │ ├── LocalDateContainer.java
│ │ │ ├── LocalDateTimeContainer.java
│ │ │ ├── LocalTimeContainer.java
│ │ │ ├── OffsetDateTimeContainer.java
│ │ │ ├── OffsetTimeContainer.java
│ │ │ ├── PeriodContainer.java
│ │ │ ├── SimpleTimeZoneContainer.java
│ │ │ ├── TimeZoneContainer.java
│ │ │ ├── ZoneIdContainer.java
│ │ │ ├── ZoneOffsetContainer.java
│ │ │ └── ZonedDateTimeContainer.java
│ ├── enums
│ │ ├── EnumMappingTest.java
│ │ └── model
│ │ │ └── EnumContainer.java
│ ├── generics
│ │ ├── GenericsMappingTest.java
│ │ └── model
│ │ │ ├── CollectionContainer.java
│ │ │ ├── GenericContainer.java
│ │ │ ├── MultipleBoundsContainer.java
│ │ │ ├── NumberContainer.java
│ │ │ ├── StringContainer.java
│ │ │ └── WildcardContainer.java
│ ├── identifiers
│ │ ├── NamesAndIdentifiersMappingTest.java
│ │ └── model
│ │ │ └── StringContainer.java
│ ├── ignore
│ │ ├── MustIgnoreMappingTest.java
│ │ └── model
│ │ │ └── StringContainer.java
│ ├── interfaces
│ │ ├── InterfaceMappingTest.java
│ │ └── model
│ │ │ ├── InterfaceContainer.java
│ │ │ └── StringContainer.java
│ ├── jsonptypes
│ │ ├── JSONPTypesMappingTest.java
│ │ └── model
│ │ │ ├── JsonArrayContainer.java
│ │ │ ├── JsonNumberContainer.java
│ │ │ ├── JsonObjectContainer.java
│ │ │ ├── JsonPointerContainer.java
│ │ │ ├── JsonStringContainer.java
│ │ │ ├── JsonStructureContainer.java
│ │ │ └── JsonValueContainer.java
│ ├── nullvalue
│ │ ├── NullValueMappingTest.java
│ │ └── model
│ │ │ ├── NullArrayContainer.java
│ │ │ └── NullValueContainer.java
│ ├── polymorphictypes
│ │ ├── AnnotationTypeInfoTest.java
│ │ ├── DefaultPolymorphicMappingTest.java
│ │ ├── MultipleTypeInfoTest.java
│ │ ├── TypeInfoExceptionsTest.java
│ │ └── model
│ │ │ ├── StringContainer.java
│ │ │ └── StringContainerSubClass.java
│ ├── specifictypes
│ │ ├── SpecificTypesMappingTest.java
│ │ └── model
│ │ │ ├── BigDecimalContainer.java
│ │ │ ├── BigIntegerContainer.java
│ │ │ ├── OptionalArrayContainer.java
│ │ │ ├── OptionalContainer.java
│ │ │ ├── OptionalDoubleContainer.java
│ │ │ ├── OptionalIntContainer.java
│ │ │ ├── OptionalLongContainer.java
│ │ │ ├── OptionalTypeContainer.java
│ │ │ ├── SimpleContainer.java
│ │ │ ├── URIContainer.java
│ │ │ ├── URLContainer.java
│ │ │ └── UUIDContainer.java
│ ├── uniqueness
│ │ ├── PropertyUniquenessTest.java
│ │ └── model
│ │ │ └── SimpleContainer.java
│ └── untyped
│ │ └── UntypedMappingTest.java
│ └── signaturetest
│ ├── ApiCheckDriver.java
│ ├── ApiCheckRecorder.java
│ ├── PackageList.java
│ ├── README
│ ├── Recorder.java
│ ├── RecorderFactory.java
│ ├── SigTest.java
│ ├── SigTestData.java
│ ├── SigTestDriver.java
│ ├── SigTestEE.java
│ ├── SigTestRecorder.java
│ ├── SigTestResult.java
│ ├── SignatureTestDriver.java
│ ├── SignatureTestDriverFactory.java
│ └── jsonb
│ └── JSONBSigTest.java
└── resources
├── META-INF
└── beans.xml
└── ee
└── jakarta
└── tck
└── json
└── bind
└── signaturetest
├── jakarta.json.bind.sig_3.0.0
├── sig-test-pkg-list.txt
└── sig-test.map
/.gitignore:
--------------------------------------------------------------------------------
1 | # Maven noise
2 | target/
3 |
4 | # OSX noise
5 | .DS_Store
6 |
7 | # IntelliJ Idea noise
8 | .idea
9 | *.iws
10 | *.ipr
11 | *.iml
12 |
13 | # Eclipse noise
14 | .settings/
15 | .classpath
16 | .project
17 |
18 | # NetBeans noise
19 | nbproject/
20 |
21 | # Java noise
22 | *.class
23 | *err_pid*.log
24 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | This project implements the Eclipse Foundation Security Policy
4 |
5 | * https://www.eclipse.org/security
6 |
7 | ## Supported Versions
8 |
9 | These versions of Jakarta JSON Binding are currently being supported with
10 | security updates.
11 |
12 | | Version | Released | Supported |
13 | | ------- | ---------- | --------- |
14 | | 3.0.0 | 2022-03-31 | Yes |
15 | | 2.0.0 | 2020-10-07 | Yes |
16 | | < 1.0.2 | 2019-09-10 | No |
17 |
18 | ## Reporting a Vulnerability
19 |
20 | Please report vulnerabilities to the Eclipse Foundation Security Team at
21 | security@eclipse.org
22 |
--------------------------------------------------------------------------------
/api/src/main/java/jakarta/json/bind/adapter/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /**
18 | *
19 | * Defines adapter related classes.
20 | *
21 | *
22 | * @since JSON Binding 1.0
23 | */
24 | package jakarta.json.bind.adapter;
25 |
--------------------------------------------------------------------------------
/api/src/main/java/jakarta/json/bind/annotation/JsonbAnnotation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | package jakarta.json.bind.annotation;
18 |
19 | import java.lang.annotation.Documented;
20 | import java.lang.annotation.Retention;
21 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
22 |
23 | /**
24 | * Marks any relevant JSON Binding annotations. Includes
25 | * {@code @Documented} and {@code @Retention(RUNTIME)} definitions.
26 | *
27 | * @since JSON Binding 1.0
28 | */
29 |
30 | @Documented
31 | @Retention(RUNTIME)
32 | public @interface JsonbAnnotation { }
33 |
--------------------------------------------------------------------------------
/api/src/main/java/jakarta/json/bind/annotation/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /**
18 | *
19 | * Defines annotations for customizing the mapping between Java program elements
20 | * and JSON documents.
21 | *
22 | *
23 | * @since JSON Binding 1.0
24 | */
25 | package jakarta.json.bind.annotation;
26 |
--------------------------------------------------------------------------------
/api/src/main/java/jakarta/json/bind/config/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /**
18 | *
19 | * Defines strategies and policies for customizing the mapping between Java program elements
20 | * and JSON documents.
21 | *
22 | *
23 | * @since JSON Binding 1.0
24 | */
25 | package jakarta.json.bind.config;
26 |
--------------------------------------------------------------------------------
/api/src/main/java/jakarta/json/bind/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /**
18 | * Provides JSON Binding API, which enables binding Java objects from and to
19 | * JSON documents.
20 | *
21 | * Main user entry points to the API is {@link jakarta.json.bind.JsonbBuilder JsonbBuilder}
22 | * which builds {@link jakarta.json.bind.Jsonb Jsonb} instances.
23 | *
24 | * @since JSON Binding 1.0
25 | */
26 | package jakarta.json.bind;
27 |
--------------------------------------------------------------------------------
/api/src/main/java/jakarta/json/bind/serializer/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /**
18 | *
19 | * Defines serializer depending classes.
20 | *
21 | * @since JSON Binding 1.0
22 | */
23 | package jakarta.json.bind.serializer;
24 |
--------------------------------------------------------------------------------
/api/src/main/java/module-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /**
18 | * Jakarta JSON Binding API.
19 | */
20 | module jakarta.json.bind {
21 | exports jakarta.json.bind;
22 | exports jakarta.json.bind.adapter;
23 | exports jakarta.json.bind.annotation;
24 | exports jakarta.json.bind.config;
25 | exports jakarta.json.bind.serializer;
26 | exports jakarta.json.bind.spi;
27 |
28 | requires jakarta.json;
29 | requires java.logging;
30 |
31 | uses jakarta.json.bind.spi.JsonbProvider;
32 | }
33 |
--------------------------------------------------------------------------------
/etc/config/copyright-exclude:
--------------------------------------------------------------------------------
1 | .apt
2 | .args
3 | .bundle
4 | .class
5 | .exe
6 | .gif
7 | .gitignore
8 | .ico
9 | .iml
10 | .ipr
11 | .iws
12 | .jar
13 | .jks
14 | .jpg
15 | .js
16 | .json
17 | .mm
18 | .ods
19 | .png
20 | .project
21 | .sql
22 | .svg
23 | .war
24 | .zip
25 | .dat
26 | /MANIFEST.MF
27 | /META-INF/services/
28 | /README
29 | spec-license.html
30 | copyright-exclude
31 | api/etc/config/copyright.txt
32 | nb-configuration.xml
33 | EFSL.html
34 |
--------------------------------------------------------------------------------
/etc/config/edl-copyright.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) YYYY Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Distribution License v. 1.0, which is available at
6 | * http://www.eclipse.org/org/documents/edl-v10.php.
7 | *
8 | * SPDX-License-Identifier: BSD-3-Clause
9 | */
10 |
--------------------------------------------------------------------------------
/etc/config/epl-copyright.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) YYYY Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
--------------------------------------------------------------------------------
/etc/config/spotbugs-exclude.xml:
--------------------------------------------------------------------------------
1 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/spec/README.md:
--------------------------------------------------------------------------------
1 | Jakarta JSON Binding Specification
2 | ===================================
3 |
4 | This project generates the Jakarta JSON Binding Specification.
5 |
6 | Building
7 | --------
8 |
9 | Prerequisites:
10 |
11 | * JDK8+
12 | * Maven 3.0.3+
13 |
14 | Run the full build:
15 |
16 | `mvn clean install`
17 |
18 | Generate specification with given status:
19 |
20 | `mvn clean install -Dstatus="Final Release"`
21 |
22 | Locate the html files:
23 | - target/generated-docs/jsonb-spec-XXX.html
24 |
25 | Locate the PDF files:
26 | - target/generated-docs/jsonb-spec-XXX.pdf
27 |
--------------------------------------------------------------------------------
/spec/assembly.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | spec
22 |
23 | zip
24 |
25 | jsonb-spec
26 |
27 |
28 | target/generated-docs
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/spec/src/main/asciidoc/images/jakarta_ee_logo_schooner_color_stacked_default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jakartaee/jsonb-api/b0b5a3ad43abce7090dbe419d9b29b817c365e41/spec/src/main/asciidoc/images/jakarta_ee_logo_schooner_color_stacked_default.png
--------------------------------------------------------------------------------
/spec/src/main/asciidoc/jsonb-spec.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2017, 2019 Contributors to the Eclipse Foundation
3 | //
4 |
5 | = Jakarta JSON Binding
6 | :authors: Jakarta JSON Binding Team, https://projects.eclipse.org/projects/ee4j.jsonb
7 | :email: https://dev.eclipse.org/mailman/listinfo/jsonb-dev
8 | :version-label!:
9 | :doctype: book
10 | :license: Eclipse Foundation Specification License v1.0
11 | :source-highlighter: coderay
12 | :toc: left
13 | :toclevels: 4
14 | :sectnumlevels: 4
15 | :sectanchors:
16 | ifdef::backend-pdf[]
17 | :pagenums:
18 | :numbered:
19 | :title-logo-image: image:jakarta_ee_logo_schooner_color_stacked_default.png[pdfwidth=4.25in,align=right]
20 | endif::[]
21 |
22 | // == License
23 | :sectnums!:
24 | include::license-efsl.adoc[]
25 |
26 | // == Spec
27 | :sectnums:
28 | include::jsonb.adoc[]
29 |
--------------------------------------------------------------------------------
/tck-dist/src/main/scripts/artifact-install.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
4 | #
5 | # This program and the accompanying materials are made available under the
6 | # terms of the Eclipse Public License v. 2.0, which is available at
7 | # http://www.eclipse.org/legal/epl-2.0.
8 | #
9 | # This Source Code may also be made available under the following Secondary
10 | # Licenses when the conditions for such availability set forth in the
11 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
12 | # version 2 with the GNU Classpath Exception, which is available at
13 | # https://www.gnu.org/software/classpath/license.html.
14 | #
15 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16 |
17 | ##script to install the artifact directory contents into a local maven repository
18 |
19 | if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
20 | VERSION="$1"
21 | else
22 | VERSION="3.0.0"
23 | fi
24 |
25 | #jar
26 | mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file \
27 | -Dfile=jakarta.json.bind-tck-"$VERSION".jar -DgroupId=jakarta.json.bind \
28 | -DartifactId=jakarta.json.bind-tck -Dversion="$VERSION" -Dpackaging=jar
29 |
30 |
31 | #jar
32 | mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file \
33 | -Dfile=jakarta.json.bind-tck-"$VERSION".jar -DgroupId=jakarta.json.bind \
34 | -DartifactId=jakarta.json.bind-tck-sources -Dversion="$VERSION" -Dpackaging=jar
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/assets/README.md:
--------------------------------------------------------------------------------
1 | # About
2 |
3 | The {{site.title}} project contains the [AsciiDoc](http://asciidoc.org/)
4 | source code for the ...
5 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/assets/_config.yml:
--------------------------------------------------------------------------------
1 | remote_theme: jakartaee/jekyll-theme-jakarta-ee
2 |
3 | title: [tck_jsonb_v1_0]
4 | description: [Oracle Technology Compatibility Kit User's Guide for Java API for JSON Binding 3.0 for Technology Licensees, Release 3.0]
5 |
6 | # sidebar links url
7 | links:
8 | source: https://github.com/javaee/tck_jsonb_v1_0
9 | download: https://github.com/javaee/tck_jsonb_v1_0/releases
10 | #mailinglist: https://javaee.groups.io/g/tck_jsonb_v1_0
11 | #javadocs:
12 | docs: https://javaee.github.io/tck_jsonb_v1_0
13 | #faq:
14 |
15 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jakartaee/jsonb-api/b0b5a3ad43abce7090dbe419d9b29b817c365e41/tck-docs/userguide/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/debug-tips.inc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jakartaee/jsonb-api/b0b5a3ad43abce7090dbe419d9b29b817c365e41/tck-docs/userguide/src/main/jbake/content/debug-tips.inc
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/install-server-vi.inc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jakartaee/jsonb-api/b0b5a3ad43abce7090dbe419d9b29b817c365e41/tck-docs/userguide/src/main/jbake/content/install-server-vi.inc
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/install-server.inc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jakartaee/jsonb-api/b0b5a3ad43abce7090dbe419d9b29b817c365e41/tck-docs/userguide/src/main/jbake/content/install-server.inc
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/intro.inc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jakartaee/jsonb-api/b0b5a3ad43abce7090dbe419d9b29b817c365e41/tck-docs/userguide/src/main/jbake/content/intro.inc
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/packages.inc:
--------------------------------------------------------------------------------
1 | ** `jakarta.json.bind`
2 |
3 | ** `jakarta.json.bind.adapter`
4 |
5 | ** `jakarta.json.bind.annotation`
6 |
7 | ** `jakarta.json.bind.config`
8 |
9 | ** `jakarta.json.bind.serializer`
10 |
11 | ** `jakarta.json.bind.spi`
12 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/platforms.inc:
--------------------------------------------------------------------------------
1 | * CentOS Linux 7
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/rebuild.adoc:
--------------------------------------------------------------------------------
1 | type=page
2 | status=published
3 | title=Appendix B: Rebuild Rules
4 | prev=faq.html
5 | ~~~~~~
6 | include::attributes.conf[]
7 |
8 | Appendix B: Rebuild Rules
9 | =========================
10 |
11 |
12 | ifdef::rebuild[]
13 | include::rebuild.inc[]
14 | endif::rebuild[]
15 | ifndef::rebuild[]
16 |
17 | <<<
18 | Appendix B is not used for the {TechnologyShortName} TCK.
19 |
20 | endif::rebuild[]
21 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/rebuild.inc:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////
2 | NOTE TO WRITERS:
3 | The following sections should be customized for the technology.
4 | See the JAXRS User Guide for an example of this file.
5 | ///////////////////////////////////////////////////////////////////////
6 |
7 | [[GCLIZ]]
8 |
9 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/req-software.inc:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////
2 | NOTE TO WRITERS:
3 | This is a list of software required in addition to the TCK and the RI.
4 | For many Java EE APIs, the Java EE RI will be required, as described below.
5 | For standalone technologies, no other software may be required, and the
6 | below line can be removed.
7 |
8 | This is used in intro.adoc in section 1.3 and install.adoc in section 3.2.
9 | ///////////////////////////////////////////////////////////////////////
10 |
11 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/tck-packages.inc:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/title.adoc:
--------------------------------------------------------------------------------
1 | type=page
2 | status=published
3 | title=TCK User's Guide for Technology Implementors
4 | next=preface.html
5 | prev=toc.html
6 | ~~~~~~
7 | include::attributes.conf[]
8 |
9 | TCK User's Guide for {TechnologyFullName}, Release {TechnologyVersion} for Jakarta EE
10 | =====================================================================================
11 |
12 | [[eclipse-foundation]]
13 | Eclipse Foundation
14 | ------------------
15 |
16 | Technology Compatibility Kit User's Guide for {TechnologyFullName}
17 |
18 | Release {TechnologyVersion} for Jakarta EE
19 |
20 | {ReleaseDate}
21 |
22 | [[sthref1]]
23 |
24 | '''''
25 |
26 | Technology Compatibility Kit User's Guide for {TechnologyFullName},
27 | Release {TechnologyVersion} for Jakarta EE
28 |
29 | Copyright © {CopyrightDates} Oracle and/or its affiliates. All rights reserved.
30 |
31 | This program and the accompanying materials are made available under
32 | the terms of the Eclipse Public License v. 2.0, which is available at
33 | http://www.eclipse.org/legal/epl-2.0.
34 |
35 | SPDX-License-Identifier: EPL-2.0
36 |
37 | Oracle and Java are registered trademarks of Oracle and/or its
38 | affiliates. Other names may be trademarks of their respective owners.
39 |
40 | include::title.inc[]
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/title.inc:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////
2 | NOTE TO WRITERS:
3 | This is included at the tail end of the Title page.
4 | The following section should be customized for the technology.
5 | This is provided to allow each technology to customize legacy acronym names
6 | that are used in this TCK.
7 | Be sure to customize LegacyAcronym in attributes.conf
8 | Add additional lines as needed for acronyms found in your TCK user guide.
9 | ///////////////////////////////////////////////////////////////////////
10 |
11 | References in this document to {LegacyAcronym} refer to the {TechnologyFullName} unless otherwise noted.
12 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/using-examples.inc:
--------------------------------------------------------------------------------
1 | ///////////////////////////////////////////////////////////////////////
2 | NOTE TO WRITERS:
3 | These CLI examples can be customized as necessary.
4 | ///////////////////////////////////////////////////////////////////////
5 |
6 | Start test using the following command:
7 |
8 | --
9 | [source,oac_no_warn]
10 | ----
11 | mvn clean verify
12 | ----
13 | --
14 |
15 | [[GCMCU]]
16 |
17 | Example 5-1 {TechnologyShortName} TCK Signature Tests
18 |
19 | To run the {TechnologyShortName} TCK signature tests, enter the
20 | following commands:
21 |
22 | [source,subs="attributes"]
23 | ----
24 | mvn verify -Dit.test=jakarta.jsonb.tck.signaturetest.**
25 | ----
26 |
27 | [[GCMBV]]
28 |
29 |
30 | Example 5-2 Single Test Directory
31 |
32 | To run a single test directory, enter the following commands:
33 |
34 | [source,subs="attributes"]
35 | ----
36 | mvn verify -Dit.test={singleTestDirectoryExample}.**
37 | ----
38 |
39 | [[GCMCA]]
40 |
41 |
42 | Example 5-3 Subset of Test Directories
43 |
44 | To run a subset of test directories, enter the following commands:
45 |
46 | [source,subs="attributes"]
47 | ----
48 | mvn verify -Dit.test={subsetTestDirectoryExample}.**
49 | ----
50 |
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/content/using.inc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jakartaee/jsonb-api/b0b5a3ad43abce7090dbe419d9b29b817c365e41/tck-docs/userguide/src/main/jbake/content/using.inc
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/jbake.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v. 2.0, which is available at
6 | # http://www.eclipse.org/legal/epl-2.0.
7 | #
8 | # This Source Code may also be made available under the following Secondary
9 | # Licenses when the conditions for such availability set forth in the
10 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | # version 2 with the GNU Classpath Exception, which is available at
12 | # https://www.gnu.org/software/classpath/license.html.
13 | #
14 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | #
16 |
17 | site.host=http://jbake.org
18 | render.tags=false
19 | render.sitemap=false
20 | render.archive=false
21 | render.feed=false
22 | render.index=false
23 | asciidoctor.option.safe=0
24 | asciidoctor.attributes.export=true
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/templates/menu.ftl:
--------------------------------------------------------------------------------
1 | <#-- a menu bar template fragment included in the page template -->
--------------------------------------------------------------------------------
/tck-docs/userguide/src/main/jbake/templates/page.ftl:
--------------------------------------------------------------------------------
1 | <#-- a top level page layout template -->
2 |
3 | <#include "header.ftl">
4 | <#include "menu.ftl">
5 |
6 | ${content.body}
7 |
8 | <#include "footer.ftl">
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/TypeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind;
22 |
23 | public interface TypeContainer {
24 | T getInstance();
25 |
26 | void setInstance(T instance);
27 | }
28 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleAnnotatedDoubleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNumberFormat;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class SimpleAnnotatedDoubleContainer implements TypeContainer {
28 | @JsonbNumberFormat(value = "###,###.#", locale = "de")
29 | private Double instance = 123456.789;
30 |
31 | @Override
32 | public Double getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(Double instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleAnnotatedNillableContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | @JsonbNillable
28 | public class SimpleAnnotatedNillableContainer implements TypeContainer {
29 | private Object instance;
30 |
31 | @Override
32 | public Object getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(Object instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class SimpleContainer implements TypeContainer {
26 | private String instance = "Test";
27 |
28 | public String getInstance() {
29 | return instance;
30 | }
31 |
32 | public void setInstance(String instance) {
33 | this.instance = instance;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleContainerAdapted.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class SimpleContainerAdapted implements TypeContainer {
26 | private String instance = "Test";
27 |
28 | public String getInstance() {
29 | return instance;
30 | }
31 |
32 | public void setInstance(String instance) {
33 | this.instance = instance;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleContainerContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class SimpleContainerContainer
26 | implements TypeContainer {
27 | private SimpleContainer instance;
28 |
29 | public SimpleContainer getInstance() {
30 | return instance;
31 | }
32 |
33 | public void setInstance(SimpleContainer instance) {
34 | this.instance = instance;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleIntegerAdapter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import jakarta.json.bind.adapter.JsonbAdapter;
24 |
25 | public class SimpleIntegerAdapter implements JsonbAdapter {
26 | @Override
27 | public Integer adaptToJson(Integer integer) throws Exception {
28 | return integer;
29 | }
30 |
31 | @Override
32 | public Integer adaptFromJson(Integer adapted) throws Exception {
33 | return adapted;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleIntegerDeserializer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import java.lang.reflect.Type;
24 |
25 | import jakarta.json.bind.serializer.DeserializationContext;
26 | import jakarta.json.bind.serializer.JsonbDeserializer;
27 | import jakarta.json.stream.JsonParser;
28 |
29 | public class SimpleIntegerDeserializer implements JsonbDeserializer {
30 | public Integer deserialize(JsonParser jsonParser,
31 | DeserializationContext deserializationContext, Type type) {
32 | return deserializationContext.deserialize(type, jsonParser);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleIntegerSerializer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import jakarta.json.bind.serializer.JsonbSerializer;
24 | import jakarta.json.bind.serializer.SerializationContext;
25 | import jakarta.json.stream.JsonGenerator;
26 |
27 | public class SimpleIntegerSerializer implements JsonbSerializer {
28 | @Override
29 | public void serialize(Integer i, JsonGenerator jsonGenerator,
30 | SerializationContext serializationContext) {
31 | serializationContext.serialize(i, jsonGenerator);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimplePropertyNamingStrategy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import jakarta.json.bind.config.PropertyNamingStrategy;
24 |
25 | public class SimplePropertyNamingStrategy implements PropertyNamingStrategy {
26 | @Override
27 | public String translateName(String s) {
28 | return s;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimplePropertyVisibilityStrategy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import java.lang.reflect.Field;
24 | import java.lang.reflect.Method;
25 |
26 | import jakarta.json.bind.config.PropertyVisibilityStrategy;
27 |
28 | public class SimplePropertyVisibilityStrategy
29 | implements PropertyVisibilityStrategy {
30 | @Override
31 | public boolean isVisible(Field field) {
32 | return true;
33 | }
34 |
35 | @Override
36 | public boolean isVisible(Method method) {
37 | return true;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/api/model/SimpleVisibilityStrategy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.api.model;
22 |
23 | import java.lang.reflect.Field;
24 | import java.lang.reflect.Method;
25 |
26 | import jakarta.json.bind.config.PropertyVisibilityStrategy;
27 |
28 | public class SimpleVisibilityStrategy implements PropertyVisibilityStrategy {
29 | @Override
30 | public boolean isVisible(Field field) {
31 | return field.getName().equals("secondInstance");
32 | }
33 |
34 | @Override
35 | public boolean isVisible(Method method) {
36 | return method.getName().equals("getSecondInstance");
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/binarydata/model/BinaryDataContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.binarydata.model;
22 |
23 | public class BinaryDataContainer {
24 | private byte[] data = "Test String".getBytes();
25 |
26 | public byte[] getData() {
27 | return data;
28 | }
29 |
30 | public void setData(byte[] data) {
31 | this.data = data;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/dateformat/model/DateContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.dateformat.model;
22 |
23 | import java.util.Date;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class DateContainer implements TypeContainer {
28 | private Date instance;
29 |
30 | @Override
31 | public Date getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Date instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/dateformat/model/customized/CustomizedPackageDateContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.dateformat.model.customized;
22 |
23 | import java.util.Date;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class CustomizedPackageDateContainer implements TypeContainer {
28 | private Date instance;
29 |
30 | @Override
31 | public Date getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Date instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/dateformat/model/customized/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | @JsonbDateFormat(value = "E DD MMM yyyy HH:mm:ss z", locale = "it")
22 | package ee.jakarta.tck.json.bind.customizedmapping.dateformat.model.customized;
23 |
24 | import jakarta.json.bind.annotation.JsonbDateFormat;
25 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/BinaryDataContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | public class BinaryDataContainer {
24 | private byte[] data = "Test String".getBytes();
25 |
26 | public byte[] getData() {
27 | return data;
28 | }
29 |
30 | public void setData(byte[] data) {
31 | this.data = data;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/CalendarContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | import java.util.Calendar;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class CalendarContainer implements TypeContainer {
28 | private Calendar instance;
29 |
30 | @Override
31 | public Calendar getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Calendar instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/DateContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | import java.util.Date;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class DateContainer implements TypeContainer {
28 | private Date instance;
29 |
30 | @Override
31 | public Date getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Date instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/DurationContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | import java.time.Duration;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class DurationContainer implements TypeContainer {
28 | private Duration instance;
29 |
30 | @Override
31 | public Duration getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Duration instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/GregorianCalendarContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | import java.util.GregorianCalendar;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class GregorianCalendarContainer
28 | implements TypeContainer {
29 | private GregorianCalendar instance;
30 |
31 | @Override
32 | public GregorianCalendar getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(GregorianCalendar instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/InstantContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | import java.time.Instant;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class InstantContainer implements TypeContainer {
28 | private Instant instance;
29 |
30 | @Override
31 | public Instant getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Instant instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/LocalDateContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | import java.time.LocalDate;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class LocalDateContainer implements TypeContainer {
28 | private LocalDate instance;
29 |
30 | @Override
31 | public LocalDate getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(LocalDate instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/ijson/model/LocalDateTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.ijson.model;
22 |
23 | import java.time.LocalDateTime;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class LocalDateTimeContainer implements TypeContainer {
28 | private LocalDateTime instance;
29 |
30 | @Override
31 | public LocalDateTime getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(LocalDateTime instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/NillableContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | @JsonbNillable
26 | public class NillableContainer {
27 | private String stringInstance;
28 |
29 | public String getStringInstance() {
30 | return stringInstance;
31 | }
32 |
33 | public void setStringInstance(String stringInstance) {
34 | this.stringInstance = stringInstance;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/NillablePropertyContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | public class NillablePropertyContainer {
26 | @JsonbNillable
27 | private String nillableStringInstance;
28 |
29 | public String getNillableStringInstance() {
30 | return nillableStringInstance;
31 | }
32 |
33 | public void setNillableStringInstance(String nillableStringInstance) {
34 | this.nillableStringInstance = nillableStringInstance;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/NillablePropertyNonNillableContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | @JsonbNillable(false)
26 | public class NillablePropertyNonNillableContainer {
27 | @JsonbNillable
28 | private String nillableStringInstance;
29 |
30 | public String getNillableStringInstance() {
31 | return nillableStringInstance;
32 | }
33 |
34 | public void setNillableStringInstance(String nillableStringInstance) {
35 | this.nillableStringInstance = nillableStringInstance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/NonNillableContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | @JsonbNillable(false)
26 | public class NonNillableContainer {
27 | private String stringInstance;
28 |
29 | public String getStringInstance() {
30 | return stringInstance;
31 | }
32 |
33 | public void setStringInstance(String stringInstance) {
34 | this.stringInstance = stringInstance;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/NonNillablePropertyContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | public class NonNillablePropertyContainer {
26 | @JsonbNillable(false)
27 | private String nillableStringInstance;
28 |
29 | public String getNillableStringInstance() {
30 | return nillableStringInstance;
31 | }
32 |
33 | public void setNillableStringInstance(String nillableStringInstance) {
34 | this.nillableStringInstance = nillableStringInstance;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/NonNillablePropertyNillableContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | @JsonbNillable
26 | public class NonNillablePropertyNillableContainer {
27 | @JsonbNillable(false)
28 | private String stringInstance;
29 |
30 | public String getStringInstance() {
31 | return stringInstance;
32 | }
33 |
34 | public void setStringInstance(String stringInstance) {
35 | this.stringInstance = stringInstance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/SimpleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model;
22 |
23 | public class SimpleContainer {
24 | private String stringInstance;
25 |
26 | public String getStringInstance() {
27 | return stringInstance;
28 | }
29 |
30 | public void setStringInstance(String stringInstance) {
31 | this.stringInstance = stringInstance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/nillable/NillablePackageNonNillablePropertyContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model.nillable;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | public class NillablePackageNonNillablePropertyContainer {
26 | @JsonbNillable(false)
27 | private String stringInstance;
28 |
29 | public String getStringInstance() {
30 | return stringInstance;
31 | }
32 |
33 | public void setStringInstance(String stringInstance) {
34 | this.stringInstance = stringInstance;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/nillable/NillablePackageSimpleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model.nillable;
22 |
23 | public class NillablePackageSimpleContainer {
24 | private String stringInstance;
25 |
26 | public String getStringInstance() {
27 | return stringInstance;
28 | }
29 |
30 | public void setStringInstance(String stringInstance) {
31 | this.stringInstance = stringInstance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/nillable/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | @JsonbNillable
22 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model.nillable;
23 |
24 | import jakarta.json.bind.annotation.JsonbNillable;
25 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/nonnillable/NonNillablePackageNillableContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model.nonnillable;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | @JsonbNillable
26 | public class NonNillablePackageNillableContainer {
27 | private String stringInstance;
28 |
29 | public String getStringInstance() {
30 | return stringInstance;
31 | }
32 |
33 | public void setStringInstance(String stringInstance) {
34 | this.stringInstance = stringInstance;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/nonnillable/NonNillablePackageNonNillablePropertyNillableContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model.nonnillable;
22 |
23 | import jakarta.json.bind.annotation.JsonbNillable;
24 |
25 | @JsonbNillable
26 | public class NonNillablePackageNonNillablePropertyNillableContainer {
27 | @JsonbNillable(false)
28 | private String stringInstance;
29 |
30 | public String getStringInstance() {
31 | return stringInstance;
32 | }
33 |
34 | public void setStringInstance(String stringInstance) {
35 | this.stringInstance = stringInstance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/nonnillable/NonNillablePackageSimpleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model.nonnillable;
22 |
23 | public class NonNillablePackageSimpleContainer {
24 | private String stringInstance;
25 |
26 | public String getStringInstance() {
27 | return stringInstance;
28 | }
29 |
30 | public void setStringInstance(String stringInstance) {
31 | this.stringInstance = stringInstance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/nullhandling/model/nonnillable/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | @JsonbNillable(false)
22 | package ee.jakarta.tck.json.bind.customizedmapping.nullhandling.model.nonnillable;
23 |
24 | import jakarta.json.bind.annotation.JsonbNillable;
25 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/numberformat/model/FieldCustomizedDoubleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2025 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.numberformat.model;
22 |
23 | import jakarta.json.bind.annotation.JsonbNumberFormat;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class FieldCustomizedDoubleContainer implements TypeContainer {
28 | @JsonbNumberFormat(locale = "fi")
29 | private Double instance;
30 |
31 | @Override
32 | public Double getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(Double instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/numberformat/model/customized/PackageCustomizedDoubleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.numberformat.model.customized;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class PackageCustomizedDoubleContainer implements TypeContainer {
26 | private Double instance;
27 |
28 | @Override
29 | public Double getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Double instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/numberformat/model/customized/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | @JsonbNumberFormat(value = "###,###.#", locale = "de")
22 | package ee.jakarta.tck.json.bind.customizedmapping.numberformat.model.customized;
23 |
24 | import jakarta.json.bind.annotation.JsonbNumberFormat;
25 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/propertynames/model/StringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.propertynames.model;
22 |
23 | public class StringContainer {
24 | private String stringInstance;
25 |
26 | public String getStringInstance() {
27 | return stringInstance;
28 | }
29 |
30 | public void setStringInstance(String stringInstance) {
31 | this.stringInstance = stringInstance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/propertynames/model/TransientPropertyContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.propertynames.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class TransientPropertyContainer implements TypeContainer {
26 | private transient String instance;
27 |
28 | @Override
29 | public String getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(String instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/visibility/model/CustomFieldVisibilityStrategy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | package ee.jakarta.tck.json.bind.customizedmapping.visibility.model;
18 |
19 | import java.lang.reflect.Field;
20 | import java.lang.reflect.Method;
21 |
22 | import jakarta.json.bind.config.PropertyVisibilityStrategy;
23 |
24 | public class CustomFieldVisibilityStrategy implements PropertyVisibilityStrategy {
25 | @Override
26 | public boolean isVisible(Field field) {
27 | return field.getGenericType() == float.class || field.getGenericType() == Integer.class;
28 | }
29 |
30 | @Override
31 | public boolean isVisible(Method method) {
32 | return false;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/visibility/model/CustomVisibilityStrategy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.customizedmapping.visibility.model;
22 |
23 | import java.lang.reflect.Field;
24 | import java.lang.reflect.Method;
25 |
26 | import jakarta.json.bind.config.PropertyVisibilityStrategy;
27 |
28 | public class CustomVisibilityStrategy implements PropertyVisibilityStrategy {
29 | @Override
30 | public boolean isVisible(Field field) {
31 | return false;
32 | }
33 |
34 | @Override
35 | public boolean isVisible(Method method) {
36 | return method.getName().equals("getFloatInstance");
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/customizedmapping/visibility/model/customized/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | @JsonbVisibility(CustomVisibilityStrategy.class)
22 | package ee.jakarta.tck.json.bind.customizedmapping.visibility.model.customized;
23 |
24 | import jakarta.json.bind.annotation.JsonbVisibility;
25 |
26 | import ee.jakarta.tck.json.bind.customizedmapping.visibility.model.CustomVisibilityStrategy;
27 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/arrays/model/MultiDimensionalArrayContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.arrays.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class MultiDimensionalArrayContainer
26 | implements TypeContainer {
27 | private Integer[][] instance;
28 |
29 | @Override
30 | public Integer[][] getInstance() {
31 | return instance;
32 | }
33 |
34 | @Override
35 | public void setInstance(Integer[][] instance) {
36 | this.instance = instance;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/arrays/model/PrimitiveArrayContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.arrays.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class PrimitiveArrayContainer implements TypeContainer {
26 | private int[] instance;
27 |
28 | @Override
29 | public int[] getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(int[] instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/BooleanContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class BooleanContainer implements TypeContainer {
26 | private Boolean instance;
27 |
28 | @Override
29 | public Boolean getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Boolean instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/ByteContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class ByteContainer implements TypeContainer {
26 | private Byte instance;
27 |
28 | @Override
29 | public Byte getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Byte instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/CharacterContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class CharacterContainer implements TypeContainer {
26 | private Character instance;
27 |
28 | @Override
29 | public Character getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Character instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/DoubleContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class DoubleContainer implements TypeContainer {
26 | private Double instance;
27 |
28 | @Override
29 | public Double getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Double instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/FloatContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class FloatContainer implements TypeContainer {
26 | private Float instance;
27 |
28 | @Override
29 | public Float getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Float instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/IntegerContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class IntegerContainer implements TypeContainer {
26 | private Integer instance;
27 |
28 | @Override
29 | public Integer getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Integer instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/LongContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class LongContainer implements TypeContainer {
26 | private Long instance;
27 |
28 | @Override
29 | public Long getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Long instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/ShortContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class ShortContainer implements TypeContainer {
26 | private Short instance;
27 |
28 | @Override
29 | public Short getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(Short instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/basictypes/model/StringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.basictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class StringContainer implements TypeContainer {
26 | private String instance;
27 |
28 | @Override
29 | public String getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(String instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerAccessorsWithoutMatchingField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerAccessorsWithoutMatchingField {
24 | private String field = "Test String";
25 |
26 | public String getInstance() {
27 | return field;
28 | }
29 |
30 | public void setInstance(String instance) {
31 | this.field = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerFinalField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerFinalField {
24 | private final String instance = "Test String";
25 |
26 | public String getInstance() {
27 | return instance;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerFinalPublicField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerFinalPublicField {
24 | public final String instance = "Test String";
25 | }
26 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerNoAccessorsPackagePrivateField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerNoAccessorsPackagePrivateField {
24 | String instance = "Test String";
25 | }
26 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerNoAccessorsPrivateField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerNoAccessorsPrivateField {
24 | private String instance = "Test String";
25 | }
26 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerNoAccessorsProtectedField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerNoAccessorsProtectedField {
24 | protected String instance = "Test String";
25 | }
26 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerNoAccessorsPublicField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerNoAccessorsPublicField {
24 | public String instance = "Test String";
25 | }
26 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPackagePrivateAccessors.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPackagePrivateAccessors {
24 | private String instance = "Test String";
25 |
26 | String getInstance() {
27 | return instance;
28 | }
29 |
30 | void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPrivateAccessors.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPrivateAccessors {
24 | private String instance = "Test String";
25 |
26 | private String getInstance() {
27 | return instance;
28 | }
29 |
30 | private void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPrivateAccessorsPublicField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPrivateAccessorsPublicField {
24 | public String instance = "Test String";
25 |
26 | private String getInstance() {
27 | return instance;
28 | }
29 |
30 | private void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPrivateConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPrivateConstructor {
24 | private String instance = "Test String";
25 |
26 | private StringContainerPrivateConstructor() {
27 | }
28 |
29 | public static StringContainerPrivateConstructor getClassInstance() {
30 | return new StringContainerPrivateConstructor();
31 | }
32 |
33 | public String getInstance() {
34 | return instance;
35 | }
36 |
37 | public void setInstance(String instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerProtectedAccessors.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerProtectedAccessors {
24 | private String instance = "Test String";
25 |
26 | protected String getInstance() {
27 | return instance;
28 | }
29 |
30 | protected void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPublicAccessors.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPublicAccessors {
24 | private String instance = "Test String";
25 |
26 | public String getInstance() {
27 | return instance;
28 | }
29 |
30 | public void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPublicAccessorsPublicField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPublicAccessorsPublicField {
24 | public String instance = "Test String";
25 |
26 | public String getInstance() {
27 | return "Getter String";
28 | }
29 |
30 | public void setInstance(String instance) {
31 | this.instance = "Setter String";
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPublicConstructor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPublicConstructor {
24 | private String instance = "Test String";
25 |
26 | public String getInstance() {
27 | return instance;
28 | }
29 |
30 | public void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerPublicStaticNestedClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerPublicStaticNestedClass {
24 | public NestedClass nestedClass = new NestedClass();
25 |
26 | public static class NestedClass {
27 | private String instance = "Test String";
28 |
29 | public String getInstance() {
30 | return instance;
31 | }
32 |
33 | public void setInstance(String instance) {
34 | this.instance = instance;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerStaticField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerStaticField {
24 | private static String instance = "Test String";
25 |
26 | public String getInstance() {
27 | return instance;
28 | }
29 |
30 | public void setInstance(String instance) {
31 | StringContainerStaticField.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/classes/model/StringContainerTransientField.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.classes.model;
22 |
23 | public class StringContainerTransientField {
24 | private transient String instance = "Test String";
25 |
26 | public String getInstance() {
27 | return instance;
28 | }
29 |
30 | public void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/ArrayDequeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.ArrayDeque;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class ArrayDequeContainer implements TypeContainer> {
28 | private ArrayDeque instance;
29 |
30 | @Override
31 | public ArrayDeque getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(ArrayDeque instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/ArrayListContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.ArrayList;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class ArrayListContainer implements TypeContainer> {
28 | private ArrayList instance;
29 |
30 | @Override
31 | public ArrayList getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(ArrayList instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/CollectionContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.Collection;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class CollectionContainer implements TypeContainer> {
28 | private Collection instance;
29 |
30 | @Override
31 | public Collection getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Collection instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/DequeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.Deque;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class DequeContainer implements TypeContainer> {
28 | private Deque instance;
29 |
30 | @Override
31 | public Deque getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Deque instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/HashMapContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.HashMap;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class HashMapContainer
28 | implements TypeContainer> {
29 | private HashMap instance;
30 |
31 | @Override
32 | public HashMap getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(HashMap instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/HashSetContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.HashSet;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class HashSetContainer implements TypeContainer> {
28 | private HashSet instance;
29 |
30 | @Override
31 | public HashSet getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(HashSet instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/LinkedHashSetContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.LinkedHashSet;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class LinkedHashSetContainer
28 | implements TypeContainer> {
29 | private LinkedHashSet instance;
30 |
31 | @Override
32 | public LinkedHashSet getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(LinkedHashSet instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/LinkedListContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.LinkedList;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class LinkedListContainer implements TypeContainer> {
28 | private LinkedList instance;
29 |
30 | @Override
31 | public LinkedList getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(LinkedList instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/ListContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.List;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class ListContainer implements TypeContainer> {
28 | private List instance;
29 |
30 | @Override
31 | public List getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(List instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/MapContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.Map;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class MapContainer implements TypeContainer> {
28 | private Map instance;
29 |
30 | @Override
31 | public Map getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Map instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/NavigableSetContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.NavigableSet;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class NavigableSetContainer
28 | implements TypeContainer> {
29 | private NavigableSet instance;
30 |
31 | @Override
32 | public NavigableSet getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(NavigableSet instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/PriorityQueueContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.PriorityQueue;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class PriorityQueueContainer
28 | implements TypeContainer> {
29 | private PriorityQueue instance;
30 |
31 | @Override
32 | public PriorityQueue getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(PriorityQueue instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/QueueContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.Queue;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class QueueContainer implements TypeContainer> {
28 | private Queue instance;
29 |
30 | @Override
31 | public Queue getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Queue instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/SetContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.Set;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class SetContainer implements TypeContainer> {
28 | private Set instance;
29 |
30 | @Override
31 | public Set getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Set instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/SortedMapContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.SortedMap;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class SortedMapContainer
28 | implements TypeContainer> {
29 | private SortedMap instance;
30 |
31 | @Override
32 | public SortedMap getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(SortedMap instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/SortedSetContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.SortedSet;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class SortedSetContainer implements TypeContainer> {
28 | private SortedSet instance;
29 |
30 | @Override
31 | public SortedSet getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(SortedSet instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/TreeMapContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.TreeMap;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class TreeMapContainer
28 | implements TypeContainer> {
29 | private TreeMap instance;
30 |
31 | @Override
32 | public TreeMap getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(TreeMap instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/collections/model/TreeSetContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.collections.model;
22 |
23 | import java.util.TreeSet;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class TreeSetContainer implements TypeContainer> {
28 | private TreeSet instance;
29 |
30 | @Override
31 | public TreeSet getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(TreeSet instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/CalendarContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.util.Calendar;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class CalendarContainer implements TypeContainer {
28 | private Calendar instance;
29 |
30 | @Override
31 | public Calendar getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Calendar instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/DateContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.util.Date;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class DateContainer implements TypeContainer {
28 | private Date instance;
29 |
30 | @Override
31 | public Date getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Date instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/DurationContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.Duration;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class DurationContainer implements TypeContainer {
28 | private Duration instance;
29 |
30 | @Override
31 | public Duration getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Duration instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/GregorianCalendarContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.util.GregorianCalendar;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class GregorianCalendarContainer
28 | implements TypeContainer {
29 | private GregorianCalendar instance;
30 |
31 | @Override
32 | public GregorianCalendar getInstance() {
33 | return instance;
34 | }
35 |
36 | @Override
37 | public void setInstance(GregorianCalendar instance) {
38 | this.instance = instance;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/InstantContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.Instant;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class InstantContainer implements TypeContainer {
28 | private Instant instance;
29 |
30 | @Override
31 | public Instant getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Instant instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/LocalDateContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.LocalDate;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class LocalDateContainer implements TypeContainer {
28 | private LocalDate instance;
29 |
30 | @Override
31 | public LocalDate getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(LocalDate instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/LocalDateTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.LocalDateTime;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class LocalDateTimeContainer implements TypeContainer {
28 | private LocalDateTime instance;
29 |
30 | @Override
31 | public LocalDateTime getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(LocalDateTime instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/LocalTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.LocalTime;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class LocalTimeContainer implements TypeContainer {
28 | private LocalTime instance;
29 |
30 | @Override
31 | public LocalTime getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(LocalTime instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/OffsetDateTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.OffsetDateTime;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class OffsetDateTimeContainer implements TypeContainer {
28 | private OffsetDateTime instance;
29 |
30 | @Override
31 | public OffsetDateTime getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(OffsetDateTime instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/OffsetTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.OffsetTime;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class OffsetTimeContainer implements TypeContainer {
28 | private OffsetTime instance;
29 |
30 | @Override
31 | public OffsetTime getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(OffsetTime instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/PeriodContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.Period;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class PeriodContainer implements TypeContainer {
28 | private Period instance;
29 |
30 | @Override
31 | public Period getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(Period instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/SimpleTimeZoneContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.util.SimpleTimeZone;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class SimpleTimeZoneContainer implements TypeContainer {
28 | private SimpleTimeZone instance;
29 |
30 | @Override
31 | public SimpleTimeZone getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(SimpleTimeZone instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/TimeZoneContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.util.TimeZone;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class TimeZoneContainer implements TypeContainer {
28 | private TimeZone instance;
29 |
30 | @Override
31 | public TimeZone getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(TimeZone instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/ZoneIdContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.ZoneId;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class ZoneIdContainer implements TypeContainer {
28 | private ZoneId instance;
29 |
30 | @Override
31 | public ZoneId getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(ZoneId instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/ZoneOffsetContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.ZoneOffset;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class ZoneOffsetContainer implements TypeContainer {
28 | private ZoneOffset instance;
29 |
30 | @Override
31 | public ZoneOffset getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(ZoneOffset instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/dates/model/ZonedDateTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.dates.model;
22 |
23 | import java.time.ZonedDateTime;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class ZonedDateTimeContainer implements TypeContainer {
28 | private ZonedDateTime instance;
29 |
30 | @Override
31 | public ZonedDateTime getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(ZonedDateTime instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/enums/model/EnumContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.enums.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class EnumContainer implements TypeContainer {
26 | public enum Enumeration {
27 | ONE, TWO
28 | }
29 |
30 | private Enumeration instance = Enumeration.ONE;
31 |
32 | @Override
33 | public Enumeration getInstance() {
34 | return instance;
35 | }
36 |
37 | @Override
38 | public void setInstance(Enumeration instance) {
39 | this.instance = instance;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/generics/model/CollectionContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.generics.model;
22 |
23 | import java.util.List;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class CollectionContainer implements TypeContainer {
28 | protected List instance;
29 |
30 | @Override
31 | public List getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(List instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/generics/model/GenericContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.generics.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class GenericContainer implements TypeContainer {
26 | protected T instance;
27 |
28 | @Override
29 | public T getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(T instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/generics/model/MultipleBoundsContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.generics.model;
22 |
23 | import java.util.List;
24 | import java.util.Queue;
25 |
26 | import ee.jakarta.tck.json.bind.TypeContainer;
27 |
28 | public class MultipleBoundsContainer
29 | implements TypeContainer> {
30 | protected List instance;
31 |
32 | @Override
33 | public List getInstance() {
34 | return instance;
35 | }
36 |
37 | @Override
38 | public void setInstance(List instance) {
39 | this.instance = instance;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/generics/model/NumberContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.generics.model;
22 |
23 | public class NumberContainer extends GenericContainer {
24 | protected T instance;
25 |
26 | @Override
27 | public T getInstance() {
28 | return instance;
29 | }
30 |
31 | @Override
32 | public void setInstance(T instance) {
33 | this.instance = instance;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/generics/model/StringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.generics.model;
22 |
23 | public class StringContainer extends GenericContainer {
24 | @Override
25 | public String getInstance() {
26 | return instance;
27 | }
28 |
29 | @Override
30 | public void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/generics/model/WildcardContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.generics.model;
22 |
23 | import java.util.List;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class WildcardContainer implements TypeContainer> {
28 | protected List> instance;
29 |
30 | @Override
31 | public List> getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(List> instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/identifiers/model/StringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.identifiers.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class StringContainer implements TypeContainer {
26 | private String instance;
27 |
28 | @Override
29 | public String getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(String instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/ignore/model/StringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.ignore.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class StringContainer implements TypeContainer {
26 | private String instance;
27 |
28 | @Override
29 | public String getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(String instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/interfaces/model/InterfaceContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.interfaces.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class InterfaceContainer
26 | implements TypeContainer> {
27 | private TypeContainer instance;
28 |
29 | @Override
30 | public TypeContainer getInstance() {
31 | return instance;
32 | }
33 |
34 | @Override
35 | public void setInstance(TypeContainer instance) {
36 | this.instance = instance;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/interfaces/model/StringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.interfaces.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | public class StringContainer implements TypeContainer {
26 | private String instance;
27 |
28 | @Override
29 | public String getInstance() {
30 | return instance;
31 | }
32 |
33 | @Override
34 | public void setInstance(String instance) {
35 | this.instance = instance;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/jsonptypes/model/JsonArrayContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.jsonptypes.model;
22 |
23 | import jakarta.json.JsonArray;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class JsonArrayContainer implements TypeContainer {
28 | private JsonArray instance;
29 |
30 | @Override
31 | public JsonArray getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(JsonArray instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/jsonptypes/model/JsonNumberContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.jsonptypes.model;
22 |
23 | import jakarta.json.JsonNumber;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class JsonNumberContainer implements TypeContainer {
28 | private JsonNumber instance;
29 |
30 | @Override
31 | public JsonNumber getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(JsonNumber instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/jsonptypes/model/JsonObjectContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.jsonptypes.model;
22 |
23 | import jakarta.json.JsonObject;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class JsonObjectContainer implements TypeContainer {
28 | private JsonObject instance;
29 |
30 | @Override
31 | public JsonObject getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(JsonObject instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/jsonptypes/model/JsonPointerContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.jsonptypes.model;
22 |
23 | import jakarta.json.JsonPointer;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class JsonPointerContainer implements TypeContainer {
28 | private JsonPointer instance;
29 |
30 | @Override
31 | public JsonPointer getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(JsonPointer instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/jsonptypes/model/JsonStringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.jsonptypes.model;
22 |
23 | import jakarta.json.JsonString;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class JsonStringContainer implements TypeContainer {
28 | private JsonString instance;
29 |
30 | @Override
31 | public JsonString getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(JsonString instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/jsonptypes/model/JsonStructureContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.jsonptypes.model;
22 |
23 | import jakarta.json.JsonStructure;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class JsonStructureContainer implements TypeContainer {
28 | private JsonStructure instance;
29 |
30 | @Override
31 | public JsonStructure getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(JsonStructure instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/jsonptypes/model/JsonValueContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.jsonptypes.model;
22 |
23 | import jakarta.json.JsonValue;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class JsonValueContainer implements TypeContainer {
28 | private JsonValue instance;
29 |
30 | @Override
31 | public JsonValue getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(JsonValue instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/nullvalue/model/NullArrayContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.nullvalue.model;
22 |
23 | public class NullArrayContainer {
24 | private Object[] instance;
25 |
26 | public Object[] getInstance() {
27 | return instance;
28 | }
29 |
30 | public void setInstance(Object[] instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/nullvalue/model/NullValueContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.nullvalue.model;
22 |
23 | public class NullValueContainer {
24 | private Object instance = "Test String";
25 |
26 | public Object getInstance() {
27 | return instance;
28 | }
29 |
30 | public void setInstance(Object instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/polymorphictypes/model/StringContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.polymorphictypes.model;
22 |
23 | public class StringContainer {
24 | private String instance = "Test String";
25 |
26 | public String getInstance() {
27 | return instance;
28 | }
29 |
30 | public void setInstance(String instance) {
31 | this.instance = instance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/polymorphictypes/model/StringContainerSubClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.polymorphictypes.model;
22 |
23 | public class StringContainerSubClass extends StringContainer {
24 | private String newInstance = "SubClass Test String";
25 |
26 | public String getNewInstance() {
27 | return newInstance;
28 | }
29 |
30 | public void setNewInstance(String newInstance) {
31 | this.newInstance = newInstance;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/specifictypes/model/BigDecimalContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.specifictypes.model;
22 |
23 | import java.math.BigDecimal;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class BigDecimalContainer implements TypeContainer {
28 | private BigDecimal instance;
29 |
30 | @Override
31 | public BigDecimal getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(BigDecimal instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/specifictypes/model/BigIntegerContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.specifictypes.model;
22 |
23 | import java.math.BigInteger;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class BigIntegerContainer implements TypeContainer {
28 | private BigInteger instance;
29 |
30 | @Override
31 | public BigInteger getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(BigInteger instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/specifictypes/model/URIContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.specifictypes.model;
22 |
23 | import java.net.URI;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class URIContainer implements TypeContainer {
28 | private URI instance;
29 |
30 | @Override
31 | public URI getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(URI instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/specifictypes/model/URLContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.specifictypes.model;
22 |
23 | import java.net.URL;
24 |
25 | import ee.jakarta.tck.json.bind.TypeContainer;
26 |
27 | public class URLContainer implements TypeContainer {
28 | private URL instance;
29 |
30 | @Override
31 | public URL getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(URL instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/java/ee/jakarta/tck/json/bind/defaultmapping/specifictypes/model/UUIDContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2017, 2025 Oracle and/or its affiliates. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0, which is available at
6 | * http://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the
10 | * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | * version 2 with the GNU Classpath Exception, which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | */
16 |
17 | /*
18 | * $Id$
19 | */
20 |
21 | package ee.jakarta.tck.json.bind.defaultmapping.specifictypes.model;
22 |
23 | import ee.jakarta.tck.json.bind.TypeContainer;
24 |
25 | import java.util.UUID;
26 |
27 | public class UUIDContainer implements TypeContainer {
28 | private UUID instance;
29 |
30 | @Override
31 | public UUID getInstance() {
32 | return instance;
33 | }
34 |
35 | @Override
36 | public void setInstance(UUID instance) {
37 | this.instance = instance;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tck/src/main/resources/META-INF/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
23 |
24 |
--------------------------------------------------------------------------------
/tck/src/main/resources/ee/jakarta/tck/json/bind/signaturetest/sig-test-pkg-list.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v. 2.0, which is available at
6 | # http://www.eclipse.org/legal/epl-2.0.
7 | #
8 | # This Source Code may also be made available under the following Secondary
9 | # Licenses when the conditions for such availability set forth in the
10 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | # version 2 with the GNU Classpath Exception, which is available at
12 | # https://www.gnu.org/software/classpath/license.html.
13 | #
14 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | #
16 |
17 | #
18 | # $Id$
19 | #
20 |
21 | ##
22 | # This file contains a list of all the packages
23 | # contained in the signature files for this
24 | # deliverable. This file is used to exclude valid
25 | # sub-packages from being verified when their
26 | # parent package's signature is checked.
27 | ##
28 |
29 | jakarta.json.bind
30 | jakarta.json.bind.adapter
31 | jakarta.json.bind.annotation
32 | jakarta.json.bind.config
33 | jakarta.json.bind.serializer
34 | jakarta.json.bind.spi
35 |
--------------------------------------------------------------------------------
/tck/src/main/resources/ee/jakarta/tck/json/bind/signaturetest/sig-test.map:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v. 2.0, which is available at
6 | # http://www.eclipse.org/legal/epl-2.0.
7 | #
8 | # This Source Code may also be made available under the following Secondary
9 | # Licenses when the conditions for such availability set forth in the
10 | # Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 | # version 2 with the GNU Classpath Exception, which is available at
12 | # https://www.gnu.org/software/classpath/license.html.
13 | #
14 | # SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | #
16 |
17 | ###############################################################
18 | # The signature test mapping file for the JSONB TCK.
19 | ###############################################################
20 | jakarta.json.bind=3.0.0
21 |
--------------------------------------------------------------------------------