Skip to content

Commit

Permalink
Added @SInCE annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Sep 15, 2024
1 parent 7e2e87f commit d0bb357
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pmml-model/src/main/java/org/jpmml/model/annotations/Since.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Villu Ruusmann
*/
package org.jpmml.model.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention (
value = RetentionPolicy.RUNTIME
)
@Target (
value = {ElementType.TYPE, ElementType.FIELD}
)
public @interface Since {

String value();
}
41 changes: 41 additions & 0 deletions pmml-model/src/main/schema/pmml.xjb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='AnomalyDetectionModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.5.0")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -241,6 +242,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='AssociationModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -347,6 +349,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='BaselineModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -388,6 +391,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='BayesianNetworkModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -603,6 +607,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='ClusteringModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -1140,6 +1145,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='GaussianProcessModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -1289,6 +1295,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='GeneralRegressionModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -1590,6 +1597,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='MiningModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -1632,6 +1640,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='MiningField']/xsd:complexType/xsd:attribute[@name='invalidValueReplacement']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.PMML_4_4)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.8")</annox:annotateProperty>
</jaxb:bindings>

<jaxb:bindings node="//xsd:element[@name='MiningField']/xsd:complexType/xsd:attribute[@name='invalidValueTreatment']">
Expand Down Expand Up @@ -1718,6 +1727,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='NaiveBayesModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -1758,6 +1768,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='NearestNeighborModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -1794,6 +1805,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='NeuralLayer']/xsd:complexType/xsd:attribute[@name='x-leakage']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.5.2")</annox:annotateProperty>
<jaxb:property
name="leakage"
/>
Expand Down Expand Up @@ -1837,13 +1849,15 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='NeuralNetwork']/xsd:complexType/xsd:attribute[@name='x-leakage']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.5.2")</annox:annotateProperty>
<jaxb:property
name="leakage"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:element[@name='NeuralNetwork']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -2129,6 +2143,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='OutputField']/xsd:complexType/xsd:attribute[@name='x-reportField']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.8")</annox:annotateProperty>
<jaxb:property
name="reportField"
/>
Expand Down Expand Up @@ -2288,6 +2303,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='PMML']/xsd:complexType/xsd:attribute[@name='x-baseVersion']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.3")</annox:annotateProperty>
<jaxb:property
name="baseVersion"
/>
Expand Down Expand Up @@ -2553,6 +2569,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='RegressionModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -2696,6 +2713,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='RuleSetModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -2735,6 +2753,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='Scorecard']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -2827,6 +2846,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='Segmentation']/xsd:complexType/xsd:attribute[@name='missingPredictionTreatment']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.PMML_4_4)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.4.3")</annox:annotateProperty>
</jaxb:bindings>

<jaxb:bindings node="//xsd:element[@name='Segmentation']/xsd:complexType/xsd:attribute[@name='missingPredictionTreatment']/xsd:simpleType">
Expand All @@ -2838,6 +2858,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='Segmentation']/xsd:complexType/xsd:attribute[@name='missingThreshold']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.PMML_4_4)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.4.3")</annox:annotateProperty>
</jaxb:bindings>

<jaxb:bindings node="//xsd:element[@name='Segmentation']/xsd:complexType/xsd:attribute[@name='multipleModelMethod']/xsd:simpleType">
Expand All @@ -2853,14 +2874,17 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='Segmentation']/xsd:complexType/xsd:attribute[@name='multipleModelMethod']/xsd:simpleType/xsd:restriction/xsd:enumeration[@value='weightedMedian']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.PMML_4_4)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.3.3")</annox:annotateEnumConstant>
</jaxb:bindings>

<jaxb:bindings node="//xsd:element[@name='Segmentation']/xsd:complexType/xsd:attribute[@name='multipleModelMethod']/xsd:simpleType/xsd:restriction/xsd:enumeration[@value='weightedSum']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.PMML_4_4)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.3.3")</annox:annotateEnumConstant>
</jaxb:bindings>

<jaxb:bindings node="//xsd:element[@name='Segmentation']/xsd:complexType/xsd:attribute[@name='multipleModelMethod']/xsd:simpleType/xsd:restriction/xsd:enumeration[@value='x-multiModelChain']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.6.4")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="MULTI_MODEL_CHAIN"
/>
Expand Down Expand Up @@ -2949,6 +2973,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='SequenceModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -3154,6 +3179,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='SupportVectorMachineModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -3346,6 +3372,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='TextIndex']/xsd:complexType/xsd:attribute[@name='x-wordRE']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.5.10")</annox:annotateProperty>
<jaxb:property
name="wordRE"
/>
Expand All @@ -3364,6 +3391,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='TextIndexNormalization']/xsd:complexType/xsd:attribute[@name='x-wordRE']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.5.10")</annox:annotateProperty>
<jaxb:property
name="wordRE"
/>
Expand All @@ -3386,6 +3414,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='TextModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -3572,6 +3601,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='TimeSeriesModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -3685,6 +3715,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:element[@name='TreeModel']/xsd:complexType/xsd:attribute[@name='x-mathContext']">
<annox:annotateProperty>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateProperty>
<annox:annotateProperty>org.jpmml.model.annotations.Since("1.3.7")</annox:annotateProperty>
<jaxb:property
name="mathContext"
/>
Expand Down Expand Up @@ -3939,55 +3970,63 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateDaysSince[1990]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_DAYS_SINCE_1990"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateDaysSince[2000]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_DAYS_SINCE_2000"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateDaysSince[2010]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_DAYS_SINCE_2010"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateDaysSince[2020]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_DAYS_SINCE_2020"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateTimeSecondsSince[1990]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_TIME_SECONDS_SINCE_1990"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateTimeSecondsSince[2000]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_TIME_SECONDS_SINCE_2000"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateTimeSecondsSince[2010]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_TIME_SECONDS_SINCE_2010"
/>
</jaxb:bindings>

<jaxb:bindings node="//xsd:simpleType[@name='DATATYPE']/xsd:restriction/xsd:enumeration[@value='x-dateTimeSecondsSince[2020]']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.1")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="DATE_TIME_SECONDS_SINCE_2020"
/>
Expand Down Expand Up @@ -4046,6 +4085,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:simpleType[@name='MISSING-VALUE-TREATMENT-METHOD']/xsd:restriction/xsd:enumeration[@value='returnInvalid']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.PMML_4_4)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.4.2")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="RETURN_INVALID"
/>
Expand Down Expand Up @@ -4182,6 +4222,7 @@ Copyright (c) 2014 Villu Ruusmann

<jaxb:bindings node="//xsd:simpleType[@name='RESULT-FEATURE']/xsd:restriction/xsd:enumeration[@value='x-report']">
<annox:annotateEnumConstant>org.jpmml.model.annotations.Added(org.dmg.pmml.Version.XPMML)</annox:annotateEnumConstant>
<annox:annotateEnumConstant>org.jpmml.model.annotations.Since("1.3.8")</annox:annotateEnumConstant>
<jaxb:typesafeEnumMember
name="REPORT"
/>
Expand Down

0 comments on commit d0bb357

Please sign in to comment.