• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java BuildingFurniture类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.citygml4j.model.citygml.building.BuildingFurniture的典型用法代码示例。如果您正苦于以下问题:Java BuildingFurniture类的具体用法?Java BuildingFurniture怎么用?Java BuildingFurniture使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

BuildingFurniture类属于org.citygml4j.model.citygml.building包,在下文中一共展示了BuildingFurniture类的24个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: CG_BuildingFurniture

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public CG_BuildingFurniture(BuildingFurniture bF) {
  super(bF);
  this.setClazz(bF.getClazz());
  this.getFunction().addAll(bF.getFunction());
  this.getUsage().addAll(bF.getUsage());
  this.setLod4Geometry(ConvertCityGMLtoGeometry.convertGMLGeometry(bF
      .getLod4Geometry()));

}
 

开发者ID:IGNF,
项目名称:geoxygene,
代码行数:10,
代码来源:CG_BuildingFurniture.java

示例2: export

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
@Override
public AbstractCityObject export() {
  
  BuildingFurniture bF = new BuildingFurniture();
  bF.setClazz(this.getClazz());
  bF.setFunction(this.getFunction());
  bF.setUsage(this.getUsage());
  if(bF.isSetLod4Geometry()){
    bF.setLod4Geometry(ConvertToCityGMLGeometry.convertGeometryProperty(this.getLod4Geometry()));
          
  }
  
  
  return bF;
}
 

开发者ID:IGNF,
项目名称:geoxygene,
代码行数:16,
代码来源:CG_BuildingFurniture.java

示例3: DBBuildingFurniture

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public DBBuildingFurniture(Connection connection, CityGMLExportManager exporter) throws CityGMLExportException, SQLException {
	super(BuildingFurniture.class, connection, exporter);

	CombinedProjectionFilter projectionFilter = exporter.getCombinedProjectionFilter(TableEnum.BUILDING_FURNITURE.getName());
	buildingModule = exporter.getTargetCityGMLVersion().getCityGMLModule(CityGMLModuleType.BUILDING).getNamespaceURI();
	lodFilter = exporter.getLodFilter();
	String schema = exporter.getDatabaseAdapter().getConnectionDetails().getSchema();
	hasObjectClassIdColumn = exporter.getDatabaseAdapter().getConnectionMetaData().getCityDBVersion().compareTo(4, 0, 0) >= 0;

	table = new Table(TableEnum.BUILDING_FURNITURE.getName(), schema);
	select = new Select().addProjection(table.getColumn("id"));
	if (hasObjectClassIdColumn) select.addProjection(table.getColumn("objectclass_id"));
	if (projectionFilter.containsProperty("class", buildingModule)) select.addProjection(table.getColumn("class"), table.getColumn("class_codespace"));
	if (projectionFilter.containsProperty("function", buildingModule)) select.addProjection(table.getColumn("function"), table.getColumn("function_codespace"));
	if (projectionFilter.containsProperty("usage", buildingModule)) select.addProjection(table.getColumn("usage"), table.getColumn("usage_codespace"));		
	if (projectionFilter.containsProperty("lod4Geometry", buildingModule)) select.addProjection(table.getColumn("lod4_brep_id"), exporter.getGeometryColumn(table.getColumn("lod4_other_geom")));
	if (projectionFilter.containsProperty("lod4ImplicitRepresentation", buildingModule))
		select.addProjection(table.getColumn("lod4_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod4_implicit_ref_point")), table.getColumn("lod4_implicit_transformation"));

	// add joins to ADE hook tables
	if (exporter.hasADESupport()) {
		adeHookTables = exporter.getADEHookTables(TableEnum.BUILDING_FURNITURE);			
		if (adeHookTables != null) addJoinsToADEHookTables(adeHookTables, table);
	}
	
	cityObjectExporter = exporter.getExporter(DBCityObject.class);
	geometryExporter = exporter.getExporter(DBSurfaceGeometry.class);
	implicitGeometryExporter = exporter.getExporter(DBImplicitGeometry.class);
	gmlConverter = exporter.getGMLConverter();
	valueSplitter = exporter.getAttributeValueSplitter();
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter,
代码行数:32,
代码来源:DBBuildingFurniture.java

示例4: visit

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void visit(BuildingFurniture buildingFurniture) {
	visit((AbstractCityObject)buildingFurniture);

	if (buildingFurniture.isSetGenericApplicationPropertyOfBuildingFurniture())
		for (ADEComponent ade : buildingFurniture.getGenericApplicationPropertyOfBuildingFurniture())
			visit(ade);
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter,
代码行数:8,
代码来源:ADEPropertyCollector.java

示例5: apply

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public T apply(BuildingFurniture buildingFurniture) {
	T object = apply((AbstractCityObject)buildingFurniture);
	if (object != null)
		return object;

	if (buildingFurniture.isSetLod4Geometry()) {
		object = apply(buildingFurniture.getLod4Geometry());
		if (object != null)
			return object;
	}

	if (buildingFurniture.isSetLod4ImplicitRepresentation()) {
		object = apply(buildingFurniture.getLod4ImplicitRepresentation());
		if (object != null)
			return object;
	}

	if (buildingFurniture.isSetGenericApplicationPropertyOfBuildingFurniture()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(buildingFurniture.getGenericApplicationPropertyOfBuildingFurniture())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}

	return null;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:28,
代码来源:GMLFunctionWalker.java

示例6: visit

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void visit(BuildingFurniture buildingFurniture) {
	visit((AbstractCityObject)buildingFurniture);

	if (buildingFurniture.isSetLod4Geometry())
		visit(buildingFurniture.getLod4Geometry());

	if (buildingFurniture.isSetLod4ImplicitRepresentation())
		visit(buildingFurniture.getLod4ImplicitRepresentation());

	if (buildingFurniture.isSetGenericApplicationPropertyOfBuildingFurniture())
		for (ADEComponent ade : new ArrayList<ADEComponent>(buildingFurniture.getGenericApplicationPropertyOfBuildingFurniture()))
			visit(ade);
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:14,
代码来源:GMLWalker.java

示例7: visit

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void visit(BuildingFurniture buildingFurniture) {
	visit((AbstractCityObject)buildingFurniture);

	if (buildingFurniture.isSetGenericApplicationPropertyOfBuildingFurniture())
		for (ADEComponent ade : new ArrayList<ADEComponent>(buildingFurniture.getGenericApplicationPropertyOfBuildingFurniture()))
			visit(ade);
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:8,
代码来源:FeatureWalker.java

示例8: apply

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public T apply(BuildingFurniture buildingFurniture) {
	T object = apply((AbstractCityObject)buildingFurniture);
	if (object != null)
		return object;

	if (buildingFurniture.isSetGenericApplicationPropertyOfBuildingFurniture()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(buildingFurniture.getGenericApplicationPropertyOfBuildingFurniture())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}

	return null;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:16,
代码来源:FeatureFunctionWalker.java

示例9: getElementMapper

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
private TypeMapper<JAXBElement<?>> getElementMapper() {
	if (elementMapper == null) {
		lock.lock();
		try {
			if (elementMapper == null) {
				elementMapper = TypeMapper.<JAXBElement<?>>create()
						.with(Building.class, this::createBuilding)
						.with(BuildingFurniture.class, this::createBuildingFurniture)
						.with(BuildingInstallation.class, this::createBuildingInstallation)
						.with(BuildingPart.class, this::createBuildingPart)
						.with(CeilingSurface.class, this::createCeilingSurface)
						.with(ClosureSurface.class, this::createClosureSurface)
						.with(Door.class, this::createDoor)
						.with(FloorSurface.class, this::createFloorSurface)
						.with(GroundSurface.class, this::createGroundSurface)
						.with(IntBuildingInstallation.class, this::createIntBuildingInstallation)
						.with(InteriorWallSurface.class, this::createInteriorWallSurface)
						.with(OuterCeilingSurface.class, this::createOuterCeilingSurface)
						.with(OuterFloorSurface.class, this::createOuterFloorSurface)
						.with(RoofSurface.class, this::createRoofSurface)
						.with(Room.class, this::createRoom)
						.with(WallSurface.class, this::createWallSurface)
						.with(Window.class, this::createWindow);
			}
		} finally {
			lock.unlock();
		}
	}

	return elementMapper;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:32,
代码来源:Building200Marshaller.java

示例10: getTypeMapper

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
	if (typeMapper == null) {
		lock.lock();
		try {
			if (typeMapper == null) {
				typeMapper = TypeMapper.create()
						.with(BoundarySurfaceProperty.class, this::marshalBoundarySurfaceProperty)
						.with(Building.class, this::marshalBuilding)
						.with(BuildingFurniture.class, this::marshalBuildingFurniture)
						.with(BuildingInstallation.class, this::marshalBuildingInstallation)
						.with(BuildingInstallationProperty.class, this::marshalBuildingInstallationProperty)
						.with(BuildingPart.class, this::marshalBuildingPart)
						.with(BuildingPartProperty.class, this::marshalBuildingPartProperty)
						.with(CeilingSurface.class, this::marshalCeilingSurface)
						.with(ClosureSurface.class, this::marshalClosureSurface)
						.with(Door.class, this::marshalDoor)
						.with(FloorSurface.class, this::marshalFloorSurface)
						.with(GroundSurface.class, this::marshalGroundSurface)
						.with(IntBuildingInstallation.class, this::marshalIntBuildingInstallation)
						.with(IntBuildingInstallationProperty.class, this::marshalIntBuildingInstallationProperty)
						.with(InteriorFurnitureProperty.class, this::marshalInteriorFurnitureProperty)
						.with(InteriorRoomProperty.class, this::marshalInteriorRoomProperty)
						.with(InteriorWallSurface.class, this::marshalInteriorWallSurface)
						.with(OpeningProperty.class, this::marshalOpeningProperty)
						.with(OuterCeilingSurface.class, this::marshalOuterCeilingSurface)
						.with(OuterFloorSurface.class, this::marshalOuterFloorSurface)
						.with(RoofSurface.class, this::marshalRoofSurface)
						.with(Room.class, this::marshalRoom)
						.with(WallSurface.class, this::marshalWallSurface)
						.with(Window.class, this::marshalWindow);
			}
		} finally {
			lock.unlock();
		}
	}

	return typeMapper;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:39,
代码来源:Building200Marshaller.java

示例11: marshalBuildingFurniture

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void marshalBuildingFurniture(BuildingFurniture src, BuildingFurnitureType dest) {
	citygml.getCore200Marshaller().marshalAbstractCityObject(src, dest);

	if (src.isSetClazz())
		dest.setClazz(jaxb.getGMLMarshaller().marshalCode(src.getClazz()));

	if (src.isSetFunction()) {
		for (Code function : src.getFunction())
			dest.getFunction().add(jaxb.getGMLMarshaller().marshalCode(function));
	}

	if (src.isSetUsage()) {
		for (Code usage : src.getUsage())
			dest.getUsage().add(jaxb.getGMLMarshaller().marshalCode(usage));
	}

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSetGenericApplicationPropertyOfBuildingFurniture()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfBuildingFurniture()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfBuildingFurniture().add(jaxbElement);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:31,
代码来源:Building200Marshaller.java

示例12: marshalBuildingFurniture

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void marshalBuildingFurniture(BuildingFurniture src, BuildingFurnitureType dest) {
	citygml.getCore100Marshaller().marshalAbstractCityObject(src, dest);

	if (src.isSetClazz())
		dest.setClazz(src.getClazz().getValue());

	if (src.isSetFunction()) {
		for (Code function : src.getFunction())
			dest.getFunction().add(function.getValue());
	}

	if (src.isSetUsage()) {
		for (Code usage : src.getUsage())
			dest.getUsage().add(usage.getValue());
	}

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSetGenericApplicationPropertyOfBuildingFurniture()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfBuildingFurniture()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfBuildingFurniture().add(jaxbElement);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:31,
代码来源:Building100Marshaller.java

示例13: unmarshalBuildingFurniture

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void unmarshalBuildingFurniture(BuildingFurnitureType src, BuildingFurniture dest) throws MissingADESchemaException {
	citygml.getCore100Unmarshaller().unmarshalAbstractCityObject(src, dest);

	if (src.isSetClazz())
		dest.setClazz(new Code(src.getClazz()));

	if (src.isSetFunction()) {
		for (String function : src.getFunction())
			dest.addFunction(new Code(function));
	}

	if (src.isSetUsage()) {
		for (String usage : src.getUsage())
			dest.addUsage(new Code(usage));
	}

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSet_GenericApplicationPropertyOfBuildingFurniture()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfBuildingFurniture()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfBuildingFurniture(ade);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:31,
代码来源:Building100Unmarshaller.java

示例14: unmarshalInteriorFurnitureProperty

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public InteriorFurnitureProperty unmarshalInteriorFurnitureProperty(InteriorFurniturePropertyType src) throws MissingADESchemaException {
	InteriorFurnitureProperty dest = new InteriorFurnitureProperty(module);
	jaxb.getGMLUnmarshaller().unmarshalFeatureProperty(src, dest);

	if (src.isSet_Object()) {
		ModelObject object = jaxb.unmarshal(src.get_Object());
		if (object instanceof BuildingFurniture)
			dest.setObject((BuildingFurniture)object);
	}

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:13,
代码来源:Building100Unmarshaller.java

示例15: unmarshalBuildingFurniture

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void unmarshalBuildingFurniture(BuildingFurnitureType src, BuildingFurniture dest) throws MissingADESchemaException {
	citygml.getCore200Unmarshaller().unmarshalAbstractCityObject(src, dest);

	if (src.isSetClazz())
		dest.setClazz(jaxb.getGMLUnmarshaller().unmarshalCode(src.getClazz()));

	if (src.isSetFunction()) {
		for (CodeType function : src.getFunction())
			dest.addFunction(jaxb.getGMLUnmarshaller().unmarshalCode(function));
	}

	if (src.isSetUsage()) {
		for (CodeType usage : src.getUsage())
			dest.addUsage(jaxb.getGMLUnmarshaller().unmarshalCode(usage));
	}

	if (src.isSetLod4Geometry())
		dest.setLod4Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod4Geometry()));

	if (src.isSetLod4ImplicitRepresentation())
		dest.setLod4ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod4ImplicitRepresentation()));

	if (src.isSet_GenericApplicationPropertyOfBuildingFurniture()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfBuildingFurniture()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfBuildingFurniture(ade);
		}
	}
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:31,
代码来源:Building200Unmarshaller.java

示例16: unmarshalInteriorFurnitureProperty

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public InteriorFurnitureProperty unmarshalInteriorFurnitureProperty(InteriorFurniturePropertyType src) throws MissingADESchemaException {
	InteriorFurnitureProperty dest = new InteriorFurnitureProperty(module);

	if (src.isSet_CityObject()) {
		ModelObject object = jaxb.unmarshal(src.get_CityObject());
		if (object instanceof BuildingFurniture)
			dest.setBuildingFurniture((BuildingFurniture)object);
	}

	if (src.isSet_ADEComponent())
		dest.setGenericADEElement(jaxb.getADEUnmarshaller().unmarshal(src.get_ADEComponent()));

	if (src.isSetRemoteSchema())
		dest.setRemoteSchema(src.getRemoteSchema());

	if (src.isSetType())
		dest.setType(XLinkType.fromValue(src.getType().value()));

	if (src.isSetHref())
		dest.setHref(src.getHref());

	if (src.isSetRole())
		dest.setRole(src.getRole());

	if (src.isSetArcrole())
		dest.setArcrole(src.getArcrole());

	if (src.isSetTitle())
		dest.setTitle(src.getTitle());

	if (src.isSetShow())
		dest.setShow(XLinkShow.fromValue(src.getShow().value()));

	if (src.isSetActuate())
		dest.setActuate(XLinkActuate.fromValue(src.getActuate().value()));

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:39,
代码来源:Building200Unmarshaller.java

示例17: doExport

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
protected Collection<BuildingFurniture> doExport(Room parent, long parentId) throws CityGMLExportException, SQLException {
	return doExport(parentId, null, null, getOrCreateStatement("room_id"));
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter,
代码行数:4,
代码来源:DBBuildingFurniture.java

示例18: doImport

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
protected long doImport(BuildingFurniture buildingFurniture) throws CityGMLImportException, SQLException {
	return doImport(buildingFurniture, 0);
}
 

开发者ID:3dcitydb,
项目名称:importer-exporter,
代码行数:4,
代码来源:DBBuildingFurniture.java

示例19: createBuildingFurniture

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
private JAXBElement<?> createBuildingFurniture(BuildingFurniture src) {
	return bldg.createBuildingFurniture(marshalBuildingFurniture(src));
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:4,
代码来源:Building200Marshaller.java

示例20: assignGenericProperty

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public boolean assignGenericProperty(ADEGenericElement genericProperty, QName substitutionGroup, CityGML dest) {
	String name = substitutionGroup.getLocalPart();
	boolean success = true;

	if (dest instanceof AbstractBuilding && name.equals("_GenericApplicationPropertyOfAbstractBuilding"))
		((AbstractBuilding)dest).addGenericApplicationPropertyOfAbstractBuilding(genericProperty);
	else if (dest instanceof Building && name.equals("_GenericApplicationPropertyOfBuilding"))
		((Building)dest).addGenericApplicationPropertyOfBuilding(genericProperty);
	else if (dest instanceof BuildingPart && name.equals("_GenericApplicationPropertyOfBuildingPart"))
		((BuildingPart)dest).addGenericApplicationPropertyOfBuildingPart(genericProperty);
	else if (dest instanceof AbstractBoundarySurface && name.equals("_GenericApplicationPropertyOfBoundarySurface"))
		((AbstractBoundarySurface)dest).addGenericApplicationPropertyOfBoundarySurface(genericProperty);
	else if (dest instanceof CeilingSurface && name.equals("_GenericApplicationPropertyOfCeilingSurface"))
		((CeilingSurface)dest).addGenericApplicationPropertyOfCeilingSurface(genericProperty);
	else if (dest instanceof ClosureSurface && name.equals("_GenericApplicationPropertyOfClosureSurface"))
		((ClosureSurface)dest).addGenericApplicationPropertyOfClosureSurface(genericProperty);
	else if (dest instanceof FloorSurface && name.equals("_GenericApplicationPropertyOfFloorSurface"))
		((FloorSurface)dest).addGenericApplicationPropertyOfFloorSurface(genericProperty);
	else if (dest instanceof GroundSurface && name.equals("_GenericApplicationPropertyOfGroundSurface"))
		((GroundSurface)dest).addGenericApplicationPropertyOfGroundSurface(genericProperty);
	else if (dest instanceof InteriorWallSurface && name.equals("_GenericApplicationPropertyOfInteriorWallSurface"))
		((InteriorWallSurface)dest).addGenericApplicationPropertyOfInteriorWallSurface(genericProperty);
	else if (dest instanceof RoofSurface && name.equals("_GenericApplicationPropertyOfRoofSurface"))
		((RoofSurface)dest).addGenericApplicationPropertyOfRoofSurface(genericProperty);
	else if (dest instanceof WallSurface && name.equals("_GenericApplicationPropertyOfWallSurface"))
		((WallSurface)dest).addGenericApplicationPropertyOfWallSurface(genericProperty);
	else if (dest instanceof AbstractOpening && name.equals("_GenericApplicationPropertyOfOpening"))
		((AbstractOpening)dest).addGenericApplicationPropertyOfOpening(genericProperty);
	else if (dest instanceof Window && name.equals("_GenericApplicationPropertyOfWindow"))
		((Window)dest).addGenericApplicationPropertyOfWindow(genericProperty);
	else if (dest instanceof Door && name.equals("_GenericApplicationPropertyOfDoor"))
		((Door)dest).addGenericApplicationPropertyOfDoor(genericProperty);
	else if (dest instanceof BuildingFurniture && name.equals("_GenericApplicationPropertyOfBuildingFurniture"))
		((BuildingFurniture)dest).addGenericApplicationPropertyOfBuildingFurniture(genericProperty);
	else if (dest instanceof BuildingInstallation && name.equals("_GenericApplicationPropertyOfBuildingInstallation"))
		((BuildingInstallation)dest).addGenericApplicationPropertyOfBuildingInstallation(genericProperty);
	else if (dest instanceof IntBuildingInstallation && name.equals("_GenericApplicationPropertyOfIntBuildingInstallation"))
		((IntBuildingInstallation)dest).addGenericApplicationPropertyOfIntBuildingInstallation(genericProperty);
	else if (dest instanceof Room && name.equals("_GenericApplicationPropertyOfRoom"))
		((Room)dest).addGenericApplicationPropertyOfRoom(genericProperty);		
	else 
		success = false;

	return success;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:46,
代码来源:Building100Unmarshaller.java

示例21: assignGenericProperty

点赞 2

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public boolean assignGenericProperty(ADEGenericElement genericProperty, QName substitutionGroup, CityGML dest) {
	String name = substitutionGroup.getLocalPart();
	boolean success = true;

	if (dest instanceof AbstractBuilding && name.equals("_GenericApplicationPropertyOfAbstractBuilding"))
		((AbstractBuilding)dest).addGenericApplicationPropertyOfAbstractBuilding(genericProperty);
	else if (dest instanceof Building && name.equals("_GenericApplicationPropertyOfBuilding"))
		((Building)dest).addGenericApplicationPropertyOfBuilding(genericProperty);
	else if (dest instanceof BuildingPart && name.equals("_GenericApplicationPropertyOfBuildingPart"))
		((BuildingPart)dest).addGenericApplicationPropertyOfBuildingPart(genericProperty);
	else if (dest instanceof AbstractBoundarySurface && name.equals("_GenericApplicationPropertyOfBoundarySurface"))
		((AbstractBoundarySurface)dest).addGenericApplicationPropertyOfBoundarySurface(genericProperty);
	else if (dest instanceof CeilingSurface && name.equals("_GenericApplicationPropertyOfCeilingSurface"))
		((CeilingSurface)dest).addGenericApplicationPropertyOfCeilingSurface(genericProperty);
	else if (dest instanceof ClosureSurface && name.equals("_GenericApplicationPropertyOfClosureSurface"))
		((ClosureSurface)dest).addGenericApplicationPropertyOfClosureSurface(genericProperty);
	else if (dest instanceof FloorSurface && name.equals("_GenericApplicationPropertyOfFloorSurface"))
		((FloorSurface)dest).addGenericApplicationPropertyOfFloorSurface(genericProperty);
	else if (dest instanceof GroundSurface && name.equals("_GenericApplicationPropertyOfGroundSurface"))
		((GroundSurface)dest).addGenericApplicationPropertyOfGroundSurface(genericProperty);
	else if (dest instanceof InteriorWallSurface && name.equals("_GenericApplicationPropertyOfInteriorWallSurface"))
		((InteriorWallSurface)dest).addGenericApplicationPropertyOfInteriorWallSurface(genericProperty);
	else if (dest instanceof OuterCeilingSurface && name.equals("_GenericApplicationPropertyOfOuterCeilingSurface"))
		((OuterCeilingSurface)dest).addGenericApplicationPropertyOfOuterCeilingSurface(genericProperty);
	else if (dest instanceof OuterFloorSurface && name.equals("_GenericApplicationPropertyOfOuterFloorSurface"))
		((OuterFloorSurface)dest).addGenericApplicationPropertyOfOuterFloorSurface(genericProperty);
	else if (dest instanceof RoofSurface && name.equals("_GenericApplicationPropertyOfRoofSurface"))
		((RoofSurface)dest).addGenericApplicationPropertyOfRoofSurface(genericProperty);
	else if (dest instanceof WallSurface && name.equals("_GenericApplicationPropertyOfWallSurface"))
		((WallSurface)dest).addGenericApplicationPropertyOfWallSurface(genericProperty);
	else if (dest instanceof AbstractOpening && name.equals("_GenericApplicationPropertyOfOpening"))
		((AbstractOpening)dest).addGenericApplicationPropertyOfOpening(genericProperty);
	else if (dest instanceof Window && name.equals("_GenericApplicationPropertyOfWindow"))
		((Window)dest).addGenericApplicationPropertyOfWindow(genericProperty);
	else if (dest instanceof Door && name.equals("_GenericApplicationPropertyOfDoor"))
		((Door)dest).addGenericApplicationPropertyOfDoor(genericProperty);
	else if (dest instanceof BuildingFurniture && name.equals("_GenericApplicationPropertyOfBuildingFurniture"))
		((BuildingFurniture)dest).addGenericApplicationPropertyOfBuildingFurniture(genericProperty);
	else if (dest instanceof BuildingInstallation && name.equals("_GenericApplicationPropertyOfBuildingInstallation"))
		((BuildingInstallation)dest).addGenericApplicationPropertyOfBuildingInstallation(genericProperty);
	else if (dest instanceof IntBuildingInstallation && name.equals("_GenericApplicationPropertyOfIntBuildingInstallation"))
		((IntBuildingInstallation)dest).addGenericApplicationPropertyOfIntBuildingInstallation(genericProperty);
	else if (dest instanceof Room && name.equals("_GenericApplicationPropertyOfRoom"))
		((Room)dest).addGenericApplicationPropertyOfRoom(genericProperty);		
	else 
		success = false;

	return success;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:50,
代码来源:Building200Unmarshaller.java

示例22: generateCityObject

点赞 1

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public static CG_CityObject generateCityObject(AbstractCityObject cO) {

		CG_CityObject cgCO = null;

		if (cO instanceof Room) {
			cgCO = new CG_Room((Room) cO);
		} else if (cO instanceof IntBuildingInstallation) {

			cgCO = new CG_IntBuildingInstallation((IntBuildingInstallation) cO);

		} else if (cO instanceof Window) {
			cgCO = new CG_Window((Window) cO);

		} else if (cO instanceof Door) {
			cgCO = new CG_Door((Door) cO);

		} else if (cO instanceof BuildingFurniture) {
			cgCO = new CG_BuildingFurniture((BuildingFurniture) cO);

		} else if (cO instanceof CityFurniture) {
			cgCO = new CG_CityFurniture((CityFurniture) cO);

		} else if (cO instanceof BuildingInstallation) {
			cgCO = new CG_BuildingInstallation((BuildingInstallation) cO);

		} else if (cO instanceof AbstractBoundarySurface) {
			cgCO = CG_AbstractBoundarySurface.generateBoundarySurface((AbstractBoundarySurface) cO);

		} else if (cO instanceof CityObjectGroup) {
			cgCO = new CG_CityObjectGroup((CityObjectGroup) cO);

		} else if (cO instanceof Building) {
			cgCO = new CG_Building((Building) cO);

		} else if (cO instanceof BuildingPart) {
			cgCO = new CG_BuildingPart((BuildingPart) cO);

		} else if (cO instanceof IntBuildingInstallation) {
			cgCO = new CG_IntBuildingInstallation((IntBuildingInstallation) cO);

		} else if (cO instanceof GenericCityObject) {
			cgCO = new CG_GenericCityObject((GenericCityObject) cO);

		} else if (cO instanceof LandUse) {
			cgCO = new CG_LandUse((LandUse) cO);

		} else if (cO instanceof ReliefFeature) {

			cgCO = new CG_ReliefFeature((ReliefFeature) cO);

		} else if (cO instanceof AbstractReliefComponent) {

			cgCO = CG_AbstractReliefComponent.generateReliefComponentType((AbstractReliefComponent) cO);

		} else if (cO instanceof AbstractTransportationObject) {

			cgCO = CG_AbstractTransportation.generateAbstractTransportationObject((AbstractTransportationObject) cO);

		} else if (cO instanceof AbstractVegetationObject) {

			cgCO = CG_AbstractVegetationObject.generateAbstractVegetationObject((AbstractVegetationObject) cO);

		} else if (cO instanceof AbstractWaterObject) {

			cgCO = CG_AbstractWaterObject.generateAbstractWaterObject((AbstractWaterObject) cO);

		} else if (cO instanceof AbstractWaterBoundarySurface) {

			cgCO = CG_WaterBoundarySurface.generateAbstractWaterBoundarySurface((AbstractWaterBoundarySurface) cO);

		} else {

			System.out.println("Non géré" + cO.getClass().toString());
		}

		return cgCO;

	}
 

开发者ID:IGNF,
项目名称:geoxygene,
代码行数:79,
代码来源:CG_CityObject.java

示例23: visit

点赞 1

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public void visit(BuildingFurniture buildingFurniture); 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:2,
代码来源:FeatureVisitor.java

示例24: apply

点赞 1

import org.citygml4j.model.citygml.building.BuildingFurniture; //导入依赖的package包/类
public T apply(BuildingFurniture buildingFurniture); 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:2,
代码来源:FeatureFunctor.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)