Skip to content

Commit 72c2a4c

Browse files
committed
typescript d.ts
inferred from classes hierarchy TypeInfo->Properties and some public interfaces from the Jsonix.Context
1 parent 91f3584 commit 72c2a4c

File tree

12 files changed

+1976
-1457
lines changed

12 files changed

+1976
-1457
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ target
77
.idea
88
/bin/
99
*.iml
10+
.classpath
1011
rm_ide_settings.sh

typescript/src/main/java/org/hisrc/jsonix/Model/AbstractElementsPropertyInfo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package org.hisrc.jsonix.Model;
22

3+
import org.hisrc.jsonix.Schema.XML.QName;
4+
35
public class AbstractElementsPropertyInfo extends PropertyInfo implements org.hisrc.jsonix.Binding.Mashalls.Element, org.hisrc.jsonix.Binding.Unmashalls.Element{
4-
Object wrapperElementName = null;
6+
QName wrapperElementName = null;
57
boolean allowDom = false;
68
boolean allowTypedObject = true;
79
boolean mixed = false;

typescript/src/main/java/org/hisrc/jsonix/Model/ClassInfo.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package org.hisrc.jsonix.Model;
22

33
import com.sun.org.apache.xml.internal.utils.Hashtree2Node;
4+
45
import org.hisrc.jsonix.Mapping.Styled;
5-
import org.hisrc.jsonix.Schema.XSD.QName;
6+
import org.hisrc.jsonix.Schema.XML.QName;
67

78
import java.util.HashMap;
89
import java.util.Properties;
@@ -21,11 +22,12 @@ class Structure {
2122
QName typeName = null;
2223
Object instanceFactory = null;
2324
ElementPropertyInfo[] properties = null;
24-
HashMap<String, ElementMapPropertyInfo> propertiesMap = null;
25+
HashMap<String, ElementPropertyInfo> propertiesMap = null;
2526
Structure structure = null;
2627
String targetNamespace = "";
2728
String defaultElementNamespaceURI = "";
2829
String defaultAttributeNamespaceURI = "";
2930
boolean built = false;
31+
Object propertyInfoCreators = null;
3032

3133
}
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package org.hisrc.jsonix.Model;
22

3+
import org.hisrc.jsonix.Schema.XML.QName;
4+
35
public class ElementPropertyInfo extends AbstractElementsPropertyInfo implements org.hisrc.jsonix.Binding.Mashalls.Element{
4-
String typeInfo = "String";
5-
Object elementName = null;
6+
//May be a String
7+
TypeInfo typeInfo = null;
8+
QName elementName = null;
69

710
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.hisrc.jsonix.Model;
22

33
public class TypeInfo {
4-
Object name = null;
5-
Object baseTypeInfo = null;
4+
String name = "";
5+
TypeInfo baseTypeInfo = null;
66
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.hisrc.jsonix.Schema.XML;
2+
3+
public class QName
4+
{
5+
String key = null;
6+
String namespaceURI = null;
7+
String localPart = null;
8+
String prefix = null;
9+
String string = null;
10+
11+
}

typescript/src/main/java/org/hisrc/jsonix/Schema/XSD/AnySimpleType.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

typescript/src/main/java/org/hisrc/jsonix/Schema/XSD/QName.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

typescript/src/main/resources/diagram.svg

Lines changed: 1603 additions & 1161 deletions
Loading

typescript/src/main/resources/model.uml

Lines changed: 184 additions & 127 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)