public static String makeFullQualified ( final Component component, final String... local ) { final List<String> hier = Components.makeHierarchy ( component ); if ( component instanceof NamedDocumentable ) { hier.add ( Names.makeName ( (NamedDocumentable)component ) ); } hier.addAll ( Arrays.asList ( local ) ); return StringHelper.join ( hier, delimiter ); }
public String getFullLevelName () { return Components.makeFullQualified ( this.component ); } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<OutputSpecification> getKnownOutputs () { if ( this.knownOutputs == null ) { final BasicEList<OutputSpecification> outputs = ECollections.newBasicEList (); outputs.add ( Components.createOutput ( "output", null ) ); this.knownOutputs = ECollections.unmodifiableEList ( outputs ); } return this.knownOutputs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<InputSpecification> getKnownInputs () { if ( this.knownInputs == null ) { final BasicEList<InputSpecification> inputs = ECollections.newBasicEList (); inputs.add ( Components.createInput ( "input" ) ); this.knownInputs = ECollections.unmodifiableEList ( inputs ); } return this.knownInputs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<OutputSpecification> getKnownOutputs () { if ( this.knownOutputs == null ) { final BasicEList<OutputSpecification> outputs = ECollections.newBasicEList (); outputs.add ( Components.createOutput ( "output", null ) ); this.knownOutputs = ECollections.unmodifiableEList ( outputs ); } return this.knownOutputs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<InputSpecification> getKnownInputs () { if ( this.knownInputs == null ) { final BasicEList<InputSpecification> inputs = ECollections.newBasicEList (); inputs.add ( Components.createInput ( "input" ) ); this.knownInputs = ECollections.unmodifiableEList ( inputs ); } return this.knownInputs; }
public static String makeFullQualified ( final Component component, final String... local ) { final List<String> hier = Components.makeHierarchy ( component ); if ( component instanceof NamedDocumentable ) { hier.add ( Names.makeName ( (NamedDocumentable)component ) ); } hier.addAll ( Arrays.asList ( local ) ); return StringHelper.join ( hier, delimiter ); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<OutputSpecification> getKnownOutputs () { if ( this.knownOutputs == null ) { final BasicEList<OutputSpecification> outputs = ECollections.newBasicEList (); for ( final MovingAverageReferenceType type : MovingAverageReferenceType.values () ) { outputs.add ( Components.createOutput ( type.getLiteral (), DataType.FLOAT ) ); } this.knownOutputs = ECollections.unmodifiableEList ( outputs ); } return this.knownOutputs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<InputSpecification> getKnownInputs () { if ( this.knownInputs == null ) { final BasicEList<InputSpecification> inputs = ECollections.newBasicEList (); inputs.add ( Components.createInput ( "input" ) ); this.knownInputs = ECollections.unmodifiableEList ( inputs ); } return this.knownInputs; }
protected String makeId () { return Components.makeFullQualified ( this.calculationComponent, Names.makeName ( this.calculationComponent ) ); }
@Override public <T extends Item> CreationRequest<T> addItem ( final T item ) { List<String> hier; if ( this.component != null ) { hier = Components.makeHierarchy ( this.component ); } else if ( item.getInformation () != null ) { hier = item.getInformation ().getHierarchy (); } else { throw new IllegalStateException ( String.format ( "Unable to add item %s since it neither has a component nor a hiearchy set.", item ) ); } return new AbstractCreationRequest<T> ( this.component, hier ) { @Override public T create () { return addItem ( item, buildRequest ( item ), getMasterListeners () ); } }; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<OutputSpecification> getKnownOutputs () { if ( this.knownOutputs == null ) { final BasicEList<OutputSpecification> outputs = ECollections.newBasicEList (); for ( final AverageReferenceType type : AverageReferenceType.values () ) { outputs.add ( Components.createOutput ( type.getLiteral (), DataType.FLOAT ) ); } this.knownOutputs = ECollections.unmodifiableEList ( outputs ); } return this.knownOutputs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<InputSpecification> getKnownInputs () { if ( this.knownInputs == null ) { final BasicEList<InputSpecification> inputs = ECollections.newBasicEList (); inputs.add ( Components.createInput ( "input" ) ); this.knownInputs = ECollections.unmodifiableEList ( inputs ); } return this.knownInputs; }
@Override public <T extends Item> CreationRequest<T> addItem ( final T item ) { List<String> hier; if ( this.component != null ) { hier = Components.makeHierarchy ( this.component ); } else if ( item.getInformation () != null ) { hier = item.getInformation ().getHierarchy (); } else { throw new IllegalStateException ( String.format ( "Unable to add item %s since it neither has a component nor a hiearchy set.", item ) ); } return new AbstractCreationRequest<T> ( this.component, hier ) { @Override public T create () { return addItem ( item, buildRequest ( item ), getMasterListeners () ); } }; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<OutputSpecification> getKnownOutputs () { if ( this.knownOutputs == null ) { final BasicEList<OutputSpecification> outputs = ECollections.newBasicEList (); for ( final MovingAverageReferenceType type : MovingAverageReferenceType.values () ) { outputs.add ( Components.createOutput ( type.getLiteral (), DataType.FLOAT ) ); } this.knownOutputs = ECollections.unmodifiableEList ( outputs ); } return this.knownOutputs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public EList<OutputSpecification> getKnownOutputs () { if ( this.knownOutputs == null ) { final BasicEList<OutputSpecification> outputs = ECollections.newBasicEList (); for ( final AverageReferenceType type : AverageReferenceType.values () ) { outputs.add ( Components.createOutput ( type.getLiteral (), DataType.FLOAT ) ); } this.knownOutputs = ECollections.unmodifiableEList ( outputs ); } return this.knownOutputs; }