-
Notifications
You must be signed in to change notification settings - Fork 97
/
api.txt
233 lines (233 loc) · 8.42 KB
/
api.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
class BaseException extends Error {
+ void constructor(string,string)
}
class BaseFileException extends BaseException {
+ void constructor(string,string,string,string,string)
+ string getFileLocation()
+ string getShortMessage()
+ string getFileName()
}
+ void getTypeDeclaration()
+ string getIdentifier()
+ boolean isIdentifiable()
+ boolean isRelationship()
+ void setIdentifier()
+ string getFullyQualifiedIdentifier()
+ string toURI()
+ string getType()
+ string getNamespace()
+ boolean instanceOf()
class Factory {
+ void constructor(ModelManager)
+ Resource newResource(String,String,String,Object,boolean,String,boolean,boolean) throws TypeNotFoundException
+ Resource newConcept(String,String,Object,boolean,String,boolean) throws TypeNotFoundException
+ Relationship newRelationship(String,String,String) throws TypeNotFoundException
+ Resource newTransaction(String,String,String,Object,String,boolean,boolean)
+ Resource newEvent(String,String,String,Object,String,boolean,boolean)
+ boolean hasInstance(object)
}
class AssetDeclaration extends ClassDeclaration {
+ void constructor(ModelFile,Object) throws IllegalModelException
+ boolean isRelationshipTarget()
+ string getSystemType()
+ boolean hasInstance(object)
}
class ClassDeclaration extends Decorated {
+ void constructor(ModelFile,string) throws IllegalModelException
+ ClassDeclaration _resolveSuperType()
+ string getSystemType()
+ boolean isAbstract()
+ boolean isEnum()
+ boolean isConcept()
+ boolean isEvent()
+ boolean isRelationshipTarget()
+ boolean isSystemRelationshipTarget()
+ boolean isSystemType()
+ boolean isSystemCoreType()
+ string getName()
+ String getNamespace()
+ string getFullyQualifiedName()
+ string getIdentifierFieldName()
+ Property getOwnProperty(string)
+ Property[] getOwnProperties()
+ string getSuperType()
+ ClassDeclaration getSuperTypeDeclaration()
+ ClassDeclaration[] getAssignableClassDeclarations()
+ ClassDeclaration[] getAllSuperTypeDeclarations()
+ Property getProperty(string)
+ Property[] getProperties()
+ Property getNestedProperty(string) throws IllegalModelException
+ String toString()
+ boolean hasInstance(object)
}
class ConceptDeclaration extends ClassDeclaration {
+ void constructor(ModelFile,Object) throws IllegalModelException
+ boolean isConcept()
+ boolean hasInstance(object)
}
class Decorator {
+ void constructor(Object) throws IllegalModelException
+ void getParent()
+ string getName()
+ object[] getArguments()
}
class DecoratorFactory {
+ Decorator newDecorator(Object)
}
class EnumDeclaration extends ClassDeclaration {
+ void constructor(ModelFile,Object) throws IllegalModelException
+ boolean isEnum()
+ String toString()
+ boolean hasInstance(object)
}
class EnumValueDeclaration extends Property {
+ void constructor(ClassDeclaration,Object) throws IllegalModelException
+ boolean hasInstance(object)
}
class EventDeclaration extends ClassDeclaration {
+ void constructor(ModelFile,Object) throws IllegalModelException
+ string getSystemType()
+ boolean isEvent()
+ boolean hasInstance(object)
}
class Introspector {
+ void constructor(ModelManager)
+ ClassDeclaration[] getClassDeclarations()
+ ClassDeclaration getClassDeclaration(String) throws Error
}
class ModelFile {
+ void constructor(ModelManager,string,string,boolean) throws IllegalModelException
+ boolean isExternal()
+ ModelManager getModelManager()
+ string[] getImports()
+ boolean isDefined(string)
+ ClassDeclaration getLocalType(string)
+ AssetDeclaration getAssetDeclaration(string)
+ TransactionDeclaration getTransactionDeclaration(string)
+ EventDeclaration getEventDeclaration(string)
+ ParticipantDeclaration getParticipantDeclaration(string)
+ string getNamespace()
+ string getName()
+ AssetDeclaration[] getAssetDeclarations(Boolean)
+ TransactionDeclaration[] getTransactionDeclarations(Boolean)
+ EventDeclaration[] getEventDeclarations(Boolean)
+ ParticipantDeclaration[] getParticipantDeclarations(Boolean)
+ ConceptDeclaration[] getConceptDeclarations(Boolean)
+ EnumDeclaration[] getEnumDeclarations(Boolean)
+ ClassDeclaration[] getDeclarations(Function,Boolean)
+ ClassDeclaration[] getAllDeclarations()
+ string getDefinitions()
+ boolean isSystemModelFile()
+ boolean hasInstance(object)
}
class ParticipantDeclaration extends ClassDeclaration {
+ void constructor(ModelFile,Object) throws IllegalModelException
+ boolean isRelationshipTarget()
+ string getSystemType()
+ boolean hasInstance(object)
}
class Property extends Decorated {
+ void constructor(ClassDeclaration,Object) throws IllegalModelException
+ ClassDeclaration getParent()
+ string getName()
+ string getType()
+ boolean isOptional()
+ string getFullyQualifiedTypeName()
+ string getFullyQualifiedName()
+ string getNamespace()
+ boolean isArray()
+ boolean isTypeEnum()
+ boolean isPrimitive()
+ boolean hasInstance(object)
}
class RelationshipDeclaration extends Property {
+ void constructor(ClassDeclaration,Object) throws IllegalModelException
+ String toString()
+ boolean hasInstance(object)
}
class TransactionDeclaration extends ClassDeclaration {
+ void constructor(ModelFile,Object) throws IllegalModelException
+ string getSystemType()
+ boolean hasInstance(object)
}
class Concept extends Typed {
+ boolean isConcept()
}
class Identifiable extends Typed {
+ string getIdentifier()
+ void setIdentifier(string)
+ string getFullyQualifiedIdentifier()
+ String toString()
+ boolean isRelationship()
+ boolean isResource()
+ String toURI()
}
class Relationship extends Identifiable {
+ String toString()
+ boolean isRelationship()
+ Relationship fromURI(ModelManager,String,String,String)
}
class Resource extends Identifiable {
+ String toString()
+ boolean isResource()
+ Object toJSON()
}
class Typed {
+ string getType()
+ string getFullyQualifiedType()
+ string getNamespace()
+ void setPropertyValue(string,string)
+ void addArrayValue(string,string)
+ boolean instanceOf(String)
}
class ValidatedConcept extends Concept {
+ void setPropertyValue(string,string) throws Error
+ void addArrayValue(string,string) throws Error
+ void validate() throws Error
}
class ValidatedResource extends Resource {
+ void setPropertyValue(string,string) throws Error
+ void addArrayValue(string,string) throws Error
+ void validate() throws Error
}
class ModelLoader {
+ object loadModelManager(string,string[])
+ object loadModelManagerFromModelFiles(string,object[],undefined)
}
class ModelManager {
+ void constructor()
+ void validateModelFile(string,string) throws IllegalModelException
+ Object addModelFile(string,string,boolean,boolean) throws IllegalModelException
+ Object updateModelFile(string,string,boolean) throws IllegalModelException
+ void deleteModelFile(string)
+ Object[] addModelFiles(object[],undefined,boolean,boolean)
+ void validateModelFiles()
+ Promise updateExternalModels(Object,ModelFileDownloader) throws IllegalModelException
+ void writeModelsToFileSystem(String,Object,boolean,boolean)
+ Object[] getModels(Object,boolean,boolean)
+ void clearModelFiles()
+ string[] getNamespaces()
+ ClassDeclaration[] getSystemTypes()
+ AssetDeclaration[] getAssetDeclarations(Boolean)
+ TransactionDeclaration[] getTransactionDeclarations(Boolean)
+ EventDeclaration[] getEventDeclarations(Boolean)
+ ParticipantDeclaration[] getParticipantDeclarations(Boolean)
+ EnumDeclaration[] getEnumDeclarations(Boolean)
+ ConceptDeclaration[] getConceptDeclarations(Boolean)
+ Factory getFactory()
+ Serializer getSerializer()
+ DecoratorFactory[] getDecoratorFactories()
+ void addDecoratorFactory(DecoratorFactory)
+ boolean hasInstance(object)
}
class SecurityException extends BaseException {
+ void constructor(string)
}
class Serializer {
+ void constructor(Factory,ModelManager)
+ void setDefaultOptions(Object)
+ Object toJSON(Resource,Object,boolean,boolean,boolean,boolean,boolean) throws Error
+ Resource fromJSON(Object,Object,boolean,boolean)
+ boolean hasInstance(object)
}
+ void validate() throws Error