antora/supplemental-ui/schema/chg/chg.xsd (101 lines of code) (raw):

<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <xs:schema targetNamespace="https://causeway.apache.org/schema/chg" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="https://causeway.apache.org/schema/chg" xmlns:com="https://causeway.apache.org/schema/common" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1" xmlns:annox="http://annox.dev.java.net" jaxb:extensionBindingPrefixes="annox"> <xs:import namespace="https://causeway.apache.org/schema/common" schemaLocation="../common/common-2.0.xsd"/> <xs:element name="changesDto"> <xs:annotation> <xs:documentation>Represents v2.0 of this schema (as per majorVersion.minorVersion @default attribute, below). The changes (create/update/delete) to one or more domain objects within a transaction. (nb: only published objects are included in these lists). </xs:documentation> <xs:appinfo> <annox:annotate>@javax.inject.Named("causeway.schema.chg.v2.ChangesDto")</annox:annotate> </xs:appinfo> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="majorVersion" type="xs:string" minOccurs="0" maxOccurs="1" default="2"> <xs:annotation> <xs:documentation>The major version of the schema that an XML instance was created using. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="minorVersion" type="xs:string" minOccurs="0" maxOccurs="1" default="0"> <xs:annotation> <xs:documentation>The minor version of the schema that an XML instance was created using. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="interactionId" type="xs:string"> <xs:annotation> <xs:documentation>Unique identifier of the interaction id within which this change occurred. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="sequence" type="xs:int"> <xs:annotation> <xs:documentation>Unique sequence number of the transaction committed within the interaction giving rise to this set of changes. Although there is usually just one transaction per interaction, in advanced use cases there could be many. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="completedAt" type="xs:dateTime" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation>The point in time that these changes were completed. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="username" type="xs:string"> <xs:annotation> <xs:documentation>The name of the user that performed this transaction. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="objects" type="objectsDto"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="objectsDto"> <xs:annotation> <xs:documentation>A set of changes to domain objects.</xs:documentation> <xs:appinfo> <annox:annotate>@javax.inject.Named("causeway.schema.chg.v2.ObjectsDto")</annox:annotate> </xs:appinfo> </xs:annotation> <xs:sequence> <xs:element name="loaded" type="xs:int"> <xs:annotation> <xs:documentation>The number of objects loaded within the transaction. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="created" type="com:oidsDto"> <xs:annotation> <xs:documentation>The list of objects created within the transaction. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="updated" type="com:oidsDto"> <xs:annotation> <xs:documentation>The list of objects updated within the transaction. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="deleted" type="com:oidsDto"> <xs:annotation> <xs:documentation>The list of objects deleted within the transaction. </xs:documentation> </xs:annotation> </xs:element> <xs:element name="propertiesModified" type="xs:int"> <xs:annotation> <xs:documentation>The number of object properties modified within the transaction. </xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:schema>