UNPKG

7.43 kBPlain TextView Raw
1class Factory {
2 + Resource newResource(String,String,String,Object,boolean,String,boolean,boolean) throws TypeNotFoundException
3 + Resource newConcept(String,String,Object,boolean,String,boolean) throws TypeNotFoundException
4 + Relationship newRelationship(String,String,String) throws TypeNotFoundException
5 + Resource newTransaction(String,String,String,Object,String,boolean,boolean)
6 + Resource newEvent(String,String,String,Object,String,boolean,boolean)
7}
8class AssetDeclaration extends ClassDeclaration {
9 + void constructor(ModelFile,Object) throws IllegalModelException
10 + boolean isRelationshipTarget()
11 + string getSystemType()
12 + boolean undefined(object)
13}
14class ClassDeclaration extends Decorated {
15 + void constructor(ModelFile,string) throws IllegalModelException
16 + ClassDeclaration _resolveSuperType()
17 + string getSystemType()
18 + boolean isAbstract()
19 + boolean isEnum()
20 + boolean isConcept()
21 + boolean isEvent()
22 + boolean isRelationshipTarget()
23 + boolean isSystemRelationshipTarget()
24 + boolean isSystemType()
25 + boolean isSystemCoreType()
26 + string getName()
27 + String getNamespace()
28 + string getFullyQualifiedName()
29 + string getIdentifierFieldName()
30 + Property getOwnProperty(string)
31 + Property[] getOwnProperties()
32 + string getSuperType()
33 + ClassDeclaration getSuperTypeDeclaration()
34 + ClassDeclaration[] getAssignableClassDeclarations()
35 + ClassDeclaration[] getAllSuperTypeDeclarations()
36 + Property getProperty(string)
37 + Property[] getProperties()
38 + Property getNestedProperty(string) throws IllegalModelException
39 + String toString()
40 + boolean undefined(object)
41}
42class ConceptDeclaration extends ClassDeclaration {
43 + void constructor(ModelFile,Object) throws IllegalModelException
44 + boolean isConcept()
45 + boolean undefined(object)
46}
47class Decorator {
48 + void constructor(Object) throws IllegalModelException
49 + void getParent()
50 + string getName()
51 + object[] getArguments()
52}
53class DecoratorFactory {
54 + Decorator newDecorator(Object)
55}
56class EnumDeclaration extends ClassDeclaration {
57 + void constructor(ModelFile,Object) throws IllegalModelException
58 + boolean isEnum()
59 + String toString()
60 + boolean undefined(object)
61}
62class EnumValueDeclaration extends Property {
63 + void constructor(ClassDeclaration,Object) throws IllegalModelException
64 + boolean undefined(object)
65}
66class EventDeclaration extends ClassDeclaration {
67 + void constructor(ModelFile,Object) throws IllegalModelException
68 + string getSystemType()
69 + boolean isEvent()
70 + boolean undefined(object)
71}
72class Introspector {
73 + void constructor(ModelManager)
74 + ClassDeclaration[] getClassDeclarations()
75 + ClassDeclaration getClassDeclaration(String) throws Error
76}
77class ModelFile {
78 + boolean isExternal()
79 + ModelManager getModelManager()
80 + string[] getImports()
81 + boolean isDefined(string)
82 + ClassDeclaration getLocalType(string)
83 + AssetDeclaration getAssetDeclaration(string)
84 + TransactionDeclaration getTransactionDeclaration(string)
85 + EventDeclaration getEventDeclaration(string)
86 + ParticipantDeclaration getParticipantDeclaration(string)
87 + string getNamespace()
88 + string getName()
89 + AssetDeclaration[] getAssetDeclarations(Boolean)
90 + TransactionDeclaration[] getTransactionDeclarations(Boolean)
91 + EventDeclaration[] getEventDeclarations(Boolean)
92 + ParticipantDeclaration[] getParticipantDeclarations(Boolean)
93 + ConceptDeclaration[] getConceptDeclarations(Boolean)
94 + EnumDeclaration[] getEnumDeclarations(Boolean)
95 + ClassDeclaration[] getDeclarations(Function,Boolean)
96 + ClassDeclaration[] getAllDeclarations()
97 + string getDefinitions()
98 + boolean isSystemModelFile()
99 + boolean undefined(object)
100}
101class ParticipantDeclaration extends ClassDeclaration {
102 + void constructor(ModelFile,Object) throws IllegalModelException
103 + boolean isRelationshipTarget()
104 + string getSystemType()
105 + boolean undefined(object)
106}
107class Property extends Decorated {
108 + void constructor(ClassDeclaration,Object) throws IllegalModelException
109 + ClassDeclaration getParent()
110 + string getName()
111 + string getType()
112 + boolean isOptional()
113 + string getFullyQualifiedTypeName()
114 + string getFullyQualifiedName()
115 + string getNamespace()
116 + boolean isArray()
117 + boolean isTypeEnum()
118 + boolean isPrimitive()
119 + boolean undefined(object)
120}
121class RelationshipDeclaration extends Property {
122 + void constructor(ClassDeclaration,Object) throws IllegalModelException
123 + String toString()
124 + boolean undefined(object)
125}
126class TransactionDeclaration extends ClassDeclaration {
127 + void constructor(ModelFile,Object) throws IllegalModelException
128 + string getSystemType()
129 + boolean undefined(object)
130}
131class Concept extends Typed {
132 + boolean isConcept()
133}
134class Identifiable extends Typed {
135 + string getIdentifier()
136 + void setIdentifier(string)
137 + string getFullyQualifiedIdentifier()
138 + String toString()
139 + boolean isRelationship()
140 + boolean isResource()
141 + String toURI()
142}
143class Relationship extends Identifiable {
144 + String toString()
145 + boolean isRelationship()
146 + Relationship fromURI(ModelManager,String,String,String)
147}
148class Resource extends Identifiable {
149 + String toString()
150 + boolean isResource()
151 + Object toJSON()
152}
153class Typed {
154 + string getType()
155 + string getFullyQualifiedType()
156 + string getNamespace()
157 + void setPropertyValue(string,string)
158 + void addArrayValue(string,string)
159 + boolean instanceOf(String)
160}
161class ValidatedConcept extends Concept {
162 + void setPropertyValue(string,string) throws Error
163 + void addArrayValue(string,string) throws Error
164 + void validate() throws Error
165}
166class ValidatedResource extends Resource {
167 + void setPropertyValue(string,string) throws Error
168 + void addArrayValue(string,string) throws Error
169 + void validate() throws Error
170}
171class ModelManager {
172 + void validateModelFile(string,string) throws IllegalModelException
173 + Object addModelFile(string,string,boolean,boolean) throws IllegalModelException
174 + Object updateModelFile(string,string,boolean) throws IllegalModelException
175 + void deleteModelFile(string)
176 + Object[] addModelFiles(string[],undefined,boolean,boolean)
177 + void validateModelFiles()
178 + Promise updateExternalModels(Object,ModelFileDownloader) throws IllegalModelException
179 + void clearModelFiles()
180 + string[] getNamespaces()
181 + ClassDeclaration[] getSystemTypes()
182 + AssetDeclaration[] getAssetDeclarations(Boolean)
183 + TransactionDeclaration[] getTransactionDeclarations(Boolean)
184 + EventDeclaration[] getEventDeclarations(Boolean)
185 + ParticipantDeclaration[] getParticipantDeclarations(Boolean)
186 + EnumDeclaration[] getEnumDeclarations(Boolean)
187 + ConceptDeclaration[] getConceptDeclarations(Boolean)
188 + Factory getFactory()
189 + Serializer getSerializer()
190 + DecoratorFactory[] getDecoratorFactories()
191 + void addDecoratorFactory(DecoratorFactory)
192 + boolean undefined(object)
193}
194class Serializer {
195 + void constructor(Factory,ModelManager)
196 + void setDefaultOptions(Object)
197 + Object toJSON(Resource,Object,boolean,boolean,boolean,boolean) throws Error
198 + Resource fromJSON(Object,Object,boolean,boolean)
199}