
org.efaps.db.print.value.AttributeValueSelect Maven / Gradle / Ivy
/*
* Copyright 2003 - 2012 The eFaps Team
*
* 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.
*
* Revision: $Rev: 7483 $
* Last Changed: $Date: 2012-05-11 11:57:38 -0500 (Fri, 11 May 2012) $
* Last Changed By: $Author: [email protected] $
*/
package org.efaps.db.print.value;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.efaps.admin.datamodel.Attribute;
import org.efaps.admin.datamodel.Type;
import org.efaps.db.print.OneSelect;
import org.efaps.db.wrapper.SQLSelect;
import org.efaps.util.EFapsException;
/**
* TODO comment!
*
* @author The eFaps Team
* @version $Id: AttributeValueSelect.java 3520 2009-12-21 12:37:44Z tim.moxter
* $
*/
public class AttributeValueSelect
extends AbstractValueSelect
{
/**
* Attribute belonging to this AttributeValueSelect.
*/
private Attribute attribute;
/**
* Name of the Attribute belonging to this AttributeValueSelect.
*/
private String attrName;
/**
* @param _oneSelect OneSelect
* @param _attrName name of the attribute
*/
public AttributeValueSelect(final OneSelect _oneSelect,
final String _attrName)
{
super(_oneSelect);
this.attrName = _attrName;
}
/**
* @param _oneSelect OneSelect
* @param _attr Attribute
*/
public AttributeValueSelect(final OneSelect _oneSelect,
final Attribute _attr)
{
super(_oneSelect);
this.attribute = _attr;
}
/**
* Getter method for instance variable {@link #attrName}.
*
* @return value of instance variable {@link #attrName}
*/
public String getAttrName()
{
return this.attrName;
}
/**
* {@inheritDoc}
*/
@Override
public Attribute getAttribute()
{
return this.attribute;
}
/**
* Setter method for instance variable {@link #attribute}.
*
* @param _attribute value for instance variable {@link #attribute}
*/
public void setAttribute(final Attribute _attribute)
{
this.attribute = _attribute;
}
/**
* {@inheritDoc}
*/
@Override
public Object getValue(final Object _object)
throws EFapsException
{
final ArrayList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy