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

nl.wietmazairac.bimql.get.attribute.GetAttributeSubIfcRelAssociatesProfileProperties Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package nl.wietmazairac.bimql.get.attribute;

import java.util.ArrayList;

import org.bimserver.models.ifc2x3tc1.IfcRelAssociatesProfileProperties;

public class GetAttributeSubIfcRelAssociatesProfileProperties {
	// fields
	private Object object;
	private String string;

	// constructors
	public GetAttributeSubIfcRelAssociatesProfileProperties(Object object, String string) {
		this.object = object;
		this.string = string;
	}

	// methods
	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

	public String getString() {
		return string;
	}

	public void setString(String string) {
		this.string = string;
	}

	public ArrayList getResult() {
	ArrayList resultList = new ArrayList();
		if (string.equals("RelatingProfileProperties")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getRelatingProfileProperties());
			 //1IfcProfileProperties
		}
		else if (string.equals("ProfileSectionLocation")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getProfileSectionLocation());
			 //1IfcShapeAspect
		}
		else if (string.equals("ProfileOrientation")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getProfileOrientation());
			 //1IfcOrientationSelect
		}
		else if (string.equals("RelatedObjects")) {
			//3xxx
			for (int i = 0; i < ((IfcRelAssociatesProfileProperties) object).getRelatedObjects().size(); i++) {
				resultList.add(((IfcRelAssociatesProfileProperties) object).getRelatedObjects().get(i));
			}
			 //2EList
		}
		else if (string.equals("OwnerHistory")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getOwnerHistory());
			 //3IfcOwnerHistory
		}
		else if (string.equals("GlobalId")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getGlobalId());
			 //3IfcGloballyUniqueId
		}
		else if (string.equals("GlobalIdObject")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getGlobalId());
			 //3IfcGloballyUniqueId
		}
		else if (string.equals("Name")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getName());
			 //3String
		}
		else if (string.equals("Description")) {
			resultList.add(((IfcRelAssociatesProfileProperties) object).getDescription());
			 //3String
		}
		else {
		}
		return resultList;
	}
}