@Override public String get( String key ) { Object value = getDelegate().getProperty( key ); if( value == null ) return null; return value.toString(); } };
public BoundaryStage( FlowProcess flowProcess, Boundary boundary ) { this.boundary = boundary; Pipe element = boundary; while( element != null ) { if( element.hasConfigDef() ) flowProcess = new ElementFlowProcess( flowProcess, element.getConfigDef() ); element = element.getParent(); } this.flowProcess = flowProcess; }
public SpliceGate( FlowProcess flowProcess, Splice splice ) { this.splice = splice; Pipe element = splice; while( element != null ) { if( element.hasConfigDef() ) flowProcess = new ElementFlowProcess( flowProcess, element.getConfigDef() ); element = element.getParent(); } this.flowProcess = flowProcess; }
public ElementStage( FlowProcess flowProcess, FlowElement flowElement ) { this.flowElement = flowElement; FlowElement element = flowElement; while( element != null ) { if( element instanceof ScopedElement && ( (ScopedElement) element ).hasConfigDef() ) flowProcess = new ElementFlowProcess( flowProcess, ( (ScopedElement) element ).getConfigDef() ); if( element instanceof Pipe ) element = ( (Pipe) element ).getParent(); else element = null; } this.flowProcess = flowProcess; }
@Override public Collection<String> getPropertyKeys() { Set<String> keys = new HashSet<String>(); keys.addAll( getDelegate().getPropertyKeys() ); keys.addAll( configDef.getAllKeys() ); return Collections.unmodifiableSet( keys ); } }
FlowProcess elementFlowProcess = new ElementFlowProcess( flowProcess, trap.getConfigDef() ); elementDuct.setTrapHandler( new TrapHandler( elementFlowProcess, flowElement, trap, branchName ) ); break;