Skip to content

Commit 04ab15a

Browse files
committed
initial commit
1 parent 8870460 commit 04ab15a

File tree

1,110 files changed

+358211
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,110 files changed

+358211
-0
lines changed

alfresco-dictionary-schema/pom.xml

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>ru.neodoc.content</groupId>
4+
<artifactId>alfresco-dictionary-schema</artifactId>
5+
<version>0.0.1-SNAPSHOT</version>
6+
<build>
7+
8+
<plugins>
9+
10+
<!-- DOESN'T WORK
11+
:: modelSchema.xsd [336:40]: Interface TextualDescription, defined by group declaration {http://www.alfresco.org/model/dictionary/1.0}TextualDescription has no implementation.
12+
org.xml.sax.SAXParseException; systemId: file:...modelSchema.xsd; lineNumber: 336; columnNumber: 40; Interface TextualDescription, defined by group declaration {http://www.alfresco.org/model/dictionary/1.0}TextualDescription has no implementation.
13+
-->
14+
<!--
15+
<plugin>
16+
<groupId>org.apache.cxf</groupId>
17+
<artifactId>cxf-xjc-plugin</artifactId>
18+
<version>3.2.0</version>
19+
<configuration>
20+
<extensions>
21+
<extension>net.codesup.util:jaxb2-rich-contract-plugin:1.18.0</extension>
22+
</extensions>
23+
</configuration>
24+
25+
<executions>
26+
<execution>
27+
<id>generate-sources</id>
28+
<phase>generate-sources</phase>
29+
<goals>
30+
<goal>xsdtojava</goal>
31+
</goals>
32+
<configuration>
33+
<sourceRoot>${basedir}/src/generated/java</sourceRoot>
34+
<xsdOptions>
35+
<xsdOption>
36+
<xsd>${basedir}/src/main/resources/modelSchema.xsd</xsd>
37+
<extension>true</extension>
38+
<extensionArgs>
39+
<extensionArg>-Xgroup-contract</extensionArg>
40+
</extensionArgs>
41+
</xsdOption>
42+
</xsdOptions>
43+
<extension>true</extension>
44+
</configuration>
45+
</execution>
46+
</executions>
47+
</plugin>
48+
-->
49+
<plugin>
50+
<groupId>org.jvnet.jaxb2.maven2</groupId>
51+
<artifactId>maven-jaxb2-plugin</artifactId>
52+
<executions>
53+
<execution>
54+
<goals>
55+
<goal>generate</goal>
56+
</goals>
57+
</execution>
58+
</executions>
59+
<configuration>
60+
<args>
61+
<arg>-Xgroup-contract</arg>
62+
</args>
63+
<bindingDirectory>src/main/resources</bindingDirectory>
64+
<bindingIncludes>
65+
<include>bindings.xjb</include>
66+
</bindingIncludes>
67+
<generateDirectory>${basedir}/src/generated/java</generateDirectory>
68+
<!-- generatePackage>org.alfresco.m</generatePackage-->
69+
<plugins>
70+
<plugin>
71+
<groupId>net.codesup.util</groupId>
72+
<artifactId>jaxb2-rich-contract-plugin</artifactId>
73+
<version>1.18.0</version>
74+
</plugin>
75+
</plugins>
76+
</configuration>
77+
</plugin>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-compiler-plugin</artifactId>
81+
<version>3.7.0</version>
82+
<configuration>
83+
<source>1.8</source>
84+
<target>1.8</target>
85+
<executable>${JAVA_1_8_HOME}/bin/javac</executable>
86+
</configuration>
87+
</plugin>
88+
89+
</plugins>
90+
91+
</build>
92+
<dependencies>
93+
<!-- dependency>
94+
<groupId>com.sun.xml.bind</groupId>
95+
<artifactId>jaxb-impl</artifactId>
96+
<version>2.2.11</version>
97+
</dependency>
98+
<dependency>
99+
<groupId>com.sun.xml.bind</groupId>
100+
<artifactId>jaxb-core</artifactId>
101+
<version>2.2.11</version>
102+
</dependency-->
103+
<dependency>
104+
<groupId>org.jvnet.jaxb2_commons</groupId>
105+
<artifactId>jaxb2-basics-runtime</artifactId>
106+
<version>0.11.1</version>
107+
</dependency>
108+
<dependency>
109+
<groupId>org.jvnet.jaxb2.maven2</groupId>
110+
<artifactId>maven-jaxb2-plugin</artifactId>
111+
<version>0.13.1</version>
112+
<type>maven-plugin</type>
113+
</dependency>
114+
<dependency>
115+
<groupId>net.codesup.util</groupId>
116+
<artifactId>jaxb2-rich-contract-plugin</artifactId>
117+
<version>1.18.0</version>
118+
</dependency>
119+
</dependencies>
120+
<properties>
121+
<JAVA_1_8_HOME>C:\Program Files\Java\jdk1.8.0_77</JAVA_1_8_HOME>
122+
</properties>
123+
</project>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" standalone="yes"?>
2+
<bindings version="2.1" xmlns="http://java.sun.com/xml/ns/jaxb" xmlns:kscs="http://www.kscs.com/util/jaxb/bindings">
3+
<!--
4+
5+
This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
6+
See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
7+
Any modifications to this file will be lost upon recompilation of the source schema.
8+
Generated on: 2018.08.22 at 04:24:30 PM MSK
9+
10+
-->
11+
<bindings scd="x-schema::tns" if-exists="true" xmlns:tns="http://www.alfresco.org/model/dictionary/1.0">
12+
<schemaBindings map="false">
13+
<package name="org.alfresco.model.dictionary._1"/>
14+
</schemaBindings>
15+
<bindings scd="group::tns:TextualDescription">
16+
<kscs:interface ref="org.alfresco.model.dictionary._1.TextualDescription"/>
17+
</bindings>
18+
<bindings scd="attributeGroup::tns:name">
19+
<kscs:interface ref="org.alfresco.model.dictionary._1.Name"/>
20+
</bindings>
21+
<bindings scd="attributeGroup::tns:namespaceDefinition">
22+
<kscs:interface ref="org.alfresco.model.dictionary._1.NamespaceDefinition"/>
23+
</bindings>
24+
</bindings>
25+
</bindings>
26+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<bindings xmlns="http://java.sun.com/xml/ns/jaxb" if-exists="true" version="2.1">
3+
<!--
4+
5+
This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
6+
See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
7+
Any modifications to this file will be lost upon recompilation of the source schema.
8+
Generated on: 2018.08.22 at 04:24:30 PM MSK
9+
10+
-->
11+
<bindings xmlns:tns="http://www.alfresco.org/model/dictionary/1.0" if-exists="true" scd="x-schema::tns">
12+
<schemaBindings map="false">
13+
<package name="org.alfresco.model.dictionary._1"/>
14+
</schemaBindings>
15+
<bindings if-exists="true" scd="tns:model">
16+
<class ref="org.alfresco.model.dictionary._1.Model"/>
17+
</bindings>
18+
<bindings if-exists="true" scd="~tns:propertyOverride">
19+
<class ref="org.alfresco.model.dictionary._1.PropertyOverride"/>
20+
</bindings>
21+
<bindings if-exists="true" scd="~tns:association">
22+
<class ref="org.alfresco.model.dictionary._1.Association"/>
23+
</bindings>
24+
<bindings if-exists="true" scd="~tns:namedValue">
25+
<class ref="org.alfresco.model.dictionary._1.NamedValue"/>
26+
</bindings>
27+
<bindings if-exists="true" scd="~tns:class">
28+
<class ref="org.alfresco.model.dictionary._1.Class"/>
29+
</bindings>
30+
<bindings if-exists="true" scd="~tns:property">
31+
<class ref="org.alfresco.model.dictionary._1.Property"/>
32+
</bindings>
33+
<bindings if-exists="true" scd="~tns:type">
34+
<class ref="org.alfresco.model.dictionary._1.Type"/>
35+
</bindings>
36+
<bindings if-exists="true" scd="~tns:aspect">
37+
<class ref="org.alfresco.model.dictionary._1.Aspect"/>
38+
</bindings>
39+
<bindings if-exists="true" scd="~tns:constraint">
40+
<class ref="org.alfresco.model.dictionary._1.Constraint"/>
41+
</bindings>
42+
<bindings if-exists="true" scd="~tns:childAssociation">
43+
<class ref="org.alfresco.model.dictionary._1.ChildAssociation"/>
44+
</bindings>
45+
<bindings if-exists="true" scd="~tns:mandatoryDef">
46+
<class ref="org.alfresco.model.dictionary._1.MandatoryDef"/>
47+
</bindings>
48+
</bindings>
49+
</bindings>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
3+
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4+
// Any modifications to this file will be lost upon recompilation of the source schema.
5+
// Generated on: 2018.08.22 at 04:24:30 PM MSK
6+
//
7+
8+
9+
package org.alfresco.model.dictionary._1;
10+
11+
import javax.xml.bind.annotation.adapters.XmlAdapter;
12+
13+
public class Adapter1
14+
extends XmlAdapter<String, String>
15+
{
16+
17+
18+
public String unmarshal(String value) {
19+
return (ru.neodoc.jaxb.utils.CDataAdapter.parse(value));
20+
}
21+
22+
public String marshal(String value) {
23+
return (ru.neodoc.jaxb.utils.CDataAdapter.print(value));
24+
}
25+
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
3+
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4+
// Any modifications to this file will be lost upon recompilation of the source schema.
5+
// Generated on: 2018.08.22 at 04:24:30 PM MSK
6+
//
7+
8+
9+
package org.alfresco.model.dictionary._1;
10+
11+
import javax.xml.bind.annotation.adapters.XmlAdapter;
12+
13+
public class Adapter2
14+
extends XmlAdapter<String, String>
15+
{
16+
17+
18+
public String unmarshal(String value) {
19+
return (ru.neodoc.jaxb.utils.CDataAdapter.parse(value));
20+
}
21+
22+
public String marshal(String value) {
23+
return (ru.neodoc.jaxb.utils.CDataAdapter.print(value));
24+
}
25+
26+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//
2+
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
3+
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4+
// Any modifications to this file will be lost upon recompilation of the source schema.
5+
// Generated on: 2018.08.22 at 04:24:30 PM MSK
6+
//
7+
8+
9+
package org.alfresco.model.dictionary._1;
10+
11+
import javax.xml.bind.annotation.XmlAccessType;
12+
import javax.xml.bind.annotation.XmlAccessorType;
13+
import javax.xml.bind.annotation.XmlType;
14+
15+
16+
/**
17+
* <p>Java class for aspect complex type.
18+
*
19+
* <p>The following schema fragment specifies the expected content contained within this class.
20+
*
21+
* <pre>
22+
* &lt;complexType name="aspect"&gt;
23+
* &lt;complexContent&gt;
24+
* &lt;extension base="{http://www.alfresco.org/model/dictionary/1.0}class"&gt;
25+
* &lt;/extension&gt;
26+
* &lt;/complexContent&gt;
27+
* &lt;/complexType&gt;
28+
* </pre>
29+
*
30+
*
31+
*/
32+
@XmlAccessorType(XmlAccessType.FIELD)
33+
@XmlType(name = "aspect")
34+
public class Aspect
35+
extends Class
36+
{
37+
38+
39+
}

0 commit comments

Comments
 (0)