@Override public void moduleModuleVisible() { ValueBuilder<ModuleModuleVisible> builder = module.newValueBuilder( ModuleModuleVisible.class ); builder.newInstance(); }
@Override public void besideLayerVisible() { ValueBuilder<BesideLayerVisible> builder = module.newValueBuilder( BesideLayerVisible.class ); builder.newInstance(); }
@Override public void belowModuleVisible() { ValueBuilder<BelowModuleVisible> builder = module.newValueBuilder( BelowModuleVisible.class ); builder.newInstance(); }
@Override public void aboveApplicationVisible() { ValueBuilder<AboveApplicationVisible> builder = module.newValueBuilder( AboveApplicationVisible.class ); builder.newInstance(); }
@Override public void moduleLayerVisible() { ValueBuilder<ModuleLayerVisible> builder = module.newValueBuilder( ModuleLayerVisible.class ); builder.newInstance(); }
@Override public void besideApplicationVisible() { ValueBuilder<BesideApplicationVisible> builder = module.newValueBuilder( BesideApplicationVisible.class ); builder.newInstance(); }
@Override public void moduleApplicationVisible() { ValueBuilder<ModuleApplicationVisible> builder = module.newValueBuilder( ModuleApplicationVisible.class ); builder.newInstance(); }
@Override public void besideModuleVisible() { ValueBuilder<BesideModuleVisible> builder = module.newValueBuilder( BesideModuleVisible.class ); builder.newInstance(); }
@Override public void aboveLayerVisible() { ValueBuilder<AboveLayerVisible> builder = module.newValueBuilder( AboveLayerVisible.class ); builder.newInstance(); }
@Override public void aboveModuleVisible() { ValueBuilder<AboveModuleVisible> builder = module.newValueBuilder( AboveModuleVisible.class ); builder.newInstance(); } }
public T newInstance( ModuleDescriptor module ) { ValueBuilder<T> builder = module.instance().newValueBuilder( type ); build( builder.prototype() ); return builder.newInstance(); } }
public T newInstance( ModuleDescriptor module ) { ValueBuilder<T> builder = module.instance().newValueBuilder( type ); build( builder.prototype() ); return builder.newInstance(); } }
/** * @return a Some ValueComposite whose state is populated with test data. */ protected static Some buildSomeValue( Module module, UnitOfWork uow, String identity ) { ValueBuilder<Some> builder = module.newValueBuilder( Some.class ); Some proto = builder.prototype(); proto.identity().set( StringIdentity.identityOf( identity ) ); setSomeValueState( module, uow, proto ); return builder.newInstance(); }
/** * @return a Some ValueComposite whose state is populated with test data. */ protected static Some buildSomeValue( Module module, UnitOfWork uow, String identity ) { ValueBuilder<Some> builder = module.newValueBuilder( Some.class ); Some proto = builder.prototype(); proto.identity().set( StringIdentity.identityOf( identity ) ); setSomeValueState( module, uow, proto ); return builder.newInstance(); }
private SomeValue newSomeValue( String foo, String cathedral ) { ValueBuilder<SomeValue> builder = module.instance().newValueBuilder( SomeValue.class ); SomeValue value = builder.prototype(); value.foo().set( foo ); if( cathedral != null ) { value.cathedral().set( cathedral ); } return builder.newInstance(); }
private static AnotherValue createAnotherValue( Module module, String val1, String val2 ) { ValueBuilder<AnotherValue> valueBuilder = module.newValueBuilder( AnotherValue.class ); valueBuilder.prototype().val1().set( val1 ); valueBuilder.prototypeFor( AnotherValueInternalState.class ).val2().set( val2 ); return valueBuilder.newInstance(); }
private SomeValue newSomeValue( String foo, String cathedral ) { ValueBuilder<SomeValue> builder = module.instance().newValueBuilder( SomeValue.class ); SomeValue value = builder.prototype(); value.foo().set( foo ); if( cathedral != null ) { value.cathedral().set( cathedral ); } return builder.newInstance(); }
private static AnotherValue createAnotherValue( Module module, String val1, String val2 ) { ValueBuilder<AnotherValue> valueBuilder = module.newValueBuilder( AnotherValue.class ); valueBuilder.prototype().val1().set( val1 ); valueBuilder.prototypeFor( AnotherValueInternalState.class ).val2().set( val2 ); return valueBuilder.newInstance(); }
protected static SomeExtended buildSomeExtendedValue( Module module, UnitOfWork uow, String identity ) { ValueBuilder<SomeExtended> builder = module.newValueBuilder( SomeExtended.class ); SomeExtended proto = builder.prototype(); proto.identity().set( StringIdentity.identityOf( identity ) ); setSomeValueState( module, uow, proto ); proto.extraProperty().set( "extra property" ); proto.extraAssociation().set( buildBarEntity( module, uow, "extra association" ) ); proto.extraManyAssociation().add( buildBarEntity( module, uow, "extra many association" ) ); proto.extraNamedAssociation().put( "extra", buildBarEntity( module, uow, "extra named association" ) ); return builder.newInstance(); }
protected static SomeExtended buildSomeExtendedValue( Module module, UnitOfWork uow, String identity ) { ValueBuilder<SomeExtended> builder = module.newValueBuilder( SomeExtended.class ); SomeExtended proto = builder.prototype(); proto.identity().set( StringIdentity.identityOf( identity ) ); setSomeValueState( module, uow, proto ); proto.extraProperty().set( "extra property" ); proto.extraAssociation().set( buildBarEntity( module, uow, "extra association" ) ); proto.extraManyAssociation().add( buildBarEntity( module, uow, "extra many association" ) ); proto.extraNamedAssociation().put( "extra", buildBarEntity( module, uow, "extra named association" ) ); return builder.newInstance(); }