You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

277 lines
6.5 KiB
JavaScript

// This file was generated by running js_conversion.py
// It converts the neomodel declaration of this element into js classes.
class Person extends StructuredNode {
constructor(json) {
super(json)
}
get_name() {
return this.json.name
}
set_name(new_val) {
this._set('name', new_val)
}
get_father() {
return this.json.father
}
link_father(ref) {
return this._link_property('father', ref)
}
unlink_father(ref) {
return this._unlink_property('father', ref)
}
get_mother() {
return this.json.mother
}
link_mother(ref) {
return this._link_property('mother', ref)
}
unlink_mother(ref) {
return this._unlink_property('mother', ref)
}
get_birthdate() {
return this.json.birthdate
}
set_birthdate(new_val) {
this._set('birthdate', new_val)
}
get_deceased() {
return this.json.deceased
}
set_deceased(new_val) {
this._set('deceased', new_val)
}
get_description() {
return this.json.description
}
set_description(new_val) {
this._set('description', new_val)
}
get_picture() {
return this.json.picture
}
set_picture(new_val) {
this._set('picture', new_val)
}
get_places() {
return this.json.places
}
link_places(ref) {
return this._link_property('places', ref)
}
unlink_places(ref) {
return this._unlink_property('places', ref)
}
}
StructuredNode.registerClassDefinition(Person, {"uid": {"field": "uid", "type": "UniqueIdProperty", "required": false}, "name": {"field": "name", "type": "StringProperty", "required": true}, "birthdate": {"field": "birthdate", "type": "DateProperty", "required": false}, "deceased": {"field": "deceased", "type": "DateProperty", "required": false}, "description": {"field": "description", "type": "StringProperty", "required": false}, "picture": {"field": "picture", "type": "StringProperty", "required": false}}, {"father": {"field": "father", "target": "Person", "cardinality": "ZeroOrOne"}, "mother": {"field": "mother", "target": "Person", "cardinality": "ZeroOrOne"}, "places": {"field": "places", "target": "Place", "cardinality": "ZeroOrMore"}})
class Event extends StructuredNode {
constructor(json) {
super(json)
}
get_name() {
return this.json.name
}
set_name(new_val) {
this._set('name', new_val)
}
get_participants() {
return this.json.participants
}
link_participants(ref) {
return this._link_property('participants', ref)
}
unlink_participants(ref) {
return this._unlink_property('participants', ref)
}
get_places() {
return this.json.places
}
link_places(ref) {
return this._link_property('places', ref)
}
unlink_places(ref) {
return this._unlink_property('places', ref)
}
get_date() {
return this.json.date
}
set_date(new_val) {
this._set('date', new_val)
}
get_end_date() {
return this.json.end_date
}
set_end_date(new_val) {
this._set('end_date', new_val)
}
get_related_events() {
return this.json.related_events
}
link_related_events(ref) {
return this._link_property('related_events', ref)
}
unlink_related_events(ref) {
return this._unlink_property('related_events', ref)
}
}
StructuredNode.registerClassDefinition(Event, {"uid": {"field": "uid", "type": "UniqueIdProperty", "required": false}, "name": {"field": "name", "type": "StringProperty", "required": true}, "date": {"field": "date", "type": "DateProperty", "required": false}, "end_date": {"field": "end_date", "type": "DateProperty", "required": false}}, {"participants": {"field": "participants", "target": "Person", "cardinality": "ZeroOrMore"}, "places": {"field": "places", "target": "Place", "cardinality": "ZeroOrMore"}, "related_events": {"field": "related_events", "target": "Event", "cardinality": "ZeroOrMore"}})
class Place extends StructuredNode {
constructor(json) {
super(json)
}
get_name() {
return this.json.name
}
set_name(new_val) {
this._set('name', new_val)
}
get_description() {
return this.json.description
}
set_description(new_val) {
this._set('description', new_val)
}
get_visitors() {
return this.json.visitors
}
link_visitors(ref) {
return this._link_property('visitors', ref)
}
unlink_visitors(ref) {
return this._unlink_property('visitors', ref)
}
}
StructuredNode.registerClassDefinition(Place, {"uid": {"field": "uid", "type": "UniqueIdProperty", "required": false}, "name": {"field": "name", "type": "StringProperty", "required": true}, "description": {"field": "description", "type": "StringProperty", "required": false}}, {"visitors": {"field": "visitors", "target": "Person", "cardinality": "ZeroOrMore"}})
class Image extends StructuredNode {
constructor(json) {
super(json)
}
get_description() {
return this.json.description
}
set_description(new_val) {
this._set('description', new_val)
}
get_pictured() {
return this.json.pictured
}
link_pictured(ref) {
return this._link_property('pictured', ref)
}
unlink_pictured(ref) {
return this._unlink_property('pictured', ref)
}
get_place() {
return this.json.place
}
link_place(ref) {
return this._link_property('place', ref)
}
unlink_place(ref) {
return this._unlink_property('place', ref)
}
get_date() {
return this.json.date
}
set_date(new_val) {
this._set('date', new_val)
}
}
StructuredNode.registerClassDefinition(Image, {"uid": {"field": "uid", "type": "StringProperty", "required": true}, "description": {"field": "description", "type": "StringProperty", "required": false}, "date": {"field": "date", "type": "DateProperty", "required": false}}, {"pictured": {"field": "pictured", "target": "Person", "cardinality": "ZeroOrMore"}, "place": {"field": "place", "target": "Place", "cardinality": "ZeroOrMore"}})