2012-06-17 20:34:50 +02:00
|
|
|
/*******************************************************************************
|
|
|
|
* Copyright (c) 2012 IT Just working.
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* IT Just working - initial API and implementation
|
|
|
|
*******************************************************************************/
|
2015-01-03 16:34:32 +01:00
|
|
|
package com.minres.scviewer.database.text
|
2012-06-17 19:53:05 +02:00
|
|
|
|
2015-01-03 16:34:32 +01:00
|
|
|
import com.minres.scviewer.database.AssociationType;
|
|
|
|
import com.minres.scviewer.database.DataType;
|
|
|
|
import com.minres.scviewer.database.ITrAttrType;
|
2012-06-17 19:53:05 +02:00
|
|
|
|
2015-01-03 16:34:32 +01:00
|
|
|
class AttrType implements ITrAttrType {
|
2012-06-17 19:53:05 +02:00
|
|
|
String name
|
2015-01-03 16:34:32 +01:00
|
|
|
DataType dataType
|
|
|
|
AssociationType type
|
2012-06-17 19:53:05 +02:00
|
|
|
|
2015-01-03 16:34:32 +01:00
|
|
|
static AttrType getAttrType(String name, DataType dataType, AssociationType type){
|
|
|
|
AttrTypeFactory.instance.getAttrType(name, dataType, type)
|
2012-06-17 19:53:05 +02:00
|
|
|
}
|
|
|
|
|
2015-01-03 16:34:32 +01:00
|
|
|
AttrType(String name, DataType dataType, AssociationType type){
|
2012-06-17 19:53:05 +02:00
|
|
|
this.name=name
|
2015-01-01 23:17:32 +01:00
|
|
|
this.dataType=dataType
|
2012-06-17 19:53:05 +02:00
|
|
|
this.type=type
|
|
|
|
}
|
|
|
|
}
|