Package stubs.validation

Source Code of stubs.validation.FakeDomainEntity

/*
* Copyright 2002-2007 the original author or authors.
*
* Licensed under the Apache license, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package stubs.validation;

import org.internna.iwebmvc.core.context.ContextHolder;
import org.internna.iwebmvc.core.validation.annotation.BeanConstraint;
import org.internna.iwebmvc.model.core.AbstractDomainEntity;
import org.internna.iwebmvc.model.core.Color;
import org.internna.iwebmvc.model.core.I18nText;
/**
*
* @author Jose Noheda
* @since 1.0
*/
public class FakeDomainEntity extends AbstractDomainEntity {

    @BeanConstraint
    private I18nText name;
    @BeanConstraint
    private Color color;

    @Override
    public void initialize(ContextHolder context) {
        name = new I18nText();
        name.initialize(context);
        color = new Color();
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public I18nText getName() {
        return name;
    }

    public void setName(I18nText name) {
        this.name = name;
    }

}
TOP

Related Classes of stubs.validation.FakeDomainEntity

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.