├── .gitignore
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
└── org.eclipse.m2e.core.prefs
├── LICENSE
├── README.md
├── compiler
├── .gitignore
├── pom.xml
└── src
│ ├── etc
│ └── header.txt
│ ├── main
│ ├── java
│ │ └── org
│ │ │ └── hisrc
│ │ │ └── jsonix
│ │ │ ├── JsonixConstants.java
│ │ │ ├── analysis
│ │ │ ├── DefaultInfoVertexVisitor.java
│ │ │ ├── DependencyEdge.java
│ │ │ ├── DependencyType.java
│ │ │ ├── ElementInfoVertex.java
│ │ │ ├── InfoVertex.java
│ │ │ ├── InfoVertexVisitor.java
│ │ │ ├── MTypeInfoToString.java
│ │ │ ├── ModelInfoGraphAnalyzer.java
│ │ │ ├── ModelInfoGraphBuilder.java
│ │ │ ├── PackageInfoVertex.java
│ │ │ ├── PropertyInfoGraphBuilder.java
│ │ │ ├── PropertyInfoVertex.java
│ │ │ ├── TypeInfoGraphBuilder.java
│ │ │ └── TypeInfoVertex.java
│ │ │ ├── args4j
│ │ │ ├── Messages.java
│ │ │ └── PartialCmdLineParser.java
│ │ │ ├── compilation
│ │ │ ├── jsonschema
│ │ │ │ ├── CreateTypeInfoSchema.java
│ │ │ │ ├── JsonSchemaMappingCompiler.java
│ │ │ │ ├── JsonSchemaModuleCompiler.java
│ │ │ │ ├── JsonSchemaModulesGenerator.java
│ │ │ │ ├── JsonSchemaPropertyInfoProducerVisitor.java
│ │ │ │ ├── JsonStructureWriter.java
│ │ │ │ ├── JsonixJsonSchemaConstants.java
│ │ │ │ ├── XmlSchemaJsonSchemaConstants.java
│ │ │ │ └── typeinfo
│ │ │ │ │ ├── BuiltinLeafInfoProducer.java
│ │ │ │ │ ├── ClassInfoProducer.java
│ │ │ │ │ ├── ClassRefProducer.java
│ │ │ │ │ ├── CreateTypeInfoProducer.java
│ │ │ │ │ ├── EnumLeafInfoProducer.java
│ │ │ │ │ ├── ListProducer.java
│ │ │ │ │ ├── PackagedTypeInfoProducer.java
│ │ │ │ │ ├── TypeInfoProducer.java
│ │ │ │ │ └── builtin
│ │ │ │ │ ├── Base64BinaryTypeInfoProducer.java
│ │ │ │ │ ├── BinaryTypeInfoProducer.java
│ │ │ │ │ ├── BooleanTypeInfoProducer.java
│ │ │ │ │ ├── DecimalTypeInfoProducer.java
│ │ │ │ │ ├── DurationTypeInfoProducer.java
│ │ │ │ │ ├── HexBinaryTypeInfoProducer.java
│ │ │ │ │ ├── IntegerTypeInfoProducer.java
│ │ │ │ │ ├── NormalizedStringTypeInfoProducer.java
│ │ │ │ │ ├── QNameTypeInfoProducer.java
│ │ │ │ │ ├── StringTypeInfoProducer.java
│ │ │ │ │ └── XMLGregorianCalendarTypeInfoProducer.java
│ │ │ └── mapping
│ │ │ │ ├── CreateTypeInfoDelaration.java
│ │ │ │ ├── IsLiteralEquals.java
│ │ │ │ ├── MappingCompiler.java
│ │ │ │ ├── ModuleCompiler.java
│ │ │ │ ├── ModulesCompiler.java
│ │ │ │ ├── ProgramWriter.java
│ │ │ │ ├── PropertyInfoVisitor.java
│ │ │ │ └── typeinfo
│ │ │ │ ├── BuiltinLeafInfoCompiler.java
│ │ │ │ ├── ClassInfoCompiler.java
│ │ │ │ ├── ClassRefCompiler.java
│ │ │ │ ├── CreateTypeInfoCompiler.java
│ │ │ │ ├── EnumLeafInfoCompiler.java
│ │ │ │ ├── ListCompiler.java
│ │ │ │ ├── PackagedTypeInfoCompiler.java
│ │ │ │ ├── TypeInfoCompiler.java
│ │ │ │ └── builtin
│ │ │ │ ├── AnySimpleTypeTypeInfoCompiler.java
│ │ │ │ ├── Base64BinaryTypeInfoCompiler.java
│ │ │ │ ├── BinaryTypeInfoCompiler.java
│ │ │ │ ├── BooleanTypeInfoCompiler.java
│ │ │ │ ├── DecimalTypeInfoCompiler.java
│ │ │ │ ├── DurationTypeInfoCompiler.java
│ │ │ │ ├── HexBinaryTypeInfoCompiler.java
│ │ │ │ ├── IntegerTypeInfoCompiler.java
│ │ │ │ ├── NormalizedStringTypeInfoCompiler.java
│ │ │ │ ├── QNameTypeInfoCompiler.java
│ │ │ │ ├── StringTypeInfoCompiler.java
│ │ │ │ └── XMLGregorianCalendarTypeInfoCompiler.java
│ │ │ ├── configuration
│ │ │ ├── DependenciesOfMappingConfiguration.java
│ │ │ ├── ElementInfoConfiguration.java
│ │ │ ├── ExcludesConfiguration.java
│ │ │ ├── IncludesConfiguration.java
│ │ │ ├── JsonSchemaConfiguration.java
│ │ │ ├── MappingConfiguration.java
│ │ │ ├── MissingPackageException.java
│ │ │ ├── ModuleConfiguration.java
│ │ │ ├── ModulesConfiguration.java
│ │ │ ├── ModulesConfigurationUnmarshaller.java
│ │ │ ├── OutputConfiguration.java
│ │ │ ├── PackageMapping.java
│ │ │ ├── PluginCustomizations.java
│ │ │ ├── PropertyInfoConfiguration.java
│ │ │ ├── TypeInfoConfiguration.java
│ │ │ ├── exception
│ │ │ │ ├── AmbiguousMappingNameException.java
│ │ │ │ ├── AmbiguousPackageMappingNameException.java
│ │ │ │ ├── AmbiguousPackageSchemaIdException.java
│ │ │ │ ├── ConfigurationException.java
│ │ │ │ ├── ConfigurationUnmarshallingException.java
│ │ │ │ ├── MissingMappinWithNameException.java
│ │ │ │ ├── MissingMappingWithIdException.java
│ │ │ │ └── UnsupportedNamingException.java
│ │ │ └── package-info.java
│ │ │ ├── context
│ │ │ ├── DefaultJsonixContext.java
│ │ │ └── JsonixContext.java
│ │ │ ├── definition
│ │ │ ├── ContainmentType.java
│ │ │ ├── JsonSchema.java
│ │ │ ├── Mapping.java
│ │ │ ├── MappingDependency.java
│ │ │ ├── Module.java
│ │ │ ├── Modules.java
│ │ │ └── Output.java
│ │ │ ├── execution
│ │ │ └── JsonixInvoker.java
│ │ │ ├── json
│ │ │ └── util
│ │ │ │ ├── JsonBuilderUtils.java
│ │ │ │ └── JsonObjectBuildable.java
│ │ │ ├── jsonschema
│ │ │ ├── JsonSchemaBuilder.java
│ │ │ ├── JsonSchemaConstants.java
│ │ │ └── JsonSchemaKeywords.java
│ │ │ ├── naming
│ │ │ ├── CompactNaming.java
│ │ │ ├── Naming.java
│ │ │ └── StandardNaming.java
│ │ │ ├── settings
│ │ │ ├── LogLevelSetting.java
│ │ │ ├── NamingSetting.java
│ │ │ └── Settings.java
│ │ │ ├── slf4j
│ │ │ ├── LevelledLocationAwareLoggerWrapper.java
│ │ │ ├── LevelledLoggerFactoryWrapper.java
│ │ │ └── LevelledLoggerWrapper.java
│ │ │ ├── xjc
│ │ │ └── plugin
│ │ │ │ ├── CodeModelJsonStructureWriter.java
│ │ │ │ ├── CodeModelProgramWriter.java
│ │ │ │ └── JsonixPlugin.java
│ │ │ └── xml
│ │ │ ├── bind
│ │ │ └── model
│ │ │ │ └── FooBar.java
│ │ │ ├── sax
│ │ │ └── LocatorUtils.java
│ │ │ └── xsom
│ │ │ ├── CollectEnumerationValuesVisitor.java
│ │ │ ├── CollectSimpleTypeNamesVisitor.java
│ │ │ ├── MultiplicityCounterNG.java
│ │ │ └── ParticleMultiplicityCounter.java
│ └── resources
│ │ └── META-INF
│ │ └── services
│ │ └── com.sun.tools.xjc.Plugin
│ └── test
│ ├── java
│ └── org
│ │ └── hisrc
│ │ ├── jsonix
│ │ ├── configuration
│ │ │ └── tests
│ │ │ │ └── AmbiguousPackageMappingExceptionTest.java
│ │ ├── definition
│ │ │ └── tests
│ │ │ │ └── ContainmentTypeTest.java
│ │ ├── json
│ │ │ └── util
│ │ │ │ └── tests
│ │ │ │ └── JsonBuilderUtilsTest.java
│ │ ├── settings
│ │ │ └── tests
│ │ │ │ └── SettingsTest.java
│ │ ├── xjc
│ │ │ └── plugin
│ │ │ │ └── tests
│ │ │ │ ├── JsonixPluginTest.java
│ │ │ │ ├── basic
│ │ │ │ └── JsonixPluginZeroTest.java
│ │ │ │ └── jsonschemas
│ │ │ │ └── JsonixPluginJsonSchemasChoiceTest.java
│ │ └── xml
│ │ │ ├── bind
│ │ │ └── tests
│ │ │ │ ├── AType.java
│ │ │ │ ├── BType.java
│ │ │ │ └── EmptyXmlElementTest.java
│ │ │ └── xsom
│ │ │ └── tests
│ │ │ ├── MultiplicityCounterAnyAttribute01Test.java
│ │ │ ├── MultiplicityCounterAnyElement01Test.java
│ │ │ ├── MultiplicityCounterAttribute01Test.java
│ │ │ ├── MultiplicityCounterElement01Test.java
│ │ │ ├── MultiplicityCounterElementRef01Test.java
│ │ │ ├── MultiplicityCounterElementRefs01Test.java
│ │ │ ├── MultiplicityCounterElements01Test.java
│ │ │ └── MultiplicityCounterValue01Test.java
│ │ └── xml
│ │ └── bind
│ │ └── model
│ │ └── util
│ │ └── MModelInfoLoader.java
│ └── resources
│ ├── basic
│ └── zero
│ │ └── schema.xsd
│ ├── catalog.cat
│ ├── filter-1.1.0-binding.xjb
│ ├── filter
│ └── 1.0.0
│ │ ├── expr.xsd
│ │ └── filter.xsd
│ ├── gml
│ └── 2.1.2
│ │ └── geometry.xsd
│ ├── jsonschema
│ ├── choice
│ │ ├── elements01.xsd
│ │ └── elements02.xsd
│ └── minmaxoccurs
│ │ ├── anyAttribute01.xsd
│ │ ├── anyElement01.xsd
│ │ ├── attribute01.xsd
│ │ ├── element01.xsd
│ │ ├── elementRef01.xsd
│ │ ├── elementRefs01.xsd
│ │ ├── elements01.xsd
│ │ ├── schema02.xsd
│ │ └── value01.xsd
│ ├── ogc
│ ├── context-v_1_1_0.xjb
│ ├── context
│ │ └── 1.1.0
│ │ │ ├── collection.xsd
│ │ │ ├── context.xsd
│ │ │ ├── ort.xsd
│ │ │ └── wmcAll.xsd
│ ├── filter
│ │ ├── 1.0.0
│ │ │ ├── expr.xsd
│ │ │ ├── filter.xsd
│ │ │ └── filterCapabilities.xsd
│ │ ├── 1.0.20
│ │ │ └── sort.xsd
│ │ ├── 1.1.0
│ │ │ ├── examples
│ │ │ │ ├── Filter_Capabilities_Sample.xml
│ │ │ │ └── Filter_Capabilities_Small_Sample.xml
│ │ │ ├── expr.xsd
│ │ │ ├── filter.xsd
│ │ │ ├── filterAll.xsd
│ │ │ ├── filterCapabilities.xsd
│ │ │ └── sort.xsd
│ │ └── 2.0
│ │ │ ├── expr.xsd
│ │ │ ├── filter.xsd
│ │ │ ├── filterAll.xsd
│ │ │ ├── filterCapabilities.xsd
│ │ │ ├── query.xsd
│ │ │ └── sort.xsd
│ ├── gml
│ │ ├── 2.1.2
│ │ │ ├── feature.xsd
│ │ │ ├── geometry.xsd
│ │ │ └── gml.xsd
│ │ └── 3.1.1
│ │ │ ├── base
│ │ │ ├── basicTypes.xsd
│ │ │ ├── coordinateOperations.xsd
│ │ │ ├── coordinateReferenceSystems.xsd
│ │ │ ├── coordinateSystems.xsd
│ │ │ ├── coverage.xsd
│ │ │ ├── dataQuality.xsd
│ │ │ ├── datums.xsd
│ │ │ ├── defaultStyle.xsd
│ │ │ ├── dictionary.xsd
│ │ │ ├── direction.xsd
│ │ │ ├── dynamicFeature.xsd
│ │ │ ├── feature.xsd
│ │ │ ├── geometryAggregates.xsd
│ │ │ ├── geometryBasic0d1d.xsd
│ │ │ ├── geometryBasic2d.xsd
│ │ │ ├── geometryComplexes.xsd
│ │ │ ├── geometryPrimitives.xsd
│ │ │ ├── gml.xsd
│ │ │ ├── gmlBase.xsd
│ │ │ ├── grids.xsd
│ │ │ ├── measures.xsd
│ │ │ ├── observation.xsd
│ │ │ ├── referenceSystems.xsd
│ │ │ ├── temporal.xsd
│ │ │ ├── temporalReferenceSystems.xsd
│ │ │ ├── temporalTopology.xsd
│ │ │ ├── topology.xsd
│ │ │ ├── units.xsd
│ │ │ └── valueObjects.xsd
│ │ │ ├── gml_3_1_1-ReadMe.txt
│ │ │ ├── profiles
│ │ │ ├── CommonCRSs
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── Examples
│ │ │ │ │ │ ├── column.xml
│ │ │ │ │ │ ├── compoundCRS#2.xml
│ │ │ │ │ │ ├── crsDictionaryv1.xml
│ │ │ │ │ │ ├── exampleCompoundCRS.xml
│ │ │ │ │ │ ├── exampleConversion.xml
│ │ │ │ │ │ ├── exampleConversionSimplified.xml
│ │ │ │ │ │ ├── exampleGeographicCRS.xml
│ │ │ │ │ │ ├── exampleGeographicCRSsimplified.xml
│ │ │ │ │ │ ├── exampleProjectedCRS.xml
│ │ │ │ │ │ ├── exampleProjectedCRSsimplified.xml
│ │ │ │ │ │ ├── exampleVerticalCRS.xml
│ │ │ │ │ │ ├── exampleVerticalCRSsimplified.xml
│ │ │ │ │ │ ├── grid2dSquareCRS.xml
│ │ │ │ │ │ ├── row.xml
│ │ │ │ │ │ ├── transverseMercatorGeneral#2.xml
│ │ │ │ │ │ ├── transverseMercatorMethod#1.xml
│ │ │ │ │ │ └── transverse_mercator_application_schema
│ │ │ │ │ │ │ ├── transverseMercator.xsd
│ │ │ │ │ │ │ └── transverseMercatorSpecific#2.xml
│ │ │ │ │ ├── coordinateOperations.xsd
│ │ │ │ │ ├── coordinateReferenceSystems.xsd
│ │ │ │ │ ├── coordinateSystems.xsd
│ │ │ │ │ ├── dataQuality.xsd
│ │ │ │ │ ├── datums.xsd
│ │ │ │ │ └── gmlCommonCRSsProfile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── CrsSupport
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── crsSupportProfile.xsd
│ │ │ │ │ ├── dictionary.xsd
│ │ │ │ │ ├── geometryBasic0d1d.xsd
│ │ │ │ │ ├── geometryBasic2d.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ ├── gmlCrsSupportProfile.xsd
│ │ │ │ │ ├── measures.xsd
│ │ │ │ │ ├── referenceSystems.xsd
│ │ │ │ │ └── units.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── GridCRSs
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── Examples
│ │ │ │ │ │ ├── exampleImageCRSpixelCenter.xml
│ │ │ │ │ │ ├── exampleImageCRSpixelCorner.xml
│ │ │ │ │ │ ├── exampleMethodEPSG9624.xml
│ │ │ │ │ │ ├── exampleMethodGridElevation.xml
│ │ │ │ │ │ ├── exampleMethodRSM.xml
│ │ │ │ │ │ ├── gridSpacing.xml
│ │ │ │ │ │ ├── imageCRSpixelCenter.xml
│ │ │ │ │ │ ├── imageCRSpixelCorner.xml
│ │ │ │ │ │ ├── imageDatumPixelCenter.xml
│ │ │ │ │ │ ├── imageDatumPixelCorner.xml
│ │ │ │ │ │ ├── templateConcatenatedOperation.xml
│ │ │ │ │ │ ├── templateConcatenatedOperationSimplified.xml
│ │ │ │ │ │ ├── templateGeorectifiedGridCRS.xml
│ │ │ │ │ │ ├── templateGeorectifiedGridCRSsimplified.xml
│ │ │ │ │ │ ├── templateGeoreferencingTransformation.xml
│ │ │ │ │ │ ├── templateGeoreferencingTransformationSimplified.xml
│ │ │ │ │ │ ├── templateGridElevationTransformation.xml
│ │ │ │ │ │ ├── templateGridElevationTransformationSimplified.xml
│ │ │ │ │ │ ├── templateImageCRS.xml
│ │ │ │ │ │ └── templateImageCRSsimplified.xml
│ │ │ │ │ ├── coordinateOperations.xsd
│ │ │ │ │ ├── coordinateReferenceSystems.xsd
│ │ │ │ │ ├── dataQuality.xsd
│ │ │ │ │ ├── datums.xsd
│ │ │ │ │ └── gmlGridCRSsProfile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── SimpleDictionary
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── Examples
│ │ │ │ │ │ ├── axisDirection.xml
│ │ │ │ │ │ ├── codeListCityGML.xml
│ │ │ │ │ │ ├── dataTypesDictionary.xml
│ │ │ │ │ │ ├── derivedCRSType.xml
│ │ │ │ │ │ ├── pixelInCell.xml
│ │ │ │ │ │ ├── rangeMeaning.xml
│ │ │ │ │ │ └── verticalDatumType.xml
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── dictionary.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ └── gmlSimpleDictionaryProfile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── geoshape
│ │ │ │ ├── 0.0.9
│ │ │ │ │ ├── GML-pidf-lo-shape.xsd
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── geometryBasic0d1d.xsd
│ │ │ │ │ ├── geometryBasic2d.xsd
│ │ │ │ │ ├── geometryPrimitives.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ └── measures.xsd
│ │ │ │ ├── 0.1.0
│ │ │ │ │ ├── GML-pidf-lo-shape.xsd
│ │ │ │ │ ├── ReadMe.txt
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── geometryBasic0d1d.xsd
│ │ │ │ │ ├── geometryBasic2d.xsd
│ │ │ │ │ ├── geometryPrimitives.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ └── measures.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── gmlJP2Profile
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── annotation
│ │ │ │ │ │ ├── annotation.xml
│ │ │ │ │ │ ├── annotation.xsd
│ │ │ │ │ │ ├── curveOfInterest.xml
│ │ │ │ │ │ ├── featureOfInterest.xml
│ │ │ │ │ │ ├── pointOfInterest.xml
│ │ │ │ │ │ └── regionOfInterest.xml
│ │ │ │ │ ├── examples
│ │ │ │ │ │ ├── landsat7Annotation.xsd
│ │ │ │ │ │ ├── landsat7Coverage.xsd
│ │ │ │ │ │ ├── landsat7Instance.xml
│ │ │ │ │ │ ├── minimalInstance.xml
│ │ │ │ │ │ ├── r3dCoverage.xsd
│ │ │ │ │ │ └── r3dDemOrthoInstance.xml
│ │ │ │ │ └── gmlJP2Profile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ └── gmlsfProfile
│ │ │ │ ├── 1.0.0
│ │ │ │ ├── examples
│ │ │ │ │ ├── exampleHydrographySchema.xsd
│ │ │ │ │ ├── exampleReporterSchema.xsd
│ │ │ │ │ └── exampleRoads_BtsSchema.xsd
│ │ │ │ ├── gmlsf.xsd
│ │ │ │ ├── gmlsf2.xsd
│ │ │ │ └── gmlsfLevels.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ └── smil
│ │ │ ├── smil20-language.xsd
│ │ │ └── smil20.xsd
│ ├── ows-v_1_1_0.xjb
│ ├── ows
│ │ ├── 1.1.0
│ │ │ ├── Examples
│ │ │ │ ├── exampleCapabilities.xsd
│ │ │ │ ├── exampleCapabilities1.xml
│ │ │ │ ├── exampleConstraint1.xml
│ │ │ │ ├── exampleExceptionReport1.xml
│ │ │ │ ├── exampleExceptionReport2.xml
│ │ │ │ ├── exampleGeneralBox2.xml
│ │ │ │ ├── exampleGetCapabilities2.xml
│ │ │ │ ├── exampleOperationsMetadata.xml
│ │ │ │ └── exampleWGS84Box2.xml
│ │ │ ├── ows19115subset.xsd
│ │ │ ├── owsAll.xsd
│ │ │ ├── owsCommon.xsd
│ │ │ ├── owsContents.xsd
│ │ │ ├── owsDataIdentification.xsd
│ │ │ ├── owsDomainType.xsd
│ │ │ ├── owsExceptionReport.xsd
│ │ │ ├── owsGetCapabilities.xsd
│ │ │ ├── owsGetResourceByID.xsd
│ │ │ ├── owsInputOutputData.xsd
│ │ │ ├── owsManifest.xsd
│ │ │ ├── owsOperationsMetadata.xsd
│ │ │ ├── owsServiceIdentification.xsd
│ │ │ └── owsServiceProvider.xsd
│ │ └── ReadMe.txt
│ ├── sld
│ │ └── 1.0.0
│ │ │ ├── StyledLayerDescriptor.xsd
│ │ │ └── example-sld.xml
│ ├── wfs-v_2_0.xjb
│ ├── wfs
│ │ └── 2.0
│ │ │ └── wfs.xsd
│ └── wps
│ │ ├── 1.0.0
│ │ ├── common
│ │ │ ├── DescriptionType.xsd
│ │ │ ├── ProcessBriefType.xsd
│ │ │ ├── ProcessVersion.xsd
│ │ │ ├── RequestBaseType.xsd
│ │ │ ├── ResponseBaseType.xsd
│ │ │ └── WSDL.xsd
│ │ ├── examples
│ │ │ ├── 10_wpsGetCapabilities_request.xml
│ │ │ ├── 10_wpsGetCapabilities_request_SOAP.xml
│ │ │ ├── 20_wpsGetCapabilities_response.xml
│ │ │ ├── 20_wpsGetCapabilities_response_SOAP.xml
│ │ │ ├── 30_wpsDescribeProcess_request.xml
│ │ │ ├── 30_wpsDescribeProcess_request_SOAP.xml
│ │ │ ├── 40_wpsDescribeProcess_response-extended.xml
│ │ │ ├── 40_wpsDescribeProcess_response.xml
│ │ │ ├── 50_wpsExecute_request_RawDataOutput.xml
│ │ │ ├── 51_wpsExecute_request-extended_ResponseDocument.xml
│ │ │ ├── 51_wpsExecute_request_ResponseDocument.xml
│ │ │ ├── 52_wpsExecute_request_ResponseDocument.xml
│ │ │ ├── 53_wpsExecute_request_ComplexValue.xml
│ │ │ ├── 62_wpsExecute_response.xml
│ │ │ ├── 90_wpsExceptionReport.xml
│ │ │ ├── MyComplexValueSchema.xsd
│ │ │ └── example_service.wsdl
│ │ ├── wpsAll.xsd
│ │ ├── wpsDescribeProcess_request.xsd
│ │ ├── wpsDescribeProcess_response.xsd
│ │ ├── wpsExecute_request.xsd
│ │ ├── wpsExecute_response.xsd
│ │ ├── wpsGetCapabilities_request.xsd
│ │ └── wpsGetCapabilities_response.xsd
│ │ └── ReadMe.txt
│ ├── ows
│ └── 1.1.0
│ │ ├── Examples
│ │ ├── exampleCapabilities.xsd
│ │ ├── exampleCapabilities1.xml
│ │ ├── exampleConstraint1.xml
│ │ ├── exampleExceptionReport1.xml
│ │ ├── exampleExceptionReport2.xml
│ │ ├── exampleGeneralBox2.xml
│ │ ├── exampleGetCapabilities2.xml
│ │ ├── exampleOperationsMetadata.xml
│ │ └── exampleWGS84Box2.xml
│ │ ├── ows19115subset.xsd
│ │ ├── owsAll.xsd
│ │ ├── owsCommon.xsd
│ │ ├── owsContents.xsd
│ │ ├── owsDataIdentification.xsd
│ │ ├── owsDomainType.xsd
│ │ ├── owsExceptionReport.xsd
│ │ ├── owsGetCapabilities.xsd
│ │ ├── owsGetResourceByID.xsd
│ │ ├── owsInputOutputData.xsd
│ │ ├── owsManifest.xsd
│ │ ├── owsOperationsMetadata.xsd
│ │ ├── owsServiceIdentification.xsd
│ │ └── owsServiceProvider.xsd
│ ├── sld
│ └── 1.0.0
│ │ └── StyledLayerDescriptor.xsd
│ ├── w3c
│ ├── 1999
│ │ └── xlink.xsd
│ └── 2001
│ │ └── xml.xsd
│ ├── wps-1.0.0-binding.xjb
│ ├── xlink
│ └── 1.0.0
│ │ ├── ReadMe.txt
│ │ └── xlinks.xsd
│ └── xml
│ └── 1.0
│ └── xml.xsd
├── demos
└── po-npm
│ ├── .gitignore
│ ├── README.md
│ ├── bindings
│ └── bindings.xjb
│ ├── mappings
│ ├── PurchaseOrder.compact.js
│ ├── PurchaseOrder.jsonschema
│ └── PurchaseOrder.standard.js
│ ├── package.json
│ └── schemas
│ └── purchaseorder.xsd
├── dist
├── .gitignore
└── pom.xml
├── full-build-1.6.bat
├── full
├── .gitignore
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── org
│ │ │ └── hisrc
│ │ │ └── jsonix
│ │ │ ├── JsonixMain.java
│ │ │ ├── TargetDirectoryJsonStructureWriter.java
│ │ │ └── TargetDirectoryProgramWriter.java
│ └── resources
│ │ ├── .placeholder
│ │ └── simplelogger.properties
│ └── test
│ ├── java
│ └── org
│ │ └── hisrc
│ │ └── jsonix
│ │ ├── samples
│ │ └── zero
│ │ │ └── ZeroMainTest.java
│ │ └── test
│ │ └── JsonixMainTest.java
│ └── resources
│ ├── catalog.cat
│ ├── ogc
│ ├── context-v_1_1_0.xjb
│ ├── context
│ │ └── 1.1.0
│ │ │ ├── collection.xsd
│ │ │ ├── context.xsd
│ │ │ ├── ort.xsd
│ │ │ └── wmcAll.xsd
│ ├── filter-v_1_1_0.xjb
│ ├── filter
│ │ ├── 1.0.0
│ │ │ ├── expr.xsd
│ │ │ ├── filter.xsd
│ │ │ └── filterCapabilities.xsd
│ │ ├── 1.0.20
│ │ │ └── sort.xsd
│ │ └── 1.1.0
│ │ │ ├── examples
│ │ │ ├── Filter_Capabilities_Sample.xml
│ │ │ └── Filter_Capabilities_Small_Sample.xml
│ │ │ ├── expr.xsd
│ │ │ ├── filter.xsd
│ │ │ ├── filterAll.xsd
│ │ │ ├── filterCapabilities.xsd
│ │ │ └── sort.xsd
│ ├── gml
│ │ ├── 2.1.2
│ │ │ ├── feature.xsd
│ │ │ ├── geometry.xsd
│ │ │ └── gml.xsd
│ │ └── 3.1.1
│ │ │ ├── base
│ │ │ ├── basicTypes.xsd
│ │ │ ├── coordinateOperations.xsd
│ │ │ ├── coordinateReferenceSystems.xsd
│ │ │ ├── coordinateSystems.xsd
│ │ │ ├── coverage.xsd
│ │ │ ├── dataQuality.xsd
│ │ │ ├── datums.xsd
│ │ │ ├── defaultStyle.xsd
│ │ │ ├── dictionary.xsd
│ │ │ ├── direction.xsd
│ │ │ ├── dynamicFeature.xsd
│ │ │ ├── feature.xsd
│ │ │ ├── geometryAggregates.xsd
│ │ │ ├── geometryBasic0d1d.xsd
│ │ │ ├── geometryBasic2d.xsd
│ │ │ ├── geometryComplexes.xsd
│ │ │ ├── geometryPrimitives.xsd
│ │ │ ├── gml.xsd
│ │ │ ├── gmlBase.xsd
│ │ │ ├── grids.xsd
│ │ │ ├── measures.xsd
│ │ │ ├── observation.xsd
│ │ │ ├── referenceSystems.xsd
│ │ │ ├── temporal.xsd
│ │ │ ├── temporalReferenceSystems.xsd
│ │ │ ├── temporalTopology.xsd
│ │ │ ├── topology.xsd
│ │ │ ├── units.xsd
│ │ │ └── valueObjects.xsd
│ │ │ ├── gml_3_1_1-ReadMe.txt
│ │ │ ├── profiles
│ │ │ ├── CommonCRSs
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── Examples
│ │ │ │ │ │ ├── column.xml
│ │ │ │ │ │ ├── compoundCRS#2.xml
│ │ │ │ │ │ ├── crsDictionaryv1.xml
│ │ │ │ │ │ ├── exampleCompoundCRS.xml
│ │ │ │ │ │ ├── exampleConversion.xml
│ │ │ │ │ │ ├── exampleConversionSimplified.xml
│ │ │ │ │ │ ├── exampleGeographicCRS.xml
│ │ │ │ │ │ ├── exampleGeographicCRSsimplified.xml
│ │ │ │ │ │ ├── exampleProjectedCRS.xml
│ │ │ │ │ │ ├── exampleProjectedCRSsimplified.xml
│ │ │ │ │ │ ├── exampleVerticalCRS.xml
│ │ │ │ │ │ ├── exampleVerticalCRSsimplified.xml
│ │ │ │ │ │ ├── grid2dSquareCRS.xml
│ │ │ │ │ │ ├── row.xml
│ │ │ │ │ │ ├── transverseMercatorGeneral#2.xml
│ │ │ │ │ │ ├── transverseMercatorMethod#1.xml
│ │ │ │ │ │ └── transverse_mercator_application_schema
│ │ │ │ │ │ │ ├── transverseMercator.xsd
│ │ │ │ │ │ │ └── transverseMercatorSpecific#2.xml
│ │ │ │ │ ├── coordinateOperations.xsd
│ │ │ │ │ ├── coordinateReferenceSystems.xsd
│ │ │ │ │ ├── coordinateSystems.xsd
│ │ │ │ │ ├── dataQuality.xsd
│ │ │ │ │ ├── datums.xsd
│ │ │ │ │ └── gmlCommonCRSsProfile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── CrsSupport
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── crsSupportProfile.xsd
│ │ │ │ │ ├── dictionary.xsd
│ │ │ │ │ ├── geometryBasic0d1d.xsd
│ │ │ │ │ ├── geometryBasic2d.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ ├── gmlCrsSupportProfile.xsd
│ │ │ │ │ ├── measures.xsd
│ │ │ │ │ ├── referenceSystems.xsd
│ │ │ │ │ └── units.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── GridCRSs
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── Examples
│ │ │ │ │ │ ├── exampleImageCRSpixelCenter.xml
│ │ │ │ │ │ ├── exampleImageCRSpixelCorner.xml
│ │ │ │ │ │ ├── exampleMethodEPSG9624.xml
│ │ │ │ │ │ ├── exampleMethodGridElevation.xml
│ │ │ │ │ │ ├── exampleMethodRSM.xml
│ │ │ │ │ │ ├── gridSpacing.xml
│ │ │ │ │ │ ├── imageCRSpixelCenter.xml
│ │ │ │ │ │ ├── imageCRSpixelCorner.xml
│ │ │ │ │ │ ├── imageDatumPixelCenter.xml
│ │ │ │ │ │ ├── imageDatumPixelCorner.xml
│ │ │ │ │ │ ├── templateConcatenatedOperation.xml
│ │ │ │ │ │ ├── templateConcatenatedOperationSimplified.xml
│ │ │ │ │ │ ├── templateGeorectifiedGridCRS.xml
│ │ │ │ │ │ ├── templateGeorectifiedGridCRSsimplified.xml
│ │ │ │ │ │ ├── templateGeoreferencingTransformation.xml
│ │ │ │ │ │ ├── templateGeoreferencingTransformationSimplified.xml
│ │ │ │ │ │ ├── templateGridElevationTransformation.xml
│ │ │ │ │ │ ├── templateGridElevationTransformationSimplified.xml
│ │ │ │ │ │ ├── templateImageCRS.xml
│ │ │ │ │ │ └── templateImageCRSsimplified.xml
│ │ │ │ │ ├── coordinateOperations.xsd
│ │ │ │ │ ├── coordinateReferenceSystems.xsd
│ │ │ │ │ ├── dataQuality.xsd
│ │ │ │ │ ├── datums.xsd
│ │ │ │ │ └── gmlGridCRSsProfile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── SimpleDictionary
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── Examples
│ │ │ │ │ │ ├── axisDirection.xml
│ │ │ │ │ │ ├── codeListCityGML.xml
│ │ │ │ │ │ ├── dataTypesDictionary.xml
│ │ │ │ │ │ ├── derivedCRSType.xml
│ │ │ │ │ │ ├── pixelInCell.xml
│ │ │ │ │ │ ├── rangeMeaning.xml
│ │ │ │ │ │ └── verticalDatumType.xml
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── dictionary.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ └── gmlSimpleDictionaryProfile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── geoshape
│ │ │ │ ├── 0.0.9
│ │ │ │ │ ├── GML-pidf-lo-shape.xsd
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── geometryBasic0d1d.xsd
│ │ │ │ │ ├── geometryBasic2d.xsd
│ │ │ │ │ ├── geometryPrimitives.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ └── measures.xsd
│ │ │ │ ├── 0.1.0
│ │ │ │ │ ├── GML-pidf-lo-shape.xsd
│ │ │ │ │ ├── ReadMe.txt
│ │ │ │ │ ├── basicTypes.xsd
│ │ │ │ │ ├── geometryBasic0d1d.xsd
│ │ │ │ │ ├── geometryBasic2d.xsd
│ │ │ │ │ ├── geometryPrimitives.xsd
│ │ │ │ │ ├── gmlBase.xsd
│ │ │ │ │ └── measures.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ ├── gmlJP2Profile
│ │ │ │ ├── 1.0.0
│ │ │ │ │ ├── annotation
│ │ │ │ │ │ ├── annotation.xml
│ │ │ │ │ │ ├── annotation.xsd
│ │ │ │ │ │ ├── curveOfInterest.xml
│ │ │ │ │ │ ├── featureOfInterest.xml
│ │ │ │ │ │ ├── pointOfInterest.xml
│ │ │ │ │ │ └── regionOfInterest.xml
│ │ │ │ │ ├── examples
│ │ │ │ │ │ ├── landsat7Annotation.xsd
│ │ │ │ │ │ ├── landsat7Coverage.xsd
│ │ │ │ │ │ ├── landsat7Instance.xml
│ │ │ │ │ │ ├── minimalInstance.xml
│ │ │ │ │ │ ├── r3dCoverage.xsd
│ │ │ │ │ │ └── r3dDemOrthoInstance.xml
│ │ │ │ │ └── gmlJP2Profile.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ └── gmlsfProfile
│ │ │ │ ├── 1.0.0
│ │ │ │ ├── examples
│ │ │ │ │ ├── exampleHydrographySchema.xsd
│ │ │ │ │ ├── exampleReporterSchema.xsd
│ │ │ │ │ └── exampleRoads_BtsSchema.xsd
│ │ │ │ ├── gmlsf.xsd
│ │ │ │ ├── gmlsf2.xsd
│ │ │ │ └── gmlsfLevels.xsd
│ │ │ │ └── ReadMe.txt
│ │ │ └── smil
│ │ │ ├── smil20-language.xsd
│ │ │ └── smil20.xsd
│ ├── ows-v_1_1_0.xjb
│ ├── ows
│ │ ├── 1.1.0
│ │ │ ├── Examples
│ │ │ │ ├── exampleCapabilities.xsd
│ │ │ │ ├── exampleCapabilities1.xml
│ │ │ │ ├── exampleConstraint1.xml
│ │ │ │ ├── exampleExceptionReport1.xml
│ │ │ │ ├── exampleExceptionReport2.xml
│ │ │ │ ├── exampleGeneralBox2.xml
│ │ │ │ ├── exampleGetCapabilities2.xml
│ │ │ │ ├── exampleOperationsMetadata.xml
│ │ │ │ └── exampleWGS84Box2.xml
│ │ │ ├── ows19115subset.xsd
│ │ │ ├── owsAll.xsd
│ │ │ ├── owsCommon.xsd
│ │ │ ├── owsContents.xsd
│ │ │ ├── owsDataIdentification.xsd
│ │ │ ├── owsDomainType.xsd
│ │ │ ├── owsExceptionReport.xsd
│ │ │ ├── owsGetCapabilities.xsd
│ │ │ ├── owsGetResourceByID.xsd
│ │ │ ├── owsInputOutputData.xsd
│ │ │ ├── owsManifest.xsd
│ │ │ ├── owsOperationsMetadata.xsd
│ │ │ ├── owsServiceIdentification.xsd
│ │ │ └── owsServiceProvider.xsd
│ │ └── ReadMe.txt
│ ├── sld
│ │ └── 1.0.0
│ │ │ ├── StyledLayerDescriptor.xsd
│ │ │ └── example-sld.xml
│ ├── wps-v_1_0_0.xjb
│ └── wps
│ │ ├── 1.0.0
│ │ ├── common
│ │ │ ├── DescriptionType.xsd
│ │ │ ├── ProcessBriefType.xsd
│ │ │ ├── ProcessVersion.xsd
│ │ │ ├── RequestBaseType.xsd
│ │ │ ├── ResponseBaseType.xsd
│ │ │ └── WSDL.xsd
│ │ ├── examples
│ │ │ ├── 10_wpsGetCapabilities_request.xml
│ │ │ ├── 10_wpsGetCapabilities_request_SOAP.xml
│ │ │ ├── 20_wpsGetCapabilities_response.xml
│ │ │ ├── 20_wpsGetCapabilities_response_SOAP.xml
│ │ │ ├── 30_wpsDescribeProcess_request.xml
│ │ │ ├── 30_wpsDescribeProcess_request_SOAP.xml
│ │ │ ├── 40_wpsDescribeProcess_response-extended.xml
│ │ │ ├── 40_wpsDescribeProcess_response.xml
│ │ │ ├── 50_wpsExecute_request_RawDataOutput.xml
│ │ │ ├── 51_wpsExecute_request-extended_ResponseDocument.xml
│ │ │ ├── 51_wpsExecute_request_ResponseDocument.xml
│ │ │ ├── 52_wpsExecute_request_ResponseDocument.xml
│ │ │ ├── 53_wpsExecute_request_ComplexValue.xml
│ │ │ ├── 62_wpsExecute_response.xml
│ │ │ ├── 90_wpsExceptionReport.xml
│ │ │ ├── MyComplexValueSchema.xsd
│ │ │ └── example_service.wsdl
│ │ ├── wpsAll.xsd
│ │ ├── wpsDescribeProcess_request.xsd
│ │ ├── wpsDescribeProcess_response.xsd
│ │ ├── wpsExecute_request.xsd
│ │ ├── wpsExecute_response.xsd
│ │ ├── wpsGetCapabilities_request.xsd
│ │ └── wpsGetCapabilities_response.xsd
│ │ └── ReadMe.txt
│ ├── org
│ └── hisrc
│ │ └── jsonix
│ │ └── samples
│ │ └── zero
│ │ └── schema.xsd
│ └── w3c
│ ├── 1999
│ └── xlink.xsd
│ └── 2001
│ └── xml.xsd
├── install.bat
├── npm
├── .gitignore
├── .npmignore
├── README.md
├── jsonix-schema-compiler.js
├── package.json
├── pom.xml
└── src
│ └── main
│ └── npm
│ └── package.json
├── plugin
├── .gitignore
├── pom.xml
└── src
│ └── main
│ └── java
│ └── org
│ └── hisrc
│ └── jsonix
│ └── xjc
│ └── plugin
│ └── Dummy.java
├── pom.xml
├── qrelease.bat
├── release.bat
├── samples
├── po
│ ├── .gitignore
│ ├── pom.xml
│ ├── project-build.bat
│ ├── project-build.xml
│ ├── project-package.json
│ ├── project-pom.xml
│ └── src
│ │ ├── main
│ │ ├── javascript
│ │ │ └── index.js
│ │ └── resources
│ │ │ ├── bindings.xjb
│ │ │ └── purchaseorder.xsd
│ │ └── test
│ │ ├── javascript
│ │ ├── po-tests.js
│ │ └── tests.js
│ │ └── resources
│ │ └── po.xml
├── pom.xml
└── src
│ └── main
│ └── assembly
│ ├── ant-src.xml
│ ├── batch-src.xml
│ ├── maven-src.xml
│ └── npm-src.xml
└── tests
├── .gitignore
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
└── org.eclipse.m2e.core.prefs
├── filter
├── .gitignore
├── pom.xml
└── src
│ └── main
│ └── resources
│ ├── binding.xjb
│ ├── ows
│ └── 1.1.0
│ │ ├── ows19115subset.xsd
│ │ ├── owsAll.xsd
│ │ ├── owsCommon.xsd
│ │ ├── owsContents.xsd
│ │ ├── owsDataIdentification.xsd
│ │ ├── owsDomainType.xsd
│ │ ├── owsExceptionReport.xsd
│ │ ├── owsGetCapabilities.xsd
│ │ ├── owsGetResourceByID.xsd
│ │ ├── owsInputOutputData.xsd
│ │ ├── owsManifest.xsd
│ │ ├── owsOperationsMetadata.xsd
│ │ ├── owsServiceIdentification.xsd
│ │ └── owsServiceProvider.xsd
│ ├── wps
│ └── 1.0.0
│ │ ├── common
│ │ ├── DescriptionType.xsd
│ │ ├── ProcessBriefType.xsd
│ │ ├── ProcessVersion.xsd
│ │ ├── RequestBaseType.xsd
│ │ ├── ResponseBaseType.xsd
│ │ └── WSDL.xsd
│ │ ├── wpsAll.xsd
│ │ ├── wpsDescribeProcess_request.xsd
│ │ ├── wpsDescribeProcess_response.xsd
│ │ ├── wpsExecute_request.xsd
│ │ ├── wpsExecute_response.xsd
│ │ ├── wpsGetCapabilities_request.xsd
│ │ └── wpsGetCapabilities_response.xsd
│ ├── xlink
│ └── 1.0.0
│ │ ├── ReadMe.txt
│ │ └── xlinks.xsd
│ └── xml
│ ├── XMLSchema.dtd
│ ├── datatypes.dtd
│ └── xml.xsd
├── issues
├── .gitignore
├── pom.xml
└── src
│ ├── main
│ └── resources
│ │ ├── binding.xjb
│ │ └── schema.xsd
│ └── test
│ └── java
│ └── org
│ └── hisrc
│ └── jsonix
│ └── tests
│ └── issues
│ ├── CompileIssues.java
│ └── IssueGHC87Test.java
├── pom.xml
├── src
└── main
│ └── resources
│ └── .placeholder
├── wps
├── .gitignore
├── pom.xml
└── src
│ └── main
│ └── resources
│ ├── binding.xjb
│ ├── config.jsnx
│ ├── ows
│ └── 1.1.0
│ │ ├── ows19115subset.xsd
│ │ ├── owsAll.xsd
│ │ ├── owsCommon.xsd
│ │ ├── owsContents.xsd
│ │ ├── owsDataIdentification.xsd
│ │ ├── owsDomainType.xsd
│ │ ├── owsExceptionReport.xsd
│ │ ├── owsGetCapabilities.xsd
│ │ ├── owsGetResourceByID.xsd
│ │ ├── owsInputOutputData.xsd
│ │ ├── owsManifest.xsd
│ │ ├── owsOperationsMetadata.xsd
│ │ ├── owsServiceIdentification.xsd
│ │ └── owsServiceProvider.xsd
│ ├── wps
│ └── 1.0.0
│ │ ├── common
│ │ ├── DescriptionType.xsd
│ │ ├── ProcessBriefType.xsd
│ │ ├── ProcessVersion.xsd
│ │ ├── RequestBaseType.xsd
│ │ ├── ResponseBaseType.xsd
│ │ └── WSDL.xsd
│ │ ├── wpsAll.xsd
│ │ ├── wpsDescribeProcess_request.xsd
│ │ ├── wpsDescribeProcess_response.xsd
│ │ ├── wpsExecute_request.xsd
│ │ ├── wpsExecute_response.xsd
│ │ ├── wpsGetCapabilities_request.xsd
│ │ └── wpsGetCapabilities_response.xsd
│ ├── xlink
│ └── 1.0.0
│ │ ├── ReadMe.txt
│ │ └── xlinks.xsd
│ └── xml
│ ├── XMLSchema.dtd
│ ├── datatypes.dtd
│ └── xml.xsd
└── zero
├── .classpath
├── .gitignore
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
└── org.eclipse.m2e.core.prefs
├── pom.xml
└── src
├── main
├── javascript
│ └── org
│ │ └── hisrc
│ │ └── jsonix
│ │ └── tests
│ │ └── zero
│ │ ├── Data.js
│ │ └── ZeroTest.js
└── resources
│ ├── org
│ └── hisrc
│ │ └── jsonix
│ │ └── tests
│ │ └── zero
│ │ ├── ZeroTest.scripts
│ │ ├── ZeroTest.test.scripts
│ │ ├── ZeroTest.xhtml
│ │ ├── anyAttribute-0.xml
│ │ ├── anyElementLax-0.xml
│ │ ├── anyElementLax-1.xml
│ │ ├── attribute-0.xml
│ │ ├── base-0.xml
│ │ ├── element-0.xml
│ │ ├── elementRef-0.xml
│ │ ├── elementRef-1.xml
│ │ ├── elementRefMixed-0.xml
│ │ ├── elementRefs-0.xml
│ │ ├── elements-0.xml
│ │ ├── extended-0.xml
│ │ ├── simpleTypes-0.xml
│ │ ├── string-0.xml
│ │ └── value-0.xml
│ └── schema.xsd
└── test
├── java
└── org
│ └── hisrc
│ └── jsonix
│ └── tests
│ └── zero
│ ├── RunZeroPlugin.java
│ └── ZeroTest.java
└── resources
└── log4j.properties
/.gitignore:
--------------------------------------------------------------------------------
1 | .classpath
2 | .project
3 | .settings/
4 |
5 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | jsonix-schema-compiler-project
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014, Alexey Valikov.
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are met:
6 |
7 | * Redistributions of source code must retain the above copyright notice, this
8 | list of conditions and the following disclaimer.
9 |
10 | * Redistributions in binary form must reproduce the above copyright notice,
11 | this list of conditions and the following disclaimer in the documentation
12 | and/or other materials provided with the distribution.
13 |
14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 |
25 |
--------------------------------------------------------------------------------
/compiler/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | .project
3 | .classpath
4 | .settings
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/JsonixConstants.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix;
2 |
3 | public class JsonixConstants {
4 |
5 | // TODO move to constants
6 | public static final String DEFAULT_SCOPED_NAME_DELIMITER = ".";
7 | private JsonixConstants() {
8 | }
9 |
10 | public static String NAME_PROPERTY_NAME = "name";
11 | public static String VALUE_PROPERTY_NAME = "value";
12 | }
13 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/analysis/DefaultInfoVertexVisitor.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.analysis;
2 |
3 | public class DefaultInfoVertexVisitor implements InfoVertexVisitor {
4 |
5 | @Override
6 | public V visitPackageInfoVertex(PackageInfoVertex vertex) {
7 | return null;
8 | }
9 |
10 | @Override
11 | public V visitTypeInfoVertex(TypeInfoVertex vertex) {
12 | return null;
13 | }
14 |
15 | @Override
16 | public V visitElementInfoVertex(ElementInfoVertex vertex) {
17 | return null;
18 | }
19 |
20 | @Override
21 | public V visitPropertyInfoVertex(PropertyInfoVertex vertex) {
22 | return null;
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/analysis/DependencyEdge.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.analysis;
2 |
3 | public class DependencyEdge {
4 |
5 | private DependencyType type;
6 |
7 | public DependencyEdge(DependencyType type) {
8 | this.type = type;
9 | }
10 |
11 | public DependencyType getType() {
12 | return type;
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/analysis/InfoVertex.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.analysis;
2 |
3 | import org.jvnet.jaxb2_commons.xml.bind.model.MPackageInfo;
4 |
5 | public abstract class InfoVertex {
6 |
7 | public abstract MPackageInfo getPackageInfo();
8 |
9 | public abstract V accept(InfoVertexVisitor visitor);
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/analysis/InfoVertexVisitor.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.analysis;
2 |
3 | public interface InfoVertexVisitor {
4 |
5 | public V visitPackageInfoVertex(PackageInfoVertex vertex);
6 |
7 | public V visitTypeInfoVertex(TypeInfoVertex vertex);
8 |
9 | public V visitElementInfoVertex(ElementInfoVertex vertex);
10 |
11 | public V visitPropertyInfoVertex(PropertyInfoVertex vertex);
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/args4j/Messages.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.args4j;
2 |
3 | import java.text.MessageFormat;
4 | import java.util.Locale;
5 | import java.util.ResourceBundle;
6 |
7 | import org.kohsuke.args4j.Localizable;
8 |
9 | public enum Messages implements Localizable {
10 | MISSING_OPERAND, UNDEFINED_OPTION, NO_ARGUMENT_ALLOWED, REQUIRED_OPTION_MISSING, TOO_MANY_ARGUMENTS, REQUIRED_ARGUMENT_MISSING, METADATA_ERROR, MULTIPLE_USE_OF_ARGUMENT, MULTIPLE_USE_OF_OPTION, UNKNOWN_HANDLER, NO_OPTIONHANDLER, NO_CONSTRUCTOR_ON_HANDLER, REQUIRES_OPTION_MISSING, FORBIDDEN_OPTION_PRESENT, NO_SUCH_FILE;
11 |
12 | private static final String RESOURCE_BUNDLE_BASE_NAME = "org.kohsuke.args4j.Messages";
13 |
14 | public String formatWithLocale(Locale locale, Object... args) {
15 | ResourceBundle localized = ResourceBundle.getBundle(
16 | RESOURCE_BUNDLE_BASE_NAME, locale);
17 | return MessageFormat.format(localized.getString(name()), args);
18 | }
19 |
20 | public String format(Object... args) {
21 | return formatWithLocale(Locale.getDefault(), args);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/JsonStructureWriter.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema;
2 |
3 | import javax.json.JsonStructure;
4 |
5 | import org.hisrc.jsonix.definition.Module;
6 |
7 | public interface JsonStructureWriter {
8 |
9 | public void writeJsonStructure(Module module, JsonStructure schema,
10 | String fileName);
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/XmlSchemaJsonSchemaConstants.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema;
2 |
3 | import org.hisrc.jsonix.jsonschema.JsonSchemaKeywords;
4 | import org.jvnet.jaxb2_commons.xmlschema.XmlSchemaConstants;
5 |
6 | public class XmlSchemaJsonSchemaConstants {
7 |
8 | private XmlSchemaJsonSchemaConstants() {
9 | }
10 |
11 | public static final String SCHEMA_ID = JsonixJsonSchemaConstants.JSONIX_JSONSCHEMAS_BASE_URI
12 | + "/w3c/2001/XMLSchema.jsonschema#";
13 |
14 | public static final String STRING_TYPE_INFO_SCHEMA_REF = SCHEMA_ID + "/" + JsonSchemaKeywords.definitions + "/"
15 | + XmlSchemaConstants.STRING.getLocalPart();
16 | public static final String QNAME_TYPE_INFO_SCHEMA_REF = SCHEMA_ID + "/" + JsonSchemaKeywords.definitions + "/"
17 | + XmlSchemaConstants.QNAME.getLocalPart();
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/ClassRefProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo;
2 |
3 | import org.apache.commons.lang3.Validate;
4 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
5 | import org.hisrc.jsonix.jsonschema.JsonSchemaBuilder;
6 | import org.jvnet.jaxb2_commons.xml.bind.model.MClassRef;
7 |
8 | public class ClassRefProducer extends PackagedTypeInfoProducer {
9 |
10 | private MClassRef classRef;
11 |
12 | public ClassRefProducer(MClassRef classRef) {
13 | super(Validate.notNull(classRef));
14 | this.classRef = classRef;
15 | }
16 |
17 | @Override
18 | public JsonSchemaBuilder compile(JsonSchemaMappingCompiler mappingCompiler) {
19 | throw new UnsupportedOperationException();
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/TypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo;
2 |
3 | import javax.json.JsonValue;
4 |
5 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
6 | import org.hisrc.jsonix.jsonschema.JsonSchemaBuilder;
7 |
8 | import com.sun.xml.xsom.XmlString;
9 |
10 | public interface TypeInfoProducer {
11 |
12 | public JsonSchemaBuilder compile(JsonSchemaMappingCompiler mappingCompiler);
13 |
14 | public JsonSchemaBuilder createTypeInfoSchemaRef(JsonSchemaMappingCompiler mappingCompiler);
15 |
16 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, XmlString item);
17 |
18 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, String item);
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/Base64BinaryTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import javax.xml.bind.DatatypeConverter;
4 |
5 | import org.jvnet.jaxb2_commons.xmlschema.XmlSchemaConstants;
6 |
7 | public class Base64BinaryTypeInfoProducer extends BinaryTypeInfoProducer {
8 |
9 | public Base64BinaryTypeInfoProducer() {
10 | super(XmlSchemaConstants.BASE64BINARY);
11 | }
12 |
13 | @Override
14 | public byte[] parse(String item) {
15 | return DatatypeConverter.parseBase64Binary(item);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/BinaryTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import javax.json.JsonArrayBuilder;
4 | import javax.json.JsonValue;
5 | import javax.xml.namespace.QName;
6 |
7 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
8 | import org.hisrc.jsonix.compilation.jsonschema.typeinfo.BuiltinLeafInfoProducer;
9 |
10 | public abstract class BinaryTypeInfoProducer extends BuiltinLeafInfoProducer {
11 |
12 | public BinaryTypeInfoProducer(QName qualifiedName) {
13 | super(qualifiedName);
14 | }
15 |
16 | @Override
17 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, String item) {
18 | final JsonArrayBuilder arrayBuilder = mappingCompiler.getJsonBuilderFactory().createArrayBuilder();
19 | final byte[] value = parse(item);
20 | for (final byte b : value) {
21 | final int v = b >= 0 ? b : b + 256;
22 | arrayBuilder.add(v);
23 | }
24 | return arrayBuilder.build();
25 | }
26 |
27 | public abstract byte[] parse(String item);
28 | }
29 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/BooleanTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import javax.json.JsonValue;
4 |
5 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
6 | import org.hisrc.jsonix.compilation.jsonschema.typeinfo.BuiltinLeafInfoProducer;
7 | import org.jvnet.jaxb2_commons.xmlschema.XmlSchemaConstants;
8 |
9 | public class BooleanTypeInfoProducer extends BuiltinLeafInfoProducer {
10 |
11 | public BooleanTypeInfoProducer() {
12 | super(XmlSchemaConstants.BOOLEAN);
13 | }
14 |
15 | @Override
16 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, String item) {
17 | return Boolean.valueOf(item) ? JsonValue.TRUE : JsonValue.FALSE;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/DecimalTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import java.math.BigDecimal;
4 |
5 | import javax.json.JsonArrayBuilder;
6 | import javax.json.JsonValue;
7 | import javax.xml.namespace.QName;
8 |
9 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
10 | import org.hisrc.jsonix.compilation.jsonschema.typeinfo.BuiltinLeafInfoProducer;
11 |
12 | public class DecimalTypeInfoProducer extends BuiltinLeafInfoProducer {
13 |
14 | public DecimalTypeInfoProducer(QName qualifiedName) {
15 | super(qualifiedName);
16 | }
17 |
18 | @Override
19 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, String item) {
20 |
21 | JsonArrayBuilder arrayBuilder = mappingCompiler.getJsonBuilderFactory().createArrayBuilder();
22 | // Hack to make -INF an INF work
23 | if ("-INF".equals(item)) {
24 | return arrayBuilder.add("-Infinity").build().get(0);
25 | } else if ("INF".equals(item)) {
26 | return arrayBuilder.add("Infinity").build().get(0);
27 | } else {
28 | return arrayBuilder.add(new BigDecimal(item)).build().get(0);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/HexBinaryTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import javax.xml.bind.DatatypeConverter;
4 |
5 | import org.jvnet.jaxb2_commons.xmlschema.XmlSchemaConstants;
6 |
7 | public class HexBinaryTypeInfoProducer extends BinaryTypeInfoProducer {
8 |
9 | public HexBinaryTypeInfoProducer() {
10 | super(XmlSchemaConstants.HEXBINARY);
11 | }
12 |
13 | @Override
14 | public byte[] parse(String item) {
15 | return DatatypeConverter.parseHexBinary(item);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/IntegerTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import java.math.BigInteger;
4 |
5 | import javax.json.JsonArrayBuilder;
6 | import javax.json.JsonValue;
7 | import javax.xml.namespace.QName;
8 |
9 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
10 | import org.hisrc.jsonix.compilation.jsonschema.typeinfo.BuiltinLeafInfoProducer;
11 |
12 | public class IntegerTypeInfoProducer extends BuiltinLeafInfoProducer {
13 |
14 | public IntegerTypeInfoProducer(QName qualifiedName) {
15 | super(qualifiedName);
16 | }
17 |
18 | @Override
19 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, String item) {
20 | final JsonArrayBuilder arrayBuilder = mappingCompiler.getJsonBuilderFactory().createArrayBuilder();
21 | return arrayBuilder.add(new BigInteger(item)).build().get(0);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/NormalizedStringTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import javax.json.JsonArrayBuilder;
4 | import javax.json.JsonValue;
5 | import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
6 | import javax.xml.namespace.QName;
7 |
8 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
9 |
10 | public class NormalizedStringTypeInfoProducer extends StringTypeInfoProducer {
11 |
12 | private final NormalizedStringAdapter normalizedStringAdapter = new NormalizedStringAdapter();
13 |
14 | public NormalizedStringTypeInfoProducer(QName qualifiedName) {
15 | super(qualifiedName);
16 | }
17 |
18 | @Override
19 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, String item) {
20 | final JsonArrayBuilder arrayBuilder = mappingCompiler.getJsonBuilderFactory().createArrayBuilder();
21 | return arrayBuilder.add(normalizedStringAdapter.unmarshal(item)).build().get(0);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/jsonschema/typeinfo/builtin/StringTypeInfoProducer.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.jsonschema.typeinfo.builtin;
2 |
3 | import javax.json.JsonArrayBuilder;
4 | import javax.json.JsonValue;
5 | import javax.xml.namespace.QName;
6 |
7 | import org.hisrc.jsonix.compilation.jsonschema.JsonSchemaMappingCompiler;
8 | import org.hisrc.jsonix.compilation.jsonschema.typeinfo.BuiltinLeafInfoProducer;
9 |
10 | public class StringTypeInfoProducer extends BuiltinLeafInfoProducer {
11 |
12 | public StringTypeInfoProducer(QName qualifiedName) {
13 | super(qualifiedName);
14 | }
15 |
16 | @Override
17 | public JsonValue createValue(JsonSchemaMappingCompiler mappingCompiler, String item) {
18 | final JsonArrayBuilder arrayBuilder = mappingCompiler.getJsonBuilderFactory().createArrayBuilder();
19 | return arrayBuilder.add(item).build().get(0);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/ModulesCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping;
2 |
3 | import org.apache.commons.lang3.Validate;
4 | import org.hisrc.jscm.codemodel.JSCodeModel;
5 | import org.hisrc.jscm.codemodel.JSProgram;
6 | import org.hisrc.jscm.codemodel.impl.CodeModelImpl;
7 | import org.hisrc.jsonix.definition.Module;
8 | import org.hisrc.jsonix.definition.Modules;
9 | import org.hisrc.jsonix.definition.Output;
10 |
11 | public class ModulesCompiler {
12 |
13 | private final Modules modules;
14 |
15 | public ModulesCompiler(Modules modules) {
16 | Validate.notNull(modules);
17 | this.modules = modules;
18 | }
19 |
20 | public void compile(ProgramWriter programWriter) {
21 | final JSCodeModel codeModel = new CodeModelImpl();
22 |
23 | for (Module module : this.modules.getModules()) {
24 | if (!module.isEmpty()) {
25 | for (Output output : module.getOutputs()) {
26 | final ModuleCompiler moduleCompiler = new ModuleCompiler(
27 | codeModel, modules, module, output);
28 |
29 | final JSProgram program = moduleCompiler.compile();
30 | programWriter.writeProgram(module, program, output);
31 | }
32 | }
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/ProgramWriter.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping;
2 |
3 | import org.hisrc.jscm.codemodel.JSProgram;
4 | import org.hisrc.jsonix.definition.Module;
5 | import org.hisrc.jsonix.definition.Output;
6 |
7 | public interface ProgramWriter {
8 |
9 | public void writeProgram(Module module, JSProgram program,
10 | Output output);
11 | }
12 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/ClassRefCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo;
2 |
3 | import org.apache.commons.lang3.Validate;
4 | import org.hisrc.jscm.codemodel.expression.JSObjectLiteral;
5 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
6 | import org.jvnet.jaxb2_commons.xml.bind.model.MClassRef;
7 |
8 | public class ClassRefCompiler extends PackagedTypeInfoCompiler {
9 |
10 | private MClassRef classRef;
11 |
12 | public ClassRefCompiler(MClassRef classRef) {
13 | super(Validate.notNull(classRef));
14 | this.classRef = classRef;
15 | }
16 |
17 | @Override
18 | public JSObjectLiteral compile(MappingCompiler mappingCompiler) {
19 | throw new UnsupportedOperationException();
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/TypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo;
2 |
3 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
4 | import org.hisrc.jscm.codemodel.expression.JSObjectLiteral;
5 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
6 |
7 | import com.sun.xml.xsom.XmlString;
8 |
9 | public interface TypeInfoCompiler {
10 |
11 | public JSAssignmentExpression createTypeInfoDeclaration(MappingCompiler mappingCompiler);
12 |
13 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, XmlString item);
14 |
15 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item);
16 |
17 | public JSObjectLiteral compile(MappingCompiler mappingCompiler);
18 | }
19 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/AnySimpleTypeTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.namespace.QName;
4 |
5 | import org.hisrc.jscm.codemodel.JSCodeModel;
6 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
7 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
8 | import org.hisrc.jsonix.compilation.mapping.typeinfo.BuiltinLeafInfoCompiler;
9 |
10 | public class AnySimpleTypeTypeInfoCompiler extends BuiltinLeafInfoCompiler {
11 |
12 | public AnySimpleTypeTypeInfoCompiler(String name,QName qualifiedName) {
13 | super(name, qualifiedName);
14 | }
15 |
16 | @Override
17 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item) {
18 | final JSCodeModel codeModel = mappingCompiler.getCodeModel();
19 | return codeModel.string(item);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/Base64BinaryTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.bind.DatatypeConverter;
4 |
5 | import org.jvnet.jaxb2_commons.xmlschema.XmlSchemaConstants;
6 |
7 | public class Base64BinaryTypeInfoCompiler extends BinaryTypeInfoCompiler {
8 |
9 | public Base64BinaryTypeInfoCompiler() {
10 | super("Base64Binary", XmlSchemaConstants.BASE64BINARY);
11 | }
12 |
13 | @Override
14 | public byte[] parse(String item) {
15 | return DatatypeConverter.parseBase64Binary(item);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/BinaryTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.namespace.QName;
4 |
5 | import org.hisrc.jscm.codemodel.JSCodeModel;
6 | import org.hisrc.jscm.codemodel.expression.JSArrayLiteral;
7 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
8 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
9 | import org.hisrc.jsonix.compilation.mapping.typeinfo.BuiltinLeafInfoCompiler;
10 |
11 | public abstract class BinaryTypeInfoCompiler extends BuiltinLeafInfoCompiler {
12 |
13 | public BinaryTypeInfoCompiler(String name, QName qualifiedName) {
14 | super(name, qualifiedName);
15 | }
16 |
17 | @Override
18 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item) {
19 | final JSCodeModel codeModel = mappingCompiler.getCodeModel();
20 | final byte[] value = parse(item);
21 | final JSArrayLiteral result = codeModel.array();
22 | for (final byte b : value) {
23 | final int v = b >= 0 ? b : b + 256;
24 | result.append(codeModel.integer(v));
25 | }
26 | return result;
27 | }
28 |
29 | public abstract byte[] parse(String item);
30 | }
31 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/BooleanTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import org.hisrc.jscm.codemodel.JSCodeModel;
4 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
5 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
6 | import org.hisrc.jsonix.compilation.mapping.typeinfo.BuiltinLeafInfoCompiler;
7 | import org.jvnet.jaxb2_commons.xmlschema.XmlSchemaConstants;
8 |
9 | public class BooleanTypeInfoCompiler extends BuiltinLeafInfoCompiler {
10 |
11 | public BooleanTypeInfoCompiler() {
12 | super("Boolean", XmlSchemaConstants.BOOLEAN);
13 | }
14 |
15 | @Override
16 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item) {
17 | final JSCodeModel codeModel = mappingCompiler.getCodeModel();
18 | return codeModel._boolean(Boolean.valueOf(item));
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/DecimalTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.namespace.QName;
4 |
5 | import org.hisrc.jscm.codemodel.JSCodeModel;
6 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
7 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
8 | import org.hisrc.jsonix.compilation.mapping.typeinfo.BuiltinLeafInfoCompiler;
9 |
10 | public class DecimalTypeInfoCompiler extends BuiltinLeafInfoCompiler {
11 |
12 | public DecimalTypeInfoCompiler(String name, QName qualifiedName) {
13 | super(name, qualifiedName);
14 | }
15 |
16 | @Override
17 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item) {
18 | final JSCodeModel codeModel = mappingCompiler.getCodeModel();
19 | // Hack to make -INF an INF work
20 | if ("-INF".equals(item)) {
21 | return codeModel.globalVariable("Infinity").negative();
22 | } else if ("INF".equals(item)) {
23 | return codeModel.globalVariable("Infinity");
24 | } else {
25 | return codeModel.decimal(item);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/HexBinaryTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.bind.DatatypeConverter;
4 |
5 | import org.jvnet.jaxb2_commons.xmlschema.XmlSchemaConstants;
6 |
7 | public class HexBinaryTypeInfoCompiler extends BinaryTypeInfoCompiler {
8 |
9 | public HexBinaryTypeInfoCompiler() {
10 | super("HexBinary", XmlSchemaConstants.HEXBINARY);
11 | }
12 |
13 | @Override
14 | public byte[] parse(String item) {
15 | return DatatypeConverter.parseHexBinary(item);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/IntegerTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.namespace.QName;
4 |
5 | import org.hisrc.jscm.codemodel.JSCodeModel;
6 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
7 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
8 | import org.hisrc.jsonix.compilation.mapping.typeinfo.BuiltinLeafInfoCompiler;
9 |
10 | public class IntegerTypeInfoCompiler extends BuiltinLeafInfoCompiler {
11 |
12 | public IntegerTypeInfoCompiler(String name, QName qualifiedName) {
13 | super(name, qualifiedName);
14 | }
15 |
16 | @Override
17 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item) {
18 | final JSCodeModel codeModel = mappingCompiler.getCodeModel();
19 | return codeModel.decimal(item);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/NormalizedStringTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
4 | import javax.xml.namespace.QName;
5 |
6 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
7 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
8 |
9 | public class NormalizedStringTypeInfoCompiler extends StringTypeInfoCompiler {
10 |
11 | private final NormalizedStringAdapter normalizedStringAdapter = new NormalizedStringAdapter();
12 |
13 | public NormalizedStringTypeInfoCompiler(String name, QName qualifiedName) {
14 | super(name, qualifiedName);
15 | }
16 |
17 | @Override
18 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item) {
19 | return mappingCompiler.getCodeModel().string(normalizedStringAdapter.unmarshal(item));
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/compilation/mapping/typeinfo/builtin/StringTypeInfoCompiler.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.compilation.mapping.typeinfo.builtin;
2 |
3 | import javax.xml.namespace.QName;
4 |
5 | import org.hisrc.jscm.codemodel.JSCodeModel;
6 | import org.hisrc.jscm.codemodel.expression.JSAssignmentExpression;
7 | import org.hisrc.jsonix.compilation.mapping.MappingCompiler;
8 | import org.hisrc.jsonix.compilation.mapping.typeinfo.BuiltinLeafInfoCompiler;
9 |
10 | public class StringTypeInfoCompiler extends BuiltinLeafInfoCompiler {
11 |
12 | public StringTypeInfoCompiler(String name,QName qualifiedName) {
13 | super(name, qualifiedName);
14 | }
15 |
16 | @Override
17 | public JSAssignmentExpression createValue(MappingCompiler mappingCompiler, String item) {
18 | final JSCodeModel codeModel = mappingCompiler.getCodeModel();
19 | return codeModel.string(item);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/DependenciesOfMappingConfiguration.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration;
2 |
3 | import javax.xml.bind.annotation.XmlAttribute;
4 | import javax.xml.bind.annotation.XmlRootElement;
5 | import javax.xml.bind.annotation.XmlType;
6 |
7 | @XmlRootElement(name = DependenciesOfMappingConfiguration.LOCAL_ELEMENT_NAME)
8 | @XmlType(propOrder = {})
9 | public class DependenciesOfMappingConfiguration {
10 |
11 | public static final String LOCAL_ELEMENT_NAME = "dependencies-of-mapping";
12 |
13 | private String name;
14 |
15 | @XmlAttribute
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 |
24 | private String id;
25 |
26 | @XmlAttribute
27 | public String getId() {
28 | return id;
29 | }
30 |
31 | public void setId(String id) {
32 | this.id = id;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/MissingPackageException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 | import org.hisrc.jsonix.configuration.exception.ConfigurationException;
7 |
8 | public class MissingPackageException extends ConfigurationException {
9 |
10 | private static final long serialVersionUID = 7839703475748475817L;
11 | private final String packageName;
12 |
13 | public MissingPackageException(String packageName) {
14 | super(
15 | MessageFormat
16 | .format("Package name [{0}] could not be found.",
17 | Validate.notNull(packageName)));
18 | this.packageName = packageName;
19 | }
20 |
21 | public String getPackageName() {
22 | return packageName;
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/AmbiguousMappingNameException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 |
7 | public class AmbiguousMappingNameException extends ConfigurationException {
8 |
9 | private static final long serialVersionUID = -7107929604268428687L;
10 | private final String name;
11 |
12 | public AmbiguousMappingNameException(String name) {
13 | super(
14 | MessageFormat
15 | .format("There is more than one mapping with the name [{0}], please set and use id attributes for mapping references.",
16 | Validate.notNull(name)));
17 | this.name = name;
18 | }
19 |
20 | public String getName() {
21 | return name;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/AmbiguousPackageMappingNameException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | import java.text.MessageFormat;
4 | import java.util.Arrays;
5 |
6 | import org.apache.commons.lang3.Validate;
7 |
8 | public class AmbiguousPackageMappingNameException extends ConfigurationException {
9 |
10 | private static final long serialVersionUID = 277619834810758946L;
11 | private final String packageName;
12 | private final String[] mappingNames;
13 |
14 | public AmbiguousPackageMappingNameException(String packageName,
15 | String... mappingNames) {
16 | super(
17 | MessageFormat
18 | .format("Package [{0}] is mapped using different mapping names [{1}].",
19 | Validate.notNull(packageName),
20 | Arrays.asList(
21 | Validate.noNullElements(mappingNames))
22 | .toString()));
23 | this.packageName = packageName;
24 | this.mappingNames = mappingNames;
25 | }
26 |
27 | public String getPackageName() {
28 | return packageName;
29 | }
30 |
31 | public String[] getMappingNames() {
32 | return mappingNames;
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/AmbiguousPackageSchemaIdException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | import java.text.MessageFormat;
4 | import java.util.Arrays;
5 |
6 | import org.apache.commons.lang3.Validate;
7 |
8 | public class AmbiguousPackageSchemaIdException extends ConfigurationException {
9 |
10 | private static final long serialVersionUID = 277619834810758946L;
11 | private final String packageName;
12 | private final String[] schemaIds;
13 |
14 | public AmbiguousPackageSchemaIdException(String packageName,
15 | String... schemaIds) {
16 | super(MessageFormat.format(
17 | "Package [{0}] is mapped using different schema ids [{1}].",
18 | Validate.notNull(packageName),
19 | Arrays.asList(Validate.noNullElements(schemaIds)).toString()));
20 | this.packageName = packageName;
21 | this.schemaIds = schemaIds;
22 | }
23 |
24 | public String getPackageName() {
25 | return packageName;
26 | }
27 |
28 | public String[] getSchemaIds() {
29 | return schemaIds;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/ConfigurationException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | public abstract class ConfigurationException extends RuntimeException {
4 |
5 | private static final long serialVersionUID = 421326587379604013L;
6 |
7 | public ConfigurationException() {
8 | super();
9 | }
10 |
11 | public ConfigurationException(String message, Throwable cause) {
12 | super(message, cause);
13 | }
14 |
15 | public ConfigurationException(String message) {
16 | super(message);
17 | }
18 |
19 | public ConfigurationException(Throwable cause) {
20 | super(cause);
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/ConfigurationUnmarshallingException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 | import org.hisrc.jsonix.xml.sax.LocatorUtils;
7 | import org.xml.sax.Locator;
8 |
9 | public class ConfigurationUnmarshallingException extends ConfigurationException {
10 |
11 | private static final long serialVersionUID = -924228342493741985L;
12 | private final String description;
13 | private final Locator locator;
14 |
15 | public ConfigurationUnmarshallingException(String description) {
16 | super(MessageFormat.format("Could not unmarshal the {0}.",
17 | Validate.notNull(description)));
18 | this.description = description;
19 | this.locator = null;
20 | }
21 |
22 | public ConfigurationUnmarshallingException(String description,
23 | Locator locator) {
24 | super(MessageFormat.format(
25 | "Could not unmarshal the {0} located at [{1}].",
26 | Validate.notNull(description),
27 | LocatorUtils.toString(Validate.notNull(locator))));
28 | this.description = description;
29 | this.locator = locator;
30 | }
31 |
32 | public String getDescription() {
33 | return description;
34 | }
35 |
36 | public Locator getLocator() {
37 | return locator;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/MissingMappinWithNameException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 |
7 | public class MissingMappinWithNameException extends ConfigurationException {
8 |
9 | private static final long serialVersionUID = 2854565270126284458L;
10 | private final String mappingName;
11 |
12 | public MissingMappinWithNameException(String mappingId) {
13 | super(MessageFormat.format(
14 | "Could not find the referenced mapping with name [{0}].",
15 | Validate.notNull(mappingId)));
16 | this.mappingName = mappingId;
17 | }
18 |
19 | public String getMappingName() {
20 | return mappingName;
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/MissingMappingWithIdException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 |
7 | public class MissingMappingWithIdException extends ConfigurationException {
8 |
9 | private static final long serialVersionUID = 2854565270126284458L;
10 | private final String mappingId;
11 |
12 | public MissingMappingWithIdException(String mappingId) {
13 | super(MessageFormat.format(
14 | "Could not find the referenced mapping with id [{0}].",
15 | Validate.notNull(mappingId)));
16 | this.mappingId = mappingId;
17 | }
18 |
19 | public String getMappingId() {
20 | return mappingId;
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/exception/UnsupportedNamingException.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.exception;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 |
7 | public class UnsupportedNamingException extends ConfigurationException {
8 |
9 | private static final long serialVersionUID = 3272513965273810862L;
10 | private final String naming;
11 |
12 | public UnsupportedNamingException(String naming) {
13 | super(MessageFormat.format("Unsupported naming [{0}].",
14 | Validate.notNull(naming)));
15 | this.naming = naming;
16 | }
17 |
18 | public String getNaming() {
19 | return naming;
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/configuration/package-info.java:
--------------------------------------------------------------------------------
1 | @javax.xml.bind.annotation.XmlSchema(
2 | //
3 | namespace = org.hisrc.jsonix.configuration.ModulesConfiguration.NAMESPACE_URI,
4 | //
5 | elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED, attributeFormDefault = javax.xml.bind.annotation.XmlNsForm.UNQUALIFIED)
6 | package org.hisrc.jsonix.configuration;
7 |
8 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/context/DefaultJsonixContext.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.context;
2 |
3 | import org.hisrc.jsonix.settings.LogLevelSetting;
4 | import org.hisrc.jsonix.slf4j.LevelledLoggerFactoryWrapper;
5 | import org.slf4j.ILoggerFactory;
6 | import org.slf4j.LoggerFactory;
7 |
8 | public class DefaultJsonixContext implements JsonixContext {
9 |
10 | private final ILoggerFactory loggerFactory;
11 |
12 | public DefaultJsonixContext(ILoggerFactory loggerFactory) {
13 | this.loggerFactory = new LevelledLoggerFactoryWrapper(loggerFactory) {
14 | @Override
15 | protected int getLevel() {
16 | return DefaultJsonixContext.this.getLogLevel();
17 | }
18 | };
19 | }
20 |
21 | public DefaultJsonixContext() {
22 | this(LoggerFactory.getILoggerFactory());
23 | }
24 |
25 | private int logLevel = LogLevelSetting.INFO.asInt();
26 |
27 | protected int getLogLevel() {
28 | return logLevel;
29 | }
30 |
31 | public void setLogLevel(int level) {
32 | this.logLevel = level;
33 | }
34 |
35 | @Override
36 | public ILoggerFactory getLoggerFactory() {
37 | return loggerFactory;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/context/JsonixContext.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.context;
2 |
3 | import org.slf4j.ILoggerFactory;
4 |
5 | /**
6 | * Jsonix schema compiler context.
7 | *
8 | * @author Alexey Valikov
9 | *
10 | */
11 | public interface JsonixContext {
12 |
13 | public ILoggerFactory getLoggerFactory();
14 | }
15 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/definition/JsonSchema.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.definition;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 |
7 | public class JsonSchema {
8 |
9 | private final String directory = "";
10 | private final String fileName;
11 |
12 | public JsonSchema(final String fileName) {
13 | Validate.notNull(fileName);
14 | this.fileName = fileName;
15 | }
16 |
17 | public String getDirectory() {
18 | return this.directory;
19 | }
20 |
21 | public String getFileName() {
22 | return this.fileName;
23 | }
24 |
25 | @Override
26 | public String toString() {
27 | return MessageFormat.format("JSON Schema [{0}]", this.fileName);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/definition/Output.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.definition;
2 |
3 | import java.text.MessageFormat;
4 |
5 | import org.apache.commons.lang3.Validate;
6 | import org.hisrc.jsonix.naming.Naming;
7 |
8 | public class Output {
9 |
10 | private final String outputPackageName = "";
11 | private final String directory = "";
12 | private final String fileName;
13 | private final Naming naming;
14 |
15 | public Output(final String fileName, final Naming naming) {
16 | Validate.notNull(fileName);
17 | Validate.notNull(naming);
18 | this.fileName = fileName;
19 | this.naming = naming;
20 | }
21 |
22 | public String getOutputPackageName() {
23 | return outputPackageName;
24 | }
25 |
26 | public String getDirectory() {
27 | return this.directory;
28 | }
29 |
30 | public String getFileName() {
31 | return this.fileName;
32 | }
33 |
34 | public Naming getNaming() {
35 | return this.naming;
36 | }
37 |
38 | @Override
39 | public String toString() {
40 | return MessageFormat.format("Output [{0}]", this.fileName);
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/json/util/JsonObjectBuildable.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.json.util;
2 |
3 | import javax.json.JsonBuilderFactory;
4 | import javax.json.JsonObject;
5 | import javax.json.JsonObjectBuilder;
6 |
7 | public interface JsonObjectBuildable {
8 |
9 | public JsonObject build(JsonBuilderFactory builderFactory);
10 |
11 | public JsonObjectBuilder build(JsonBuilderFactory builderFactory,
12 | JsonObjectBuilder builder);
13 | }
14 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/jsonschema/JsonSchemaConstants.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.jsonschema;
2 |
3 | public class JsonSchemaConstants {
4 |
5 | private JsonSchemaConstants() {
6 | }
7 |
8 | public static final String IDENTIFIER = "http://json-schema.org/draft-04/schema#";
9 | public static final String OBJECT_TYPE = "object";
10 | public static final String ARRAY_TYPE = "array";
11 | public static final String STRING_TYPE = "string";
12 | public static final String INTEGER_TYPE = "integer";
13 | public static final String NUMBER_TYPE = "number";
14 | public static final String BOOLEAN_TYPE = "boolean";
15 | public static final String NULL_TYPE = "null";
16 | }
17 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/settings/LogLevelSetting.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.settings;
2 |
3 | import org.slf4j.spi.LocationAwareLogger;
4 |
5 | public enum LogLevelSetting {
6 |
7 | TRACE(LocationAwareLogger.TRACE_INT), DEBUG(LocationAwareLogger.DEBUG_INT), INFO(
8 | LocationAwareLogger.INFO_INT), WARN(LocationAwareLogger.WARN_INT), ERROR(
9 | LocationAwareLogger.ERROR_INT);
10 |
11 | private final int levelInt;
12 |
13 | private LogLevelSetting(int levelInt) {
14 | this.levelInt = levelInt;
15 | }
16 |
17 | public int asInt() {
18 | return this.levelInt;
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/settings/NamingSetting.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.settings;
2 |
3 | import org.hisrc.jsonix.naming.CompactNaming;
4 | import org.hisrc.jsonix.naming.StandardNaming;
5 |
6 | public enum NamingSetting {
7 |
8 | COMPACT(CompactNaming.NAMING_NAME), STANDARD(StandardNaming.NAMING_NAME);
9 |
10 | private final String name;
11 |
12 | private NamingSetting(String naming) {
13 | this.name = naming;
14 | }
15 |
16 | public String getName() {
17 | return this.name;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/slf4j/LevelledLocationAwareLoggerWrapper.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.slf4j;
2 |
3 | import org.slf4j.Marker;
4 | import org.slf4j.spi.LocationAwareLogger;
5 |
6 | public abstract class LevelledLocationAwareLoggerWrapper extends
7 | LevelledLoggerWrapper implements LocationAwareLogger {
8 |
9 | private LocationAwareLogger locationAwareDelegate;
10 |
11 | LevelledLocationAwareLoggerWrapper(LocationAwareLogger logger) {
12 | super(logger);
13 | this.locationAwareDelegate = logger;
14 | }
15 |
16 | @Override
17 | public void log(Marker marker, String fqcn, int level, String message,
18 | Object[] argArray, Throwable t) {
19 | if (this.getLevel() >= level) {
20 | this.locationAwareDelegate.log(marker, fqcn, level, message,
21 | argArray, t);
22 | }
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/slf4j/LevelledLoggerFactoryWrapper.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.slf4j;
2 |
3 | import org.apache.commons.lang3.Validate;
4 | import org.slf4j.ILoggerFactory;
5 | import org.slf4j.Logger;
6 | import org.slf4j.spi.LocationAwareLogger;
7 |
8 | public abstract class LevelledLoggerFactoryWrapper implements ILoggerFactory {
9 |
10 | protected final ILoggerFactory loggerFactory;
11 |
12 | public LevelledLoggerFactoryWrapper(ILoggerFactory loggerFactory) {
13 | this.loggerFactory = Validate.notNull(loggerFactory);
14 | }
15 |
16 | protected abstract int getLevel();
17 |
18 | @Override
19 | public Logger getLogger(String name) {
20 | final Logger logger = loggerFactory.getLogger(name);
21 | if (logger instanceof LocationAwareLogger) {
22 | return new LevelledLocationAwareLoggerWrapper(
23 | (LocationAwareLogger) logger) {
24 | @Override
25 | protected int getLevel() {
26 | return LevelledLoggerFactoryWrapper.this.getLevel();
27 | }
28 | };
29 | } else {
30 | return new LevelledLoggerWrapper(logger) {
31 | @Override
32 | protected int getLevel() {
33 | return LevelledLoggerFactoryWrapper.this.getLevel();
34 | }
35 | };
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/xml/bind/model/FooBar.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.xml.bind.model;
2 |
3 | import com.sun.xml.xsom.XmlString;
4 |
5 | public abstract class FooBar {
6 |
7 | public abstract I parse(XmlString value);
8 |
9 |
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/xml/sax/LocatorUtils.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.xml.sax;
2 |
3 | import org.xml.sax.Locator;
4 |
5 | public class LocatorUtils {
6 |
7 | private LocatorUtils() {
8 | }
9 |
10 | public static String toString(Locator locator) {
11 | if (locator == null) {
12 | return null;
13 | } else {
14 | final StringBuilder sb = new StringBuilder();
15 | final String publicId = locator.getPublicId();
16 | if (publicId != null) {
17 | sb.append(publicId).append(':');
18 | }
19 | final String systemId = locator.getSystemId();
20 | if (systemId != null) {
21 | sb.append(systemId).append(':');
22 | }
23 | sb.append(locator.getLineNumber()).append(':');
24 | sb.append(locator.getColumnNumber());
25 | return sb.toString();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/compiler/src/main/java/org/hisrc/jsonix/xml/xsom/ParticleMultiplicityCounter.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.xml.xsom;
2 |
3 | import java.math.BigInteger;
4 |
5 | import org.hisrc.xml.xsom.DefaultFunctionImpl;
6 |
7 | import com.sun.tools.xjc.model.Multiplicity;
8 | import com.sun.xml.xsom.XSAttributeUse;
9 | import com.sun.xml.xsom.XSParticle;
10 | import com.sun.xml.xsom.visitor.XSTermFunction;
11 |
12 | public class ParticleMultiplicityCounter extends
13 | DefaultFunctionImpl {
14 |
15 | public static final ParticleMultiplicityCounter INSTANCE = new ParticleMultiplicityCounter();
16 |
17 | private final XSTermFunction counter = MultiplicityCounterNG.INSTANCE;
18 |
19 | protected ParticleMultiplicityCounter() {
20 | super();
21 | }
22 |
23 | @Override
24 | public Multiplicity particle(XSParticle p) {
25 |
26 | Multiplicity m = p.getTerm().apply(this.counter);
27 |
28 | BigInteger max;
29 | if (m.max == null
30 | || (BigInteger.valueOf(XSParticle.UNBOUNDED).equals(p
31 | .getMaxOccurs())))
32 | max = null;
33 | else
34 | max = p.getMaxOccurs();
35 |
36 | return Multiplicity.multiply(m,
37 | Multiplicity.create(p.getMinOccurs(), max));
38 | }
39 |
40 | @Override
41 | public Multiplicity attributeUse(XSAttributeUse use) {
42 | return use.isRequired() ? Multiplicity.ONE : Multiplicity.OPTIONAL;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/compiler/src/main/resources/META-INF/services/com.sun.tools.xjc.Plugin:
--------------------------------------------------------------------------------
1 | org.hisrc.jsonix.xjc.plugin.JsonixPlugin
--------------------------------------------------------------------------------
/compiler/src/test/java/org/hisrc/jsonix/configuration/tests/AmbiguousPackageMappingExceptionTest.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.configuration.tests;
2 |
3 | import org.hisrc.jsonix.configuration.exception.AmbiguousPackageMappingNameException;
4 | import org.junit.Assert;
5 | import org.junit.Test;
6 |
7 | public class AmbiguousPackageMappingExceptionTest {
8 |
9 | @Test
10 | public void producesReadableMessage() {
11 | final Exception ex = new AmbiguousPackageMappingNameException("a", "b",
12 | "c");
13 | Assert.assertTrue(ex.getMessage().contains("b, c"));
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/compiler/src/test/java/org/hisrc/jsonix/xml/bind/tests/AType.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.xml.bind.tests;
2 |
3 | import javax.xml.bind.annotation.XmlAccessType;
4 | import javax.xml.bind.annotation.XmlAccessorType;
5 | import javax.xml.bind.annotation.XmlElement;
6 | import javax.xml.bind.annotation.XmlRootElement;
7 |
8 | @XmlRootElement
9 | @XmlAccessorType(XmlAccessType.FIELD)
10 | public class AType {
11 |
12 | @XmlElement
13 | public String one;
14 |
15 | @XmlElement(defaultValue = "two")
16 | public String two;
17 |
18 | @XmlElement(nillable = true)
19 | public String three;
20 |
21 | @XmlElement(nillable = true, defaultValue = "four")
22 | public String four;
23 | }
24 |
--------------------------------------------------------------------------------
/compiler/src/test/java/org/hisrc/jsonix/xml/bind/tests/BType.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.xml.bind.tests;
2 |
3 | import java.util.Date;
4 |
5 | import javax.xml.bind.annotation.XmlAccessType;
6 | import javax.xml.bind.annotation.XmlAccessorType;
7 | import javax.xml.bind.annotation.XmlElement;
8 | import javax.xml.bind.annotation.XmlRootElement;
9 |
10 | @XmlRootElement
11 | @XmlAccessorType(XmlAccessType.FIELD)
12 | public class BType {
13 |
14 | @XmlElement
15 | public Integer one;
16 |
17 | @XmlElement(defaultValue = "2")
18 | public Integer two;
19 |
20 | @XmlElement(nillable = true)
21 | public Integer three;
22 |
23 | @XmlElement(nillable = true, defaultValue = "4")
24 | public Integer four;
25 |
26 | @XmlElement
27 | public Date five;
28 |
29 | @XmlElement
30 | public Date six;
31 | }
32 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/catalog.cat:
--------------------------------------------------------------------------------
1 | --
2 | If the parameter isn't working, this link to schema A is
3 | not recognized and the test will fail because of a missing schema.
4 | --
5 | REWRITE_SYSTEM "http://www.w3.org" "w3c"
6 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/choice/elements01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/choice/elements02.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/anyAttribute01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/anyElement01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/attribute01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/element01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/elementRef01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/elementRefs01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
20 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/elements01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
20 |
22 |
23 |
24 |
25 |
26 |
27 |
29 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/schema02.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/jsonschema/minmaxoccurs/value01.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/context/1.1.0/ort.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Web Map Context version 1.1
7 |
8 | WMC is an OGC Standard.
9 | Copyright (c) 2005,2010 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/context/1.1.0/wmcAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Web Map Context version 1.1
7 |
8 | This 'all-components' schema document has been constructed to satisfy the 'Publication Rules for OGC Schemas' described in the Policy Directives.
9 | Simon Cox 2010-11-15
10 |
11 | WMC is an OGC Standard.
12 | Copyright (c) 2005,2010 Open Geospatial Consortium.
13 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/filter/1.0.20/sort.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/filter/1.1.0/filterAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 | This XML Schema document includes and imports, directly or indirectly,
14 | all the XML Schema defined by the Filter Encoding Standard.
15 |
16 | Filter Encoding is an OGC Standard.
17 | Copyright (c) 2010 Open Geospatial Consortium.
18 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/filter/2.0/filterAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 | This XML Schema document includes and imports, directly or indirectly,
12 | all the XML Schema defined by the Filter Encoding Standard.
13 |
14 | Filter Encoding is an OGC Standard.
15 | Copyright (c) 2010, 2014 Open Geospatial Consortium.
16 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/2.1.2/gml.xsd:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 | gml.xsd v2.1.2.5
12 |
13 | GML 'all-components' schema.
14 |
15 | GML is an OGC Standard.
16 | Copyright (c) 2001,2002,2010 Open Geospatial Consortium.
17 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/base/gml.xsd:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | gml.xsd
6 | Top level GML schema
7 |
8 | GML is an OGC Standard.
9 | Copyright (c) 2001,2005,2010 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/column.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Grid column axis
10 |
11 | Column
12 |
13 |
14 | Sample
15 |
16 | For this second grid axis, column coordinate values match grid column numbers, but allow fractional coordinate values between grid points. The first column is sometimes called the "left" column, so the direction of this axis is "right", but these terms are not required.
17 | C
18 | urn:ogc:def:axisDirection:OGC:1.0:columnPositive
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/exampleCompoundCRS.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | OSGB36 /British National Grid + ODN
10 |
11 | 7405
12 |
13 |
14 | United Kingdom (UK) - Great Britain - England Scotland Wales - onshore; Isle of Man.
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/exampleProjectedCRSsimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | OSGB 1936 / British National Grid
10 |
11 | 27700
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/exampleVerticalCRSsimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Newlyn
10 |
11 | 5701
12 |
13 |
14 |
15 |
16 | Ordnance Datum Newlyn
17 |
18 | 5101
19 |
20 | geoidal
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/row.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Grid row axis
10 |
11 | Row
12 |
13 |
14 | Line
15 |
16 | For this first grid axis, row coordinate values match grid row numbers, but allow fractional coordinate values between grid points. The first row in a grid is sometimes called the "top" row, so the direction of this axis is "down", but these terms are not required.
17 | R
18 | urn:ogc:def:axisDirection:OGC:1.0:rowPositive
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/dataQuality.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Subset of dataQuality.xsd for GML 3.1.1 common CRSs profile. Primary editor: Arliss Whiteside.
10 |
11 | GML is an OGC Standard.
12 | Copyright (c) 2005,2010 Open Geospatial Consortium.
13 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
14 |
15 |
16 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/gmlCommonCRSsProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | commonCRSsProfile.xsd
9 | GML 3.1.1 profile for Common CRSs.
10 |
11 | Copyright (c) 2005,2010 Open Geospatial Consortium.
12 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CrsSupport/1.0.0/crsSupportProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | crsSupportProfile.xsd
10 | GML 3.1.1 profile for CRS Support. Primary editor: Arliss Whiteside.
11 |
12 | GML is an OGC Standard.
13 | Copyright (c) 2005,2010 Open Geospatial Consortium.
14 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/CrsSupport/1.0.0/gmlCrsSupportProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | gml.xsd
6 | GML 3.1.1 profile for CRS Support. Primary editor: Arliss Whiteside.
7 |
8 | Copyright (c) 2005,2010 Open Geospatial Consortium.
9 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/exampleImageCRSpixelCenter.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 | Image C543D041201T084027 CRS pixel centers
11 |
12 | C543D041201T084027
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/exampleImageCRSpixelCorner.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Image C543D041201T084027 CRS pixel corners
10 |
11 | C543D041201T084027
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/gridSpacing.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Spacing between adjacent grid points, or between centers of adjacent pixels
10 | GridSpacing
11 | Length
12 |
13 |
14 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/imageDatumPixelCenter.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Origin at center of first pixel
10 |
11 | ImageDatumPixelCenter
12 |
13 | 2D image datum with the origin at the center of the first pixel in the image file, usually the first pixel collected by the image sensor. In an image file, the pixels in the first row are assumed to be listed first, followed by other rows, with pixels in each row listed (and collected) in column number order.
14 | center of first pixel
15 | cellCenter
16 |
17 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/imageDatumPixelCorner.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Origin at outside corner of first pixel
10 |
11 | ImageDatumPixelCorner
12 |
13 | 2D image datum with the origin at the outside corner of the first pixel in the image file, usually the first pixel collected by the image sensor. In an image file, the pixels in the first row are assumed to be listed first, followed by other rows, with pixels in each row listed (and collected) in column number order.
14 | outside corner of first pixel
15 | cellCorner
16 |
17 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/templateGeoreferencingTransformationSimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Example template for image georeferencing coordinate Transformations
10 | 1.0
11 |
12 |
13 |
14 |
15 |
16 |
17 | http://baesystems.com/rsm/rsmParameterValues/TBD.xml
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/templateGridElevationTransformationSimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Template for grid elevation model coordinate Transformations
10 | 1.0
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | http://baesystems.com/DEM/TBD
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/gmlGridCRSsProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | gml.xsd
8 | GML 3.1.1 grid CRSs profile. Primary editor: Arliss Whiteside.
9 |
10 | Copyright (c) 2005,2010 Open Geospatial Consortium.
11 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/1.0.0/Examples/pixelInCell.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PixelInCell standard values
5 |
6 |
7 |
8 | The origin of the image coordinate system is at the centre of a grid cell or image pixel.
9 | urn:ogc:def:pixelInCell:OGC:1.0:cellCenter
10 |
11 |
12 |
13 |
14 |
15 | The origin of the image coordinate system is at the corner of a grid cell, or half-way between the centres of adjacent image pixels.
16 | urn:ogc:def:pixelInCell:OGC:1.0:cellCorner
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/1.0.0/Examples/rangeMeaning.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Range Meaning standard values
5 |
6 |
7 |
8 | Any value between and including minimumValue and maximiumValue is valid.
9 | urn:ogc:def:rangeMeaning:OGC:1.0:exact
10 |
11 |
12 |
13 |
14 |
15 | The axis is continuous with values wrapping around at the minimumValue and maximumValue. Values with the same meaning repeat modulo the difference between maximumValue and minimumValue.
16 | urn:ogc:def:rangeMeaning:OGC:1.0:wraparound
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/1.0.0/gmlSimpleDictionaryProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | gml.xsd
8 | GML 3.1.1 profile for Dictionary. Primary editor: Arliss Whiteside.
9 |
10 | Copyright (c) 2005,2010 Open Geospatial Consortium.
11 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/ReadMe.txt:
--------------------------------------------------------------------------------
1 | OGC(r) GML 3.1.1 SimpleDictionary profile schema ReadMe.txt
2 | ======================================================
3 |
4 | OGC(r) GML 3.1.1 SimpleDictionary profile Standard
5 | -----------------------------------------------------------------------
6 |
7 | More information may be found at
8 | http://www.opengeospatial.org/standards/gml
9 |
10 | The most current schema is available at http://schemas.opengis.net/ .
11 |
12 | -----------------------------------------------------------------------
13 |
14 | Change history:
15 |
16 | 2012-07-21 Kevin Stegemoller
17 | * v1.0: Updated Copyright
18 |
19 | 2010-02-13 Kevin Stegemoller
20 | * v1.0: Update relative schema imports to absolute URLs (06-135r7 s#15)
21 |
22 | 2006-08-22 Arliss Whiteside
23 | * v1.0: Added SimpleDictionary 1.0.0 (OGC 05-099r2)
24 |
25 | Note: check each OGC numbered document for detailed changes.
26 |
27 | -----------------------------------------------------------------------
28 |
29 | Policies, Procedures, Terms, and Conditions of OGC(r) are available
30 | http://www.opengeospatial.org/ogc/legal/ .
31 |
32 | Copyright (c) 2012 Open Geospatial Consortium.
33 |
34 | -----------------------------------------------------------------------
35 |
36 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.0.9/basicTypes.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.0.9/gmlBase.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.0.9/measures.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.1.0/ReadMe.txt:
--------------------------------------------------------------------------------
1 | OpenGIS(r) GML PIDF-LO Geometry Shape Application Schema 0.1.0 (OGC 06-142r1) - ReadMe.txt
2 | -----------------------------------------------------------------------
3 |
4 | The GML PIDF-LO Geometry Shape Application Schema defined in the
5 | OGC document 06-142r1.
6 |
7 | More information on the OGC GML standard may be found at
8 | http://www.opengeospatial.org/standards/gml
9 |
10 |
11 | 2009-10-15 Kevin Stegemoller
12 |
13 | * post geoshape/0.1.0 schemas from 06-142r1
14 |
15 | -----------------------------------------------------------------------
16 |
17 | Policies, Procedures, Terms, and Conditions of OGC(r) are available
18 | http://www.opengeospatial.org/ogc/legal/ .
19 |
20 | The Open Geospatial Consortium, Inc. official schema repository is at
21 | http://schemas.opengis.net/ .
22 |
23 | Copyright (c) 2007-2009 Open Geospatial Consortium.
24 |
25 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.1.0/gmlBase.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Copyright (c) 2007,2009 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.1.0/measures.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Copyright (c) 2007,2009 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/ows/1.1.0/Examples/exampleConstraint1.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 1
15 | 1000
16 |
17 |
18 | Maximum value of TBD
19 | urn:ogc:def:dataType:OGC:1.1:positiveInteger
20 |
21 |
22 |
23 | 1
24 |
25 | Maximum value of TBD
26 | urn:ogc:def:dataType:OGC:1.1:positiveInteger
27 |
28 |
29 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/ows/1.1.0/Examples/exampleExceptionReport1.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | service
9 |
10 |
11 | version
12 |
13 |
14 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/ows/1.1.0/Examples/exampleExceptionReport2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/ows/1.1.0/Examples/exampleGeneralBox2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | 189000 834000
7 | 285000 962000
8 |
9 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/ows/1.1.0/Examples/exampleGetCapabilities2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | 1.0.0
9 | 0.8.3
10 |
11 |
12 |
13 |
14 |
15 | text/xml
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/ows/1.1.0/Examples/exampleWGS84Box2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | -71.63 41.75
7 | -70.78 42.90
8 |
9 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/ows/1.1.0/owsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | owsAll.xsd
8 | This XML Schema Document includes and imports, directly and indirectly, all the XML Schemas defined by the OWS Common Implemetation Specification.
9 |
10 | OWS is an OGC Standard.
11 | Copyright (c) 2006,2010 Open Geospatial Consortium.
12 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/sld/1.0.0/example-sld.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 | OCEANSEA_1M:Foundation
11 |
12 | GEOSYM
13 | 1
14 |
15 |
16 | main
17 |
18 |
19 | GEOMETRY
20 |
21 |
22 | #96C3F5
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/wps/1.0.0/examples/10_wpsGetCapabilities_request.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 1.0.0
7 |
8 |
9 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/wps/1.0.0/examples/10_wpsGetCapabilities_request_SOAP.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
15 |
16 | 1.0.0
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/wps/1.0.0/examples/30_wpsDescribeProcess_request.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | intersection
4 | union
5 |
6 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/wps/1.0.0/examples/30_wpsDescribeProcess_request_SOAP.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 | intersection
14 | union
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/wps/1.0.0/examples/90_wpsExceptionReport.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | Request is for an operation that is not supported by this server
6 |
7 |
8 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ogc/wps/1.0.0/examples/MyComplexValueSchema.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ows/1.1.0/Examples/exampleConstraint1.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 1
15 | 1000
16 |
17 |
18 | Maximum value of TBD
19 | urn:ogc:def:dataType:OGC:1.1:positiveInteger
20 |
21 |
22 |
23 | 1
24 |
25 | Maximum value of TBD
26 | urn:ogc:def:dataType:OGC:1.1:positiveInteger
27 |
28 |
29 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ows/1.1.0/Examples/exampleExceptionReport1.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | service
9 |
10 |
11 | version
12 |
13 |
14 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ows/1.1.0/Examples/exampleExceptionReport2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ows/1.1.0/Examples/exampleGeneralBox2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | 189000 834000
7 | 285000 962000
8 |
9 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ows/1.1.0/Examples/exampleGetCapabilities2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | 1.0.0
9 | 0.8.3
10 |
11 |
12 |
13 |
14 |
15 | text/xml
16 |
17 |
18 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ows/1.1.0/Examples/exampleWGS84Box2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | -71.63 41.75
7 | -70.78 42.90
8 |
9 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/ows/1.1.0/owsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | owsAll.xsd 2006-10-04
8 | This XML Schema Document includes and imports, directly and indirectly, all the XML Schemas defined by the OWS Common Implemetation Specification.
9 | Copyright (c) 2006 Open Geospatial Consortium, Inc. All Rights Reserved.
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/compiler/src/test/resources/xlink/1.0.0/ReadMe.txt:
--------------------------------------------------------------------------------
1 | This XML Schema Document named xlinks.xsd has been stored here based
2 | on the change request:
3 | OGC 05-068r1 "Store xlinks.xsd file at a fixed location"
4 |
5 | Arliss Whiteside, 2005-11-22
6 |
7 |
--------------------------------------------------------------------------------
/demos/po-npm/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules/
--------------------------------------------------------------------------------
/demos/po-npm/README.md:
--------------------------------------------------------------------------------
1 | # Purchase Order Demo
2 |
3 | Just run `npm install` to generate mappings and schemas for the `purchaseorder.xsd`:
4 |
5 | * `mappings/PurchaseOrder.standard.js` - Jsonix mappings for the `purchaseorder.xsd` schema (standard naming)
6 | * `mappings/PurchaseOrder.compact.js` - Jsonix mappings for the `purchaseorder.xsd` schema (compact naming)
7 | * `mappings/PurchaseOrder.jsonschema` - JSON Schema generated for the `purchaseorder.xsd`
--------------------------------------------------------------------------------
/demos/po-npm/bindings/bindings.xjb:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/demos/po-npm/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "po-npm",
3 | "version": "0.0.0",
4 | "engines": [
5 | "node >= 0.8.0"
6 | ],
7 | "main": "index.js",
8 | "dependencies": {
9 | "jsonix": "x.x.x",
10 | "jsonix-schema-compiler": ">=2.3.4"
11 | },
12 | "devDependencies" : {
13 | "nodeunit" : "~0.8.6"
14 | },
15 | "scripts": {
16 | "prepublish" : "java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar -d mappings schemas/purchaseorder.xsd -b bindings",
17 | "test": "nodeunit src/test/javascript/tests.js"
18 | }
19 | }
--------------------------------------------------------------------------------
/dist/.gitignore:
--------------------------------------------------------------------------------
1 | /files/
2 |
--------------------------------------------------------------------------------
/full-build-1.6.bat:
--------------------------------------------------------------------------------
1 | setlocal
2 | echo Setting JAVA_HOME to %JAVA6_HOME%.
3 | set JAVA_HOME=%JAVA6_HOME%
4 | call mvn clean install -Pall -DperformRelease
5 | endlocal
--------------------------------------------------------------------------------
/full/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /dependency-reduced-pom.xml
3 |
--------------------------------------------------------------------------------
/full/src/main/resources/.placeholder:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/highsource/jsonix-schema-compiler/a160ac7521151bd84e7acd26d89ff8db957b2b25/full/src/main/resources/.placeholder
--------------------------------------------------------------------------------
/full/src/main/resources/simplelogger.properties:
--------------------------------------------------------------------------------
1 | org.slf4j.simpleLogger.logFile=System.out
2 | org.slf4j.simpleLogger.defaultLogLevel=trace
3 | #org.slf4j.simpleLogger.log.a.b.c
4 | #org.slf4j.simpleLogger.showDateTime=false
5 | #org.slf4j.simpleLogger.dateTimeFormat
6 | org.slf4j.simpleLogger.showThreadName=false
7 | org.slf4j.simpleLogger.showLogName=true
8 | org.slf4j.simpleLogger.showShortLogName=false
9 | org.slf4j.simpleLogger.levelInBrackets=true
10 | #org.slf4j.simpleLogger.warnLevelString=watn
--------------------------------------------------------------------------------
/full/src/test/java/org/hisrc/jsonix/samples/zero/ZeroMainTest.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.samples.zero;
2 |
3 | import java.io.File;
4 | import java.net.URL;
5 |
6 | import org.hisrc.jsonix.JsonixMain;
7 | import org.junit.Test;
8 |
9 | public class ZeroMainTest {
10 |
11 | @Test
12 | public void compilesZero() throws Exception {
13 |
14 | // Khm...
15 | new File("target/generated-sources/zero").mkdirs();
16 |
17 | URL schema = getClass().getResource("schema.xsd");
18 |
19 | final String[] arguments = new String[] { "-compact", "-extension", "-npa", "-logLevel", "INFO", "-xmlschema",
20 | schema.toExternalForm(), "-d", "target/generated-sources/zero"
21 |
22 | };
23 |
24 | JsonixMain.main(arguments);
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/full/src/test/resources/catalog.cat:
--------------------------------------------------------------------------------
1 | REWRITE_SYSTEM "http://www.w3.org" "w3c"
2 | REWRITE_SYSTEM "http://schemas.opengis.net" "ogc"
3 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/context/1.1.0/ort.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Web Map Context version 1.1
7 |
8 | WMC is an OGC Standard.
9 | Copyright (c) 2005,2010 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/context/1.1.0/wmcAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Web Map Context version 1.1
7 |
8 | This 'all-components' schema document has been constructed to satisfy the 'Publication Rules for OGC Schemas' described in the Policy Directives.
9 | Simon Cox 2010-11-15
10 |
11 | WMC is an OGC Standard.
12 | Copyright (c) 2005,2010 Open Geospatial Consortium.
13 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/filter/1.0.20/sort.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/filter/1.1.0/filterAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 | This XML Schema document includes and imports, directly or indirectly,
14 | all the XML Schema defined by the Filter Encoding Standard.
15 |
16 | Filter Encoding is an OGC Standard.
17 | Copyright (c) 2010 Open Geospatial Consortium.
18 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/2.1.2/gml.xsd:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 | gml.xsd v2.1.2.5
12 |
13 | GML 'all-components' schema.
14 |
15 | GML is an OGC Standard.
16 | Copyright (c) 2001,2002,2010 Open Geospatial Consortium.
17 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/base/gml.xsd:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | gml.xsd
6 | Top level GML schema
7 |
8 | GML is an OGC Standard.
9 | Copyright (c) 2001,2005,2010 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/column.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Grid column axis
10 |
11 | Column
12 |
13 |
14 | Sample
15 |
16 | For this second grid axis, column coordinate values match grid column numbers, but allow fractional coordinate values between grid points. The first column is sometimes called the "left" column, so the direction of this axis is "right", but these terms are not required.
17 | C
18 | urn:ogc:def:axisDirection:OGC:1.0:columnPositive
19 |
20 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/exampleCompoundCRS.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | OSGB36 /British National Grid + ODN
10 |
11 | 7405
12 |
13 |
14 | United Kingdom (UK) - Great Britain - England Scotland Wales - onshore; Isle of Man.
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/exampleProjectedCRSsimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | OSGB 1936 / British National Grid
10 |
11 | 27700
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/exampleVerticalCRSsimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Newlyn
10 |
11 | 5701
12 |
13 |
14 |
15 |
16 | Ordnance Datum Newlyn
17 |
18 | 5101
19 |
20 | geoidal
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/Examples/row.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Grid row axis
10 |
11 | Row
12 |
13 |
14 | Line
15 |
16 | For this first grid axis, row coordinate values match grid row numbers, but allow fractional coordinate values between grid points. The first row in a grid is sometimes called the "top" row, so the direction of this axis is "down", but these terms are not required.
17 | R
18 | urn:ogc:def:axisDirection:OGC:1.0:rowPositive
19 |
20 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/dataQuality.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Subset of dataQuality.xsd for GML 3.1.1 common CRSs profile. Primary editor: Arliss Whiteside.
10 |
11 | GML is an OGC Standard.
12 | Copyright (c) 2005,2010 Open Geospatial Consortium.
13 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
14 |
15 |
16 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CommonCRSs/1.0.0/gmlCommonCRSsProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | commonCRSsProfile.xsd
9 | GML 3.1.1 profile for Common CRSs.
10 |
11 | Copyright (c) 2005,2010 Open Geospatial Consortium.
12 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CrsSupport/1.0.0/crsSupportProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | crsSupportProfile.xsd
10 | GML 3.1.1 profile for CRS Support. Primary editor: Arliss Whiteside.
11 |
12 | GML is an OGC Standard.
13 | Copyright (c) 2005,2010 Open Geospatial Consortium.
14 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/CrsSupport/1.0.0/gmlCrsSupportProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | gml.xsd
6 | GML 3.1.1 profile for CRS Support. Primary editor: Arliss Whiteside.
7 |
8 | Copyright (c) 2005,2010 Open Geospatial Consortium.
9 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/exampleImageCRSpixelCenter.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 | Image C543D041201T084027 CRS pixel centers
11 |
12 | C543D041201T084027
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/exampleImageCRSpixelCorner.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Image C543D041201T084027 CRS pixel corners
10 |
11 | C543D041201T084027
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/gridSpacing.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Spacing between adjacent grid points, or between centers of adjacent pixels
10 | GridSpacing
11 | Length
12 |
13 |
14 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/imageDatumPixelCenter.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Origin at center of first pixel
10 |
11 | ImageDatumPixelCenter
12 |
13 | 2D image datum with the origin at the center of the first pixel in the image file, usually the first pixel collected by the image sensor. In an image file, the pixels in the first row are assumed to be listed first, followed by other rows, with pixels in each row listed (and collected) in column number order.
14 | center of first pixel
15 | cellCenter
16 |
17 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/imageDatumPixelCorner.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Origin at outside corner of first pixel
10 |
11 | ImageDatumPixelCorner
12 |
13 | 2D image datum with the origin at the outside corner of the first pixel in the image file, usually the first pixel collected by the image sensor. In an image file, the pixels in the first row are assumed to be listed first, followed by other rows, with pixels in each row listed (and collected) in column number order.
14 | outside corner of first pixel
15 | cellCorner
16 |
17 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/templateGeoreferencingTransformationSimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Example template for image georeferencing coordinate Transformations
10 | 1.0
11 |
12 |
13 |
14 |
15 |
16 |
17 | http://baesystems.com/rsm/rsmParameterValues/TBD.xml
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/Examples/templateGridElevationTransformationSimplified.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 | Template for grid elevation model coordinate Transformations
10 | 1.0
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | http://baesystems.com/DEM/TBD
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/GridCRSs/1.0.0/gmlGridCRSsProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | gml.xsd
8 | GML 3.1.1 grid CRSs profile. Primary editor: Arliss Whiteside.
9 |
10 | Copyright (c) 2005,2010 Open Geospatial Consortium.
11 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/1.0.0/Examples/pixelInCell.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PixelInCell standard values
5 |
6 |
7 |
8 | The origin of the image coordinate system is at the centre of a grid cell or image pixel.
9 | urn:ogc:def:pixelInCell:OGC:1.0:cellCenter
10 |
11 |
12 |
13 |
14 |
15 | The origin of the image coordinate system is at the corner of a grid cell, or half-way between the centres of adjacent image pixels.
16 | urn:ogc:def:pixelInCell:OGC:1.0:cellCorner
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/1.0.0/Examples/rangeMeaning.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Range Meaning standard values
5 |
6 |
7 |
8 | Any value between and including minimumValue and maximiumValue is valid.
9 | urn:ogc:def:rangeMeaning:OGC:1.0:exact
10 |
11 |
12 |
13 |
14 |
15 | The axis is continuous with values wrapping around at the minimumValue and maximumValue. Values with the same meaning repeat modulo the difference between maximumValue and minimumValue.
16 | urn:ogc:def:rangeMeaning:OGC:1.0:wraparound
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/1.0.0/gmlSimpleDictionaryProfile.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | gml.xsd
8 | GML 3.1.1 profile for Dictionary. Primary editor: Arliss Whiteside.
9 |
10 | Copyright (c) 2005,2010 Open Geospatial Consortium.
11 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/SimpleDictionary/ReadMe.txt:
--------------------------------------------------------------------------------
1 | OGC(r) GML 3.1.1 SimpleDictionary profile schema ReadMe.txt
2 | ======================================================
3 |
4 | OGC(r) GML 3.1.1 SimpleDictionary profile Standard
5 | -----------------------------------------------------------------------
6 |
7 | More information may be found at
8 | http://www.opengeospatial.org/standards/gml
9 |
10 | The most current schema is available at http://schemas.opengis.net/ .
11 |
12 | -----------------------------------------------------------------------
13 |
14 | Change history:
15 |
16 | 2012-07-21 Kevin Stegemoller
17 | * v1.0: Updated Copyright
18 |
19 | 2010-02-13 Kevin Stegemoller
20 | * v1.0: Update relative schema imports to absolute URLs (06-135r7 s#15)
21 |
22 | 2006-08-22 Arliss Whiteside
23 | * v1.0: Added SimpleDictionary 1.0.0 (OGC 05-099r2)
24 |
25 | Note: check each OGC numbered document for detailed changes.
26 |
27 | -----------------------------------------------------------------------
28 |
29 | Policies, Procedures, Terms, and Conditions of OGC(r) are available
30 | http://www.opengeospatial.org/ogc/legal/ .
31 |
32 | Copyright (c) 2012 Open Geospatial Consortium.
33 |
34 | -----------------------------------------------------------------------
35 |
36 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.0.9/basicTypes.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.0.9/gmlBase.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.0.9/measures.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.1.0/ReadMe.txt:
--------------------------------------------------------------------------------
1 | OpenGIS(r) GML PIDF-LO Geometry Shape Application Schema 0.1.0 (OGC 06-142r1) - ReadMe.txt
2 | -----------------------------------------------------------------------
3 |
4 | The GML PIDF-LO Geometry Shape Application Schema defined in the
5 | OGC document 06-142r1.
6 |
7 | More information on the OGC GML standard may be found at
8 | http://www.opengeospatial.org/standards/gml
9 |
10 |
11 | 2009-10-15 Kevin Stegemoller
12 |
13 | * post geoshape/0.1.0 schemas from 06-142r1
14 |
15 | -----------------------------------------------------------------------
16 |
17 | Policies, Procedures, Terms, and Conditions of OGC(r) are available
18 | http://www.opengeospatial.org/ogc/legal/ .
19 |
20 | The Open Geospatial Consortium, Inc. official schema repository is at
21 | http://schemas.opengis.net/ .
22 |
23 | Copyright (c) 2007-2009 Open Geospatial Consortium.
24 |
25 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.1.0/gmlBase.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Copyright (c) 2007,2009 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/gml/3.1.1/profiles/geoshape/0.1.0/measures.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Copyright (c) 2007,2009 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/ows/1.1.0/Examples/exampleConstraint1.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 1
15 | 1000
16 |
17 |
18 | Maximum value of TBD
19 | urn:ogc:def:dataType:OGC:1.1:positiveInteger
20 |
21 |
22 |
23 | 1
24 |
25 | Maximum value of TBD
26 | urn:ogc:def:dataType:OGC:1.1:positiveInteger
27 |
28 |
29 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/ows/1.1.0/Examples/exampleExceptionReport1.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | service
9 |
10 |
11 | version
12 |
13 |
14 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/ows/1.1.0/Examples/exampleExceptionReport2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/ows/1.1.0/Examples/exampleGeneralBox2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | 189000 834000
7 | 285000 962000
8 |
9 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/ows/1.1.0/Examples/exampleGetCapabilities2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | 1.0.0
9 | 0.8.3
10 |
11 |
12 |
13 |
14 |
15 | text/xml
16 |
17 |
18 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/ows/1.1.0/Examples/exampleWGS84Box2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | -71.63 41.75
7 | -70.78 42.90
8 |
9 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/ows/1.1.0/owsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | owsAll.xsd
8 | This XML Schema Document includes and imports, directly and indirectly, all the XML Schemas defined by the OWS Common Implemetation Specification.
9 |
10 | OWS is an OGC Standard.
11 | Copyright (c) 2006,2010 Open Geospatial Consortium.
12 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/sld/1.0.0/example-sld.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 | OCEANSEA_1M:Foundation
11 |
12 | GEOSYM
13 | 1
14 |
15 |
16 | main
17 |
18 |
19 | GEOMETRY
20 |
21 |
22 | #96C3F5
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/wps/1.0.0/examples/10_wpsGetCapabilities_request.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 1.0.0
7 |
8 |
9 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/wps/1.0.0/examples/10_wpsGetCapabilities_request_SOAP.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
15 |
16 | 1.0.0
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/wps/1.0.0/examples/30_wpsDescribeProcess_request.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | intersection
4 | union
5 |
6 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/wps/1.0.0/examples/30_wpsDescribeProcess_request_SOAP.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 | intersection
14 | union
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/wps/1.0.0/examples/90_wpsExceptionReport.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 | Request is for an operation that is not supported by this server
6 |
7 |
8 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/wps/1.0.0/examples/MyComplexValueSchema.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/full/src/test/resources/ogc/wps/1.0.0/wpsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $Id: wpsAll.xsd 2007-10-09 $
5 |
6 | This XML Schema includes and imports, directly and indirectly, all the XML Schemas defined by the WPS Implemetation Specification.
7 |
8 | WPS is an OGC Standard.
9 | Copyright (c) 2007,2010 Open Geospatial Consortium.
10 | To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ .
11 |
12 |
13 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/install.bat:
--------------------------------------------------------------------------------
1 | setlocal
2 | echo Setting JAVA_HOME to %JAVA6_HOME%.
3 | set JAVA_HOME=%JAVA6_HOME%
4 | echo Performing a short clean build.
5 | call mvn clean install -DperformRelease
6 | echo Short clean build completed.
7 | echo Performing a full clean build.
8 | call mvn clean install -DperformRelease -Ptests
9 | echo Full clean build completed.
10 | endlocal
--------------------------------------------------------------------------------
/npm/.gitignore:
--------------------------------------------------------------------------------
1 | lib
2 | target
3 |
--------------------------------------------------------------------------------
/npm/.npmignore:
--------------------------------------------------------------------------------
1 | /src
2 | /node_modules
3 | /target
4 | pom.xml
5 |
--------------------------------------------------------------------------------
/npm/README.md:
--------------------------------------------------------------------------------
1 | # Jsonix Schema Compiler
2 |
3 | Generates [Jsonix](https://github.com/highsource/jsonix) mappings for XML Schemas.
4 |
5 | Please refer to [Wiki](https://github.com/highsource/jsonix-schema-compiler/wiki) for documentation.
6 |
7 | This package provides the Jsonix Schema Compiler (under `lib/jsonix-schema-compiler-full.jar`).
8 | So you can invoke the schema compiler via [command line](https://github.com/highsource/jsonix-schema-compiler/wiki/Command-Line-Usage) as follows:
9 |
10 | ```
11 | java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar schema.xsd
12 | ```
13 |
14 | # Usage
15 |
16 | Typical usage is as follows:
17 |
18 | * Make your package depend on `jsonix-schema-compiler`.
19 | * Invoke the Jsonix Schema Compiler in `scripts/prepublish`.
20 |
21 | ## Example
22 |
23 | ```javascript
24 | {
25 | "name": "mypackage",
26 | ...
27 | "dependencies": {
28 | ...
29 | "jsonix-schema-compiler": "~"
30 | ...
31 | },
32 | ...
33 | "scripts": {
34 | ...
35 | "prepublish" : "java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar schema.xsd"
36 | ...
37 | }
38 | ...
39 | }
40 | ```
--------------------------------------------------------------------------------
/npm/jsonix-schema-compiler.js:
--------------------------------------------------------------------------------
1 | // No JavaScript here as the sole purpose of this package is to provide lib/jsonix-schema-compiler-full.jar
--------------------------------------------------------------------------------
/npm/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "jsonix-schema-compiler",
3 | "version" : "2.3.10-SNAPSHOT",
4 | "description" : "Jsonix Schema Compiler generates Jsonix mappings from XML Schemas",
5 | "keywords" : [
6 | "json", "xml", "unmarshal", "unmarshalling", "marshal",
7 | "marshalling", "parse", "parsing", "serialize", "serializing",
8 | "javascript objects", "dom", "util", "utility", "jaxb",
9 | "jsonix", "jsonix-schema-compiler",
10 | "xs", "xsd", "xml schema", "wsdl", "dtd", "relax ng", "relaxng", "relax ng compact", "relaxng compact",
11 | "jsonschema", "json schema"
12 | ],
13 | "homepage" : "https://github.com/highsource/jsonix-schema-compiler",
14 | "bugs" : {
15 | "url" : "http://github.com/highsource/jsonix-schema-compiler/issues"
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git://github.com/highsource/jsonix-schema-compiler.git"
20 | },
21 | "licenses" : [ {
22 | "type" : "BSD-3-Clause",
23 | "url" : "http://github.com/highsource/jsonix-schema-compiler/raw/master/LICENSE"
24 | } ],
25 | "author" : {
26 | "name" : "Alexey Valikov",
27 | "url" : "http://github.com/highsource"
28 | },
29 | "contributors" : [ {
30 | "name" : "Conrad Pankoff",
31 | "url" : "https://github.com/deoxxa"
32 | } ],
33 | "main" : "jsonix-schema-compiler.js",
34 | "repository" : {
35 | "type" : "git",
36 | "url" : "http://github.com/highsource/jsonix-schema-compiler.git"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/plugin/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /dependency-reduced-pom.xml
3 |
--------------------------------------------------------------------------------
/plugin/src/main/java/org/hisrc/jsonix/xjc/plugin/Dummy.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.xjc.plugin;
2 |
3 | public class Dummy {}
4 |
--------------------------------------------------------------------------------
/samples/po/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/samples/po/project-build.bat:
--------------------------------------------------------------------------------
1 | java -jar lib/jsonix-schema-compiler-full-${jsonix-schema-compiler.version}.jar -d target/generated-sources/xjc src/main/resources/purchaseorder.xsd -b src/main/resources/bindings.xjb -Xjsonix-compact
2 |
--------------------------------------------------------------------------------
/samples/po/project-package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "${project.artifactId}-npm",
3 | "version": "${project.version}",
4 | "engines": [
5 | "node >= 0.8.0"
6 | ],
7 | "main": "src/main/javascript/index.js",
8 | "dependencies": {
9 | "jsonix": "x.x.x",
10 | "jsonix-schema-compiler": "x.x.x"
11 | },
12 | "devDependencies" : {
13 | "nodeunit" : "~0.8.6"
14 | },
15 | "scripts": {
16 | "prepublish" : "java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar -d target/generated-sources/xjc src/main/resources/purchaseorder.xsd -b src/main/resources/bindings.xjb",
17 | "test": "nodeunit src/test/javascript/tests.js"
18 | }
19 | }
--------------------------------------------------------------------------------
/samples/po/src/main/javascript/index.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/highsource/jsonix-schema-compiler/a160ac7521151bd84e7acd26d89ff8db957b2b25/samples/po/src/main/javascript/index.js
--------------------------------------------------------------------------------
/samples/po/src/main/resources/bindings.xjb:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/samples/po/src/test/javascript/po-tests.js:
--------------------------------------------------------------------------------
1 | var Jsonix = require('jsonix').Jsonix;
2 | var PO = require('../../../target/generated-sources/xjc/PurchaseOrder.std').PO;
3 |
4 | module.exports = {
5 | "UnmarshalFile": function(test) {
6 |
7 | // Create Jsonix context
8 | var context = new Jsonix.Context([ PO ]);
9 |
10 | // Create unmarshaller
11 | var unmarshaller = context.createUnmarshaller();
12 |
13 | // Unmarshal the XML file
14 | unmarshaller.unmarshalFile( 'src/test/resources/po.xml',
15 | function(poElement) {
16 |
17 | var po = poElement.value;
18 |
19 |
20 | test.equal('Alice Smith', po.shipTo.name);
21 | test.equal('123 Maple Street', po.shipTo.street);
22 | test.equal('Mill Valley', po.shipTo.city);
23 | test.equal('CA', po.shipTo.state);
24 | test.equal('US', po.shipTo.country);
25 |
26 | test.equal('Robert Smith', po.billTo.name);
27 | test.equal('8 Oak Avenue', po.billTo.street);
28 | test.equal('Old Town', po.billTo.city);
29 | test.equal('PA', po.billTo.state);
30 | test.equal('US', po.billTo.country);
31 | test.done();
32 | });
33 | }
34 | };
35 |
--------------------------------------------------------------------------------
/samples/po/src/test/javascript/tests.js:
--------------------------------------------------------------------------------
1 | var http = require('http');
2 | var server;
3 | module.exports =
4 | {
5 | "po-tests": require('./po-tests')
6 | };
7 |
--------------------------------------------------------------------------------
/samples/po/src/test/resources/po.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Alice Smith
4 | 123 Maple Street
5 | Mill Valley
6 | CA
7 | 90952
8 |
9 |
10 | Robert Smith
11 | 8 Oak Avenue
12 | Old Town
13 | PA
14 | 95819
15 |
16 | Hurry, my lawn is going wild!
17 |
18 | -
19 | Lawnmower
20 | 1
21 | 148.95
22 | Confirm this is electric
23 |
24 | -
25 | Baby Monitor
26 | 1
27 | 39.98
28 | 1999-05-21
29 |
30 |
31 |
--------------------------------------------------------------------------------
/samples/src/main/assembly/ant-src.xml:
--------------------------------------------------------------------------------
1 |
2 | ant-src
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | README*
10 | LICENSE*
11 | NOTICE*
12 |
13 |
14 |
15 |
16 | src
17 |
18 |
19 |
20 |
21 | lib
22 |
28 |
29 | org.hisrc.jsonix:jsonix-schema-compiler-full
30 |
33 |
34 |
35 |
36 |
37 |
38 | ${basedir}/project-build.xml
39 | build.xml
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/samples/src/main/assembly/batch-src.xml:
--------------------------------------------------------------------------------
1 |
2 | batch-src
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | README*
10 | LICENSE*
11 | NOTICE*
12 | build.bat
13 |
14 |
15 |
16 | src
17 |
18 |
19 |
20 |
21 | lib
22 |
23 | org.hisrc.jsonix:jsonix-schema-compiler-full
24 |
25 |
26 |
27 |
28 |
29 | ${basedir}/project-build.bat
30 | build.bat
31 | true
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/samples/src/main/assembly/maven-src.xml:
--------------------------------------------------------------------------------
1 |
2 | maven-src
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | README*
10 | LICENSE*
11 | NOTICE*
12 |
13 |
14 |
15 | src
16 |
17 |
18 |
19 |
20 | ${basedir}/project-pom.xml
21 | pom.xml
22 | true
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/samples/src/main/assembly/npm-src.xml:
--------------------------------------------------------------------------------
1 |
2 | npm-src
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | README*
10 | LICENSE*
11 | NOTICE*
12 |
13 |
14 |
15 |
16 | src
17 |
18 |
19 |
20 |
21 | ${basedir}/project-package.json
22 | package.json
23 | true
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
--------------------------------------------------------------------------------
/tests/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | jsonix-tests
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/tests/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/tests/filter/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
--------------------------------------------------------------------------------
/tests/filter/src/main/resources/ows/1.1.0/owsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | owsAll.xsd 2006-10-04
8 | This XML Schema Document includes and imports, directly and indirectly, all the XML Schemas defined by the OWS Common Implemetation Specification.
9 | Copyright (c) 2006 Open Geospatial Consortium, Inc. All Rights Reserved.
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/filter/src/main/resources/wps/1.0.0/common/WSDL.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $Id: WSDL.xsd 2007-05-01 $
5 |
6 | Location of a WSDL document.
7 | Copyright (c) 2007 OGC, All Rights Reserved.
8 | For conditions, see OGC Software Notice http://www.opengeospatial.org/ogc/software
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | Location of a WSDL document.
17 |
18 |
19 |
20 |
21 | The URL from which the WSDL document can be retrieved.
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/filter/src/main/resources/wps/1.0.0/wpsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $Id: wpsAll.xsd 2007-10-09 $
5 |
6 | This XML Schema includes and imports, directly and indirectly, all the XML Schemas defined by the WPS Implemetation Specification.
7 | Copyright (c) 2007 OGC, All Rights Reserved.
8 | For conditions, see OGC Software Notice http://www.opengeospatial.org/ogc/software
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/filter/src/main/resources/xlink/1.0.0/ReadMe.txt:
--------------------------------------------------------------------------------
1 | This XML Schema Document named xlinks.xsd has been stored here based
2 | on the change request:
3 | OGC 05-068r1 "Store xlinks.xsd file at a fixed location"
4 |
5 | Arliss Whiteside, 2005-11-22
6 |
7 |
--------------------------------------------------------------------------------
/tests/issues/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | .settings
3 | .project
4 | .classpath
5 |
--------------------------------------------------------------------------------
/tests/issues/src/main/resources/binding.xjb:
--------------------------------------------------------------------------------
1 |
7 |
8 |
10 |
15 |
16 |
17 |
18 |
19 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/tests/issues/src/test/java/org/hisrc/jsonix/tests/issues/IssueGHC87Test.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.tests.issues;
2 |
3 | import static org.junit.Assert.assertEquals;
4 |
5 | import org.hisrc.jsonix.tests.issues.IssueGHC87ExternalEnumType;
6 | import org.hisrc.jsonix.tests.issues.IssueGHC87Type;
7 | import org.junit.Test;
8 |
9 | public class IssueGHC87Test {
10 |
11 | @Test
12 | public void testIssueGHC87TypeDefaults() {
13 |
14 | final IssueGHC87Type type = new IssueGHC87Type();
15 |
16 | assertEquals(type.getExternalEnum(), IssueGHC87ExternalEnumType.TEST_1);
17 | assertEquals(type.getInternalEnum(), "test1");
18 | assertEquals(type.getExternalPattern(), "123");
19 | assertEquals(type.getInternalPattern(), "123");
20 | }
21 |
22 | }
--------------------------------------------------------------------------------
/tests/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 | jsonix-schema-compiler-tests
4 | pom
5 | Jsonix Schema Compiler Tests
6 |
7 | org.hisrc.jsonix
8 | jsonix-schema-compiler-project
9 | 2.3.10-SNAPSHOT
10 |
11 |
12 | filter
13 | wps
14 | zero
15 | issues
16 |
17 |
18 |
19 |
20 |
21 | org.jvnet.jaxb2.maven2
22 | maven-jaxb2-plugin
23 |
24 |
25 |
26 | generate
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | org.apache.maven.plugins
36 | maven-deploy-plugin
37 |
38 | true
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tests/src/main/resources/.placeholder:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/highsource/jsonix-schema-compiler/a160ac7521151bd84e7acd26d89ff8db957b2b25/tests/src/main/resources/.placeholder
--------------------------------------------------------------------------------
/tests/wps/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
--------------------------------------------------------------------------------
/tests/wps/src/main/resources/binding.xjb:
--------------------------------------------------------------------------------
1 |
8 |
9 |
11 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
25 |
26 |
27 |
28 |
30 |
31 |
32 |
33 |
34 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tests/wps/src/main/resources/ows/1.1.0/owsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | owsAll.xsd 2006-10-04
8 | This XML Schema Document includes and imports, directly and indirectly, all the XML Schemas defined by the OWS Common Implemetation Specification.
9 | Copyright (c) 2006 Open Geospatial Consortium, Inc. All Rights Reserved.
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/wps/src/main/resources/wps/1.0.0/common/WSDL.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $Id: WSDL.xsd 2007-05-01 $
5 |
6 | Location of a WSDL document.
7 | Copyright (c) 2007 OGC, All Rights Reserved.
8 | For conditions, see OGC Software Notice http://www.opengeospatial.org/ogc/software
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | Location of a WSDL document.
17 |
18 |
19 |
20 |
21 | The URL from which the WSDL document can be retrieved.
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tests/wps/src/main/resources/wps/1.0.0/wpsAll.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $Id: wpsAll.xsd 2007-10-09 $
5 |
6 | This XML Schema includes and imports, directly and indirectly, all the XML Schemas defined by the WPS Implemetation Specification.
7 | Copyright (c) 2007 OGC, All Rights Reserved.
8 | For conditions, see OGC Software Notice http://www.opengeospatial.org/ogc/software
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/tests/wps/src/main/resources/xlink/1.0.0/ReadMe.txt:
--------------------------------------------------------------------------------
1 | This XML Schema Document named xlinks.xsd has been stored here based
2 | on the change request:
3 | OGC 05-068r1 "Store xlinks.xsd file at a fixed location"
4 |
5 | Arliss Whiteside, 2005-11-22
6 |
7 |
--------------------------------------------------------------------------------
/tests/zero/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
--------------------------------------------------------------------------------
/tests/zero/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | jsonix-tests-zero
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/tests/zero/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/javascript=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding//src/test/java=UTF-8
5 | encoding//src/test/resources=UTF-8
6 | encoding//target/generated-sources/xjc=UTF-8
7 | encoding/=UTF-8
8 |
--------------------------------------------------------------------------------
/tests/zero/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.6
6 |
--------------------------------------------------------------------------------
/tests/zero/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/ZeroTest.scripts:
--------------------------------------------------------------------------------
1 | /org/hisrc/jsonix/Jsonix.complete.scripts
2 | ZeroTest.test.scripts
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/ZeroTest.test.scripts:
--------------------------------------------------------------------------------
1 | /org_hisrc_jsonix_tests_zero.js
2 | Data.js
3 | ZeroTest.js
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/ZeroTest.xhtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/anyAttribute-0.xml:
--------------------------------------------------------------------------------
1 | test
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/anyElementLax-0.xml:
--------------------------------------------------------------------------------
1 |
2 | test
3 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/anyElementLax-1.xml:
--------------------------------------------------------------------------------
1 |
2 | test
3 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/attribute-0.xml:
--------------------------------------------------------------------------------
1 | test
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/base-0.xml:
--------------------------------------------------------------------------------
1 |
2 | one
3 | 2
4 |
5 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/element-0.xml:
--------------------------------------------------------------------------------
1 |
2 | one
3 | two
4 | three
5 | - four five
6 | six seven
7 | eight nine
8 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/elementRef-0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | one
4 | 2
5 |
6 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/elementRef-1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | one
4 | 2
5 |
6 |
7 | one
8 | 2
9 | urn:three
10 | 2004-05-06
11 |
12 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/elementRefMixed-0.xml:
--------------------------------------------------------------------------------
1 |
2 | abc
3 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/elementRefs-0.xml:
--------------------------------------------------------------------------------
1 |
2 | one
3 | 2
4 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/elements-0.xml:
--------------------------------------------------------------------------------
1 |
2 | one
3 | 2
4 | 3
5 | four
6 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/extended-0.xml:
--------------------------------------------------------------------------------
1 |
2 | one
3 | 2
4 | urn:three
5 | 2004-05-06
6 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/simpleTypes-0.xml:
--------------------------------------------------------------------------------
1 |
2 | a:aq
3 |
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/string-0.xml:
--------------------------------------------------------------------------------
1 | test
--------------------------------------------------------------------------------
/tests/zero/src/main/resources/org/hisrc/jsonix/tests/zero/value-0.xml:
--------------------------------------------------------------------------------
1 | test
--------------------------------------------------------------------------------
/tests/zero/src/test/java/org/hisrc/jsonix/tests/zero/RunZeroPlugin.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.tests.zero;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 |
6 | import org.jvnet.jaxb2.maven2.AbstractXJC2Mojo;
7 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo;
8 |
9 | public class RunZeroPlugin extends RunXJC2Mojo {
10 |
11 | @Override
12 | protected void configureMojo(AbstractXJC2Mojo mojo) {
13 | super.configureMojo(mojo);
14 | mojo.setExtension(true);
15 | mojo.setForceRegenerate(true);
16 | mojo.setDebug(false);
17 | }
18 |
19 | @Override
20 | public List getArgs() {
21 | final List args = new ArrayList(super.getArgs());
22 | args.add("-Xjsonix");
23 | return args;
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/tests/zero/src/test/java/org/hisrc/jsonix/tests/zero/ZeroTest.java:
--------------------------------------------------------------------------------
1 | package org.hisrc.jsonix.tests.zero;
2 |
3 | import net.disy.legato.testing.script.AbstractJsUnitScriptTest;
4 |
5 | import com.gargoylesoftware.htmlunit.BrowserVersion;
6 |
7 | public class ZeroTest extends AbstractJsUnitScriptTest {
8 |
9 | @Override
10 | public BrowserVersion getBrowserVersion() {
11 | return BrowserVersion.FIREFOX_3;
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/tests/zero/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | log4j.rootCategory=DEBUG, stdout
2 |
3 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
4 | log4j.appender.stdout.target=system.out
5 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
6 | log4j.appender.stdout.layout.ConversionPattern=%d %p [%c{3}] | <%m>%n
7 |
8 | log4j.logger.com.gargoylesoftware.htmlunit=WARN
9 | log4j.logger.org.apache.commons.httpclient=WARN
10 | log4j.logger.httpclient.wire.content=DEBUG
11 | log4j.logger.httpclient.wire.header=WARN
--------------------------------------------------------------------------------