/******************************************************************************* * Copyright (c) 2012, 2013 Association for Decentralized Information Management in * Industry THTH ry. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation *******************************************************************************/ package org.simantics.g3d.scenegraph.structural; import java.util.Collection; import org.simantics.layer0.Layer0; import org.simantics.objmap.graph.annotations.RelatedElementsAdd; import org.simantics.objmap.graph.annotations.RelatedElementsGet; import org.simantics.objmap.graph.annotations.RelatedElementsRem; import org.simantics.objmap.structural.annotations.TypeRelatedElementsAdd; import org.simantics.objmap.structural.annotations.TypeRelatedElementsGet; import org.simantics.objmap.structural.annotations.TypeRelatedElementsRem; public interface IStructuralRootNode extends IStructuralNode { @RelatedElementsAdd(Layer0.URIs.ConsistsOf) public void addComponent(IStructuralNode node); @RelatedElementsGet(Layer0.URIs.ConsistsOf) public Collection getComponent(); @RelatedElementsRem(Layer0.URIs.ConsistsOf) public void removeComponent(IStructuralNode node); @TypeRelatedElementsAdd(Layer0.URIs.ConsistsOf) public void addTypeComponent(IStructuralNode node); @TypeRelatedElementsGet(Layer0.URIs.ConsistsOf) public Collection getTypeComponent(); @TypeRelatedElementsRem(Layer0.URIs.ConsistsOf) public void removeTypeComponent(IStructuralNode node); @RelatedElementsAdd(Layer0.URIs.DomainOf) public void addPublished(IStructuralNode node); @RelatedElementsGet(Layer0.URIs.DomainOf) public Collection getPublished(); @RelatedElementsRem(Layer0.URIs.DomainOf) public void removePublished(IStructuralNode node); @TypeRelatedElementsAdd(Layer0.URIs.DomainOf) public void addTypePublished(IStructuralNode node); @TypeRelatedElementsGet(Layer0.URIs.DomainOf) public Collection getTypePublished(); @TypeRelatedElementsRem(Layer0.URIs.DomainOf) public void removeTypePublished(IStructuralNode node); }