import java.util.List

/*
 * A simple Entities example.
 */
package test {
	
	// This is my self-made entity
	entity MyEntity {
		myProperty : List<String>
		op myOperation() : String {
			myProperty.head
		}
	}
	
	entity Container {
		entities : List<MyEntity>
		op findMatching(String param) : MyEntity {
			entities.findFirst[myOperation == param]
		}
	}
	
}
modified
Welcome to Xtext-Web