Download schema to pojo Free Java Code
Description
The schema to pojo project was started because we wanted to programmatically generate the Plain Old Java Objects (POJOs) from JSON schemas. More specifically we wanted to use the generated POJOs as resources of the Synapse JSON REST web services API.
Source Files
The download file schema-to-pojo-master.zip has the following entries.
.gitignore// w w w . ja va 2 s.co m
README.md
pom.xml
pomVersioner.py
schema-to-pojo-core/.gitignore
schema-to-pojo-core/pom.xml
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/EffectiveSchemaUtil.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/FileUtil.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/PojoGeneratorDriver.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/RegisterGenerator.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/SchemaToPojo.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/HandlerFactory.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/HashAndEqualsHandler.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/JSONMarshalingHandler.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/PropertyHandler.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/ToStringHandler.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/TypeCreatorHandler.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/schema03/HandlerFactoryImpl03.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/schema03/HashAndEqualsHandlerImpl03.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/schema03/JSONMarshalingHandlerImpl03.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/schema03/PropertyHandlerImpl03.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/schema03/ToStringHandlerImpl03.java
schema-to-pojo-core/src/main/java/org/sagebionetworks/schema/generator/handler/schema03/TypeCreatorHandlerImpl03.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/EffectiveSchemaUtilTest.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/FileUtils.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/PojoGeneratorDriverTest.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/RegisterGeneratorTest.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/SchemaToPojoTest.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/SchemaWEnumToPojoTest.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/handler/schema03/HashAndEqualsHandlerImpl03Test.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/handler/schema03/JSONMarshalingHandlerImpl03Test.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/handler/schema03/PropertyHandlerImpl03Test.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/handler/schema03/ToStringHandlerImpl03Test.java
schema-to-pojo-core/src/test/java/org/sagebionetworks/schema/generator/handler/schema03/TypeCreatorHandlerImpl03Test.java
schema-to-pojo-core/src/test/resources/ABImpl.json
schema-to-pojo-core/src/test/resources/AImpl.json
schema-to-pojo-core/src/test/resources/DatasetWithEnum.json
schema-to-pojo-core/src/test/resources/DateFormattedProperties.json
schema-to-pojo-core/src/test/resources/Diseases.json
schema-to-pojo-core/src/test/resources/ExampleSchema.json
schema-to-pojo-core/src/test/resources/InterfaceA.json
schema-to-pojo-core/src/test/resources/InterfaceB.json
schema-to-pojo-core/src/test/resources/PetEnum.json
schema-to-pojo-core/src/test/resources/org/sample/Nested.json
schema-to-pojo-core/src/test/resources/org/sample/PackageSample.json
schema-to-pojo-core/src/test/resources/org/sample/ReferToPackageSample.json
schema-to-pojo-gwt/.gitignore
schema-to-pojo-gwt/pom.xml
schema-to-pojo-gwt/src/main/java/org/sagebionetworks/gwt/client/schema/adapter/Constants.java
schema-to-pojo-gwt/src/main/java/org/sagebionetworks/gwt/client/schema/adapter/DateUtils.java
schema-to-pojo-gwt/src/main/java/org/sagebionetworks/gwt/client/schema/adapter/GwtAdapterFactory.java
schema-to-pojo-gwt/src/main/java/org/sagebionetworks/gwt/client/schema/adapter/JSONArrayGwt.java
schema-to-pojo-gwt/src/main/java/org/sagebionetworks/gwt/client/schema/adapter/JSONObjectGwt.java
schema-to-pojo-gwt/src/main/java/org/sagebionetworks/gwt/client/schema/adapter/JSONValueUtil.java
schema-to-pojo-gwt/src/main/resources/org/sagebionetworks/gwt/JSONAdapter.gwt.xml
schema-to-pojo-gwt/src/main/resources/org/sagebionetworks/repo/synpaseDTOs.gwt.xml
schema-to-pojo-gwt/src/test/java/org/sagebionetworks/gwt/client/schema/adapter/GwtTestSuite.java
schema-to-pojo-integration-tests/.gitignore
schema-to-pojo-integration-tests/pom.xml
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/AutoGenDateFormattedPropertiesTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/AutoGenProductTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/RegisterTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/jstp20/IntefaceTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/ABImplTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/AdapterCollectionUtilsTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/AllTypesTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/DatasetTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/DefaultObjectTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/ExampleTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/HasEnumPropertyTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/HasUriTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/LinkDescriptionTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/ObjectSchemaTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/ObjectValidatorTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/OrderedTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/PatternObjectTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/ToStringTesterClassTest.java
schema-to-pojo-integration-tests/src/test/java/org/sagebionetworks/schema/util/FileUtil.java
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/ABImpl.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/AllTypes.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/DateFormattedProperties.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/HasEnumProperty.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/InterfaceA.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/InterfaceB.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/SampleBase.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/StandaloneEnum.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/jstp20/HasInterfaceField.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/jstp20/HasListOfInterface.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/jstp20/OneImpl.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/jstp20/SomeInterface.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/jstp20/TwoImpl.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/Dataset.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/DefaultObject.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/DiseaseNames.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/ExampleSchema.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/HasUri.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/Ordered.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/ToStringTester.json
schema-to-pojo-integration-tests/src/test/resources/org/sagebionetworks/schema/patternObject.json
schema-to-pojo-lib/.gitignore
schema-to-pojo-lib/pom.xml
schema-to-pojo-lib/src/main/java/org/apache/commons/codec/BinaryDecoder.java
schema-to-pojo-lib/src/main/java/org/apache/commons/codec/BinaryEncoder.java
schema-to-pojo-lib/src/main/java/org/apache/commons/codec/Decoder.java
schema-to-pojo-lib/src/main/java/org/apache/commons/codec/DecoderException.java
schema-to-pojo-lib/src/main/java/org/apache/commons/codec/Encoder.java
schema-to-pojo-lib/src/main/java/org/apache/commons/codec/EncoderException.java
schema-to-pojo-lib/src/main/java/org/apache/commons/codec/binary/Base64.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/ENCODING.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/FORMAT.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/LinkDescription.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/ObjectSchema.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/ObjectValidator.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/TYPE.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/AdapterCollectionUtils.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/AdapterFactory.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/JSONAdapter.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/JSONArrayAdapter.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/JSONEntity.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/JSONObjectAdapter.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/JSONObjectAdapterException.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/ValidateProperty.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/adapter/validation/ExpectedDateTime.java
schema-to-pojo-lib/src/main/java/org/sagebionetworks/schema/util/CompareUtils.java
schema-to-pojo-lib/src/main/resources/org/apache/commons/ApacheBase64.gwt.xml
schema-to-pojo-lib/src/main/resources/org/sagebionetworks/SchemaToPojoLib.gwt.xml
schema-to-pojo-lib/src/test/java/org/sagebionetworks/schema/CompareUtilsTest.java
schema-to-pojo-lib/src/test/java/org/sagebionetworks/schema/EncodingTest.java
schema-to-pojo-lib/src/test/java/org/sagebionetworks/schema/ObjectSchemaTest.java
schema-to-pojo-lib/src/test/java/org/sagebionetworks/schema/ObjectSchemaUnitTest.java
schema-to-pojo-lib/src/test/java/org/sagebionetworks/schema/TypeTest.java
schema-to-pojo-lib/src/test/java/org/sagebionetworks/schema/adapter/validation/ExpectedDateTimeTest.java
schema-to-pojo-maven-plugin/.gitignore
schema-to-pojo-maven-plugin/pom.xml
schema-to-pojo-maven-plugin/src/main/java/org/sagebionetworks/schema/maven/SchemaToPojoMojo.java
schema-to-pojo-org-json/.gitignore
schema-to-pojo-org-json/pom.xml
schema-to-pojo-org-json/src/main/java/org/sagebionetworks/schema/adapter/org/json/AdapterFactoryImpl.java
schema-to-pojo-org-json/src/main/java/org/sagebionetworks/schema/adapter/org/json/EntityFactory.java
schema-to-pojo-org-json/src/main/java/org/sagebionetworks/schema/adapter/org/json/JSONArrayAdapterImpl.java
schema-to-pojo-org-json/src/main/java/org/sagebionetworks/schema/adapter/org/json/JSONObjectAdapterImpl.java
schema-to-pojo-org-json/src/main/java/org/sagebionetworks/schema/adapter/org/json/JsonDateUtils.java
schema-to-pojo-org-json/src/test/java/org/sagebionetworks/schema/adapter/org/json/EntityFactoryTest.java
schema-to-pojo-org-json/src/test/java/org/sagebionetworks/schema/adapter/org/json/JSONArrayAdapterImplTest.java
schema-to-pojo-org-json/src/test/java/org/sagebionetworks/schema/adapter/org/json/JSONObjectAdapterImplTest.java
schema-to-pojo-org-json/src/test/java/org/sagebionetworks/schema/adapter/org/json/JsonDateUtilsTest.java
schema-to-pojo-org-json/src/test/java/org/sagebionetworks/schema/adapter/org/json/SimpleEntityStub.java
schema-to-pojo-org-json/src/test/java/org/sagebionetworks/schema/adapter/org/json/SimpleInterface.java
schema-to-pojo-org-json/src/test/java/org/sagebionetworks/schema/adapter/org/json/URIRegexTest.java
Download
Click the following link to download schema-to-pojo-master.zip.
schema-to-pojo-master.zip