All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.asg.generator.meta.MetaTableProperty Maven / Gradle / Ivy

package net.anotheria.asg.generator.meta;

import java.util.ArrayList;
import java.util.List;

/**
 * A property type for representation of tables.
 *
 * @author another
 * @version $Id: $Id
 */
public class MetaTableProperty extends MetaContainerProperty{
	/**
	 * Columns of the table.
	 */
	private List columns;
	
	/**
	 * 

Constructor for MetaTableProperty.

* * @param name a {@link java.lang.String} object. */ public MetaTableProperty(String name){ super(name); columns = new ArrayList(); } /** *

addColumn.

* * @param columnName a {@link java.lang.String} object. */ public void addColumn(String columnName){ MetaProperty p = new MetaProperty(getName()+"_"+columnName,MetaProperty.Type.LIST); columns.add(p); } /** *

Getter for the field columns.

* * @return a {@link java.util.List} object. */ public List getColumns() { return columns; } /** *

Setter for the field columns.

* * @param list a {@link java.util.List} object. */ public void setColumns(List list) { columns = list; } /** *

extractSubName.

* * @param p a {@link net.anotheria.asg.generator.meta.MetaProperty} object. * @return a {@link java.lang.String} object. */ public String extractSubName(MetaProperty p){ return p.getName().substring(getName().length()+1); } /* (non-Javadoc) * @see net.anotheria.anodoc.generator.meta.MetaContainerProperty#getContainerEntryName() */ /** *

getContainerEntryName.

* * @return a {@link java.lang.String} object. */ public String getContainerEntryName() { return "Row"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy