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

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

java 2次浏览

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

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

示例1: getElementMapper

点赞 3

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
private TypeMapper<JAXBElement<?>> getElementMapper() {
	if (elementMapper == null) {
		lock.lock();
		try {
			if (elementMapper == null) {
				elementMapper = TypeMapper.<JAXBElement<?>>create()
						.with(GenericCityObject.class, this::createGenericCityObject)
						.with(DateAttribute.class, this::createDateAttribute)
						.with(DoubleAttribute.class, this::createDoubleAttribute)
						.with(IntAttribute.class, this::createIntAttribute)
						.with(StringAttribute.class, this::createStringAttribute)
						.with(UriAttribute.class, this::createUriAttribute)
						.with(MeasureAttribute.class, this::createMeasureAttribute)
						.with(GenericAttributeSet.class, this::createGenericAttributeSet);
			}
		} finally {
			lock.unlock();
		}
	}

	return elementMapper;
}
 

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

示例2: getTypeMapper

点赞 3

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
	if (typeMapper == null) {
		lock.lock();
		try {
			if (typeMapper == null) {
				typeMapper = TypeMapper.create()
						.with(GenericCityObject.class, this::marshalGenericCityObject)
						.with(DateAttribute.class, this::marshalDateAttribute)
						.with(DoubleAttribute.class, this::marshalDoubleAttribute)
						.with(IntAttribute.class, this::marshalIntAttribute)
						.with(StringAttribute.class, this::marshalStringAttribute)
						.with(UriAttribute.class, this::marshalUriAttribute)
						.with(MeasureAttribute.class, this::marshalMeasureAttribute)
						.with(GenericAttributeSet.class, this::marshalGenericAttributeSet);
			}
		} finally {
			lock.unlock();
		}
	}

	return typeMapper;
}
 

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

示例3: getElementMapper

点赞 3

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
private TypeMapper<JAXBElement<?>> getElementMapper() {
	if (elementMapper == null) {
		lock.lock();
		try {
			if (elementMapper == null) {
				elementMapper = TypeMapper.<JAXBElement<?>>create()
						.with(GenericCityObject.class, this::createGenericCityObject)
						.with(DateAttribute.class, this::createDateAttribute)
						.with(DoubleAttribute.class, this::createDoubleAttribute)
						.with(IntAttribute.class, this::createIntAttribute)
						.with(StringAttribute.class, this::createStringAttribute)
						.with(UriAttribute.class, this::createUriAttribute)
						.with(MeasureAttribute.class, this::createMeasureAttribute);
			}
		} finally {
			lock.unlock();
		}
	}

	return elementMapper;
}
 

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

示例4: getTypeMapper

点赞 3

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
	if (typeMapper == null) {
		lock.lock();
		try {
			if (typeMapper == null) {
				typeMapper = TypeMapper.create()
						.with(GenericCityObject.class, this::marshalGenericCityObject)
						.with(DateAttribute.class, this::marshalDateAttribute)
						.with(DoubleAttribute.class, this::marshalDoubleAttribute)
						.with(IntAttribute.class, this::marshalIntAttribute)
						.with(StringAttribute.class, this::marshalStringAttribute)
						.with(UriAttribute.class, this::marshalUriAttribute)
						.with(MeasureAttribute.class, this::marshalMeasureAttribute);
			}
		} finally {
			lock.unlock();
		}
	}

	return typeMapper;
}
 

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

示例5: apply

点赞 2

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

	return null;
}
 

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

示例6: unmarshalGenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void unmarshalGenericCityObject(GenericCityObjectType src, GenericCityObject dest) {
	citygml.getCoreUnmarshaller().unmarshalAbstractCityObject(src, dest);
	
	if (src.isSetAttributes()) {
		Attributes attributes = src.getAttributes();
		if (attributes.isSetClazz())
			dest.setClazz(new Code(attributes.getClazz()));

		if (attributes.isSetFunction())
			dest.addFunction(new Code(attributes.getFunction()));

		if (attributes.isSetUsage())
			dest.addUsage(new Code(attributes.getUsage()));
	}
	
	for (AbstractGeometryType geometryType : src.getGeometry()) {
		AbstractGeometry geometry = json.getGMLUnmarshaller().unmarshal(geometryType, dest);

		if (geometry != null) {
			int lod = geometryType.getLod().intValue();
			switch (lod) {
			case 0:
				dest.setLod0Geometry(new GeometryProperty<>(geometry));
				break;
			case 1:
				dest.setLod1Geometry(new GeometryProperty<>(geometry));
				break;
			case 2:
				dest.setLod2Geometry(new GeometryProperty<>(geometry));
				break;
			case 3:
				dest.setLod3Geometry(new GeometryProperty<>(geometry));
				break;
			}
		}	
	}
}
 

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

示例7: insert

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public long insert(GenericCityObject genericCityObject) throws SQLException {
	long genericCityObjectId = dbImporterManager.getDBId(DBSequencerEnum.CITYOBJECT_SEQ);
	boolean success = false;

	if (genericCityObjectId != 0)
		success = insert(genericCityObject, genericCityObjectId);

	if (success)
		return genericCityObjectId;
	else
		return 0;
}
 

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

示例8: insert

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public long insert(GenericCityObject genericCityObject) throws SQLException {
	long genericCityObjectId = dbImporterManager.getDBId(DBSequencerEnum.CITYOBJECT_ID_SEQ);
	boolean success = false;

	if (genericCityObjectId != 0)
		success = insert(genericCityObject, genericCityObjectId);

	if (success)
		return genericCityObjectId;
	else
		return 0;
}
 

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

示例9: CG_GenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public CG_GenericCityObject(GenericCityObject gCO) {

		super(gCO);

		this.clazz = gCO.getClazz();
		this.function = gCO.getFunction();
		this.usage = gCO.getUsage();

		if (gCO.isSetLod1TerrainIntersection()) {
			this.lod1TerrainIntersection = ConvertCityGMLtoGeometry
					.convertGMLMultiCurve(gCO.getLod1TerrainIntersection());
		}

		if (gCO.isSetLod2TerrainIntersection()) {
			this.lod2TerrainIntersection = ConvertCityGMLtoGeometry
					.convertGMLMultiCurve(gCO.getLod2TerrainIntersection());
		}

		if (gCO.isSetLod3TerrainIntersection()) {
			this.lod3TerrainIntersection = ConvertCityGMLtoGeometry
					.convertGMLMultiCurve(gCO.getLod3TerrainIntersection());
		}

		if (gCO.isSetLod4TerrainIntersection()) {
			this.lod4TerrainIntersection = ConvertCityGMLtoGeometry
					.convertGMLMultiCurve(gCO.getLod4TerrainIntersection());
		}

		if (gCO.isSetLod0Geometry()) {

			this.lod0Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(gCO.getLod0Geometry());
		}

		if (gCO.isSetLod1Geometry()) {

			this.lod1Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(gCO.getLod1Geometry());
		}

		if (gCO.isSetLod2Geometry()) {

			this.lod2Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(gCO.getLod2Geometry());
		}

		if (gCO.isSetLod3Geometry()) {

			this.lod3Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(gCO.getLod3Geometry());
		}

		if (gCO.isSetLod4Geometry()) {

			this.lod4Geometry = ConvertCityGMLtoGeometry.convertGMLGeometry(gCO.getLod4Geometry());
		}

		if (gCO.isSetLod0ImplicitRepresentation()) {
			System.out.println("Non gestion des géométries implicites : CG_GenericCityObject");
		}

		if (gCO.isSetLod1ImplicitRepresentation()) {
			System.out.println("Non gestion des géométries implicites : CG_GenericCityObject");
		}

		if (gCO.isSetLod2ImplicitRepresentation()) {
			System.out.println("Non gestion des géométries implicites : CG_GenericCityObject");
		}

		if (gCO.isSetLod3ImplicitRepresentation()) {
			System.out.println("Non gestion des géométries implicites: CG_GenericCityObject");
		}

		if (gCO.isSetLod4ImplicitRepresentation()) {
			System.out.println("Non gestion des géométries implicites : CG_GenericCityObject");
		}
	}
 

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

示例10: DBGenericCityObject

点赞 2

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

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

	table = new Table(TableEnum.GENERIC_CITYOBJECT.getName(), schema);
	select = new Select().addProjection(table.getColumn("id"));
	if (hasObjectClassIdColumn) select.addProjection(table.getColumn("objectclass_id"));
	if (projectionFilter.containsProperty("class", genericsModule)) select.addProjection(table.getColumn("class"), table.getColumn("class_codespace"));
	if (projectionFilter.containsProperty("function", genericsModule)) select.addProjection(table.getColumn("function"), table.getColumn("function_codespace"));
	if (projectionFilter.containsProperty("usage", genericsModule)) select.addProjection(table.getColumn("usage"), table.getColumn("usage_codespace"));
	if (projectionFilter.containsProperty("lod0TerrainIntersection", genericsModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod0_terrain_intersection")));
	if (projectionFilter.containsProperty("lod1TerrainIntersection", genericsModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod1_terrain_intersection")));
	if (projectionFilter.containsProperty("lod2TerrainIntersection", genericsModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod2_terrain_intersection")));
	if (projectionFilter.containsProperty("lod3TerrainIntersection", genericsModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod3_terrain_intersection")));
	if (projectionFilter.containsProperty("lod4TerrainIntersection", genericsModule)) select.addProjection(exporter.getGeometryColumn(table.getColumn("lod4_terrain_intersection")));
	if (projectionFilter.containsProperty("lod0Geometry", genericsModule)) select.addProjection(table.getColumn("lod0_brep_id"), exporter.getGeometryColumn(table.getColumn("lod0_other_geom")));
	if (projectionFilter.containsProperty("lod1Geometry", genericsModule)) select.addProjection(table.getColumn("lod1_brep_id"), exporter.getGeometryColumn(table.getColumn("lod1_other_geom")));
	if (projectionFilter.containsProperty("lod2Geometry", genericsModule)) select.addProjection(table.getColumn("lod2_brep_id"), exporter.getGeometryColumn(table.getColumn("lod2_other_geom")));
	if (projectionFilter.containsProperty("lod3Geometry", genericsModule)) select.addProjection(table.getColumn("lod3_brep_id"), exporter.getGeometryColumn(table.getColumn("lod3_other_geom")));
	if (projectionFilter.containsProperty("lod4Geometry", genericsModule)) select.addProjection(table.getColumn("lod4_brep_id"), exporter.getGeometryColumn(table.getColumn("lod4_other_geom")));
	if (projectionFilter.containsProperty("lod0ImplicitRepresentation", genericsModule))
		select.addProjection(table.getColumn("lod0_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod0_implicit_ref_point")), table.getColumn("lod0_implicit_transformation"));
	if (projectionFilter.containsProperty("lod1ImplicitRepresentation", genericsModule))
		select.addProjection(table.getColumn("lod1_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod1_implicit_ref_point")), table.getColumn("lod1_implicit_transformation"));
	if (projectionFilter.containsProperty("lod2ImplicitRepresentation", genericsModule))
		select.addProjection(table.getColumn("lod2_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod2_implicit_ref_point")), table.getColumn("lod2_implicit_transformation"));
	if (projectionFilter.containsProperty("lod3ImplicitRepresentation", genericsModule))
		select.addProjection(table.getColumn("lod3_implicit_rep_id"), exporter.getGeometryColumn(table.getColumn("lod3_implicit_ref_point")), table.getColumn("lod3_implicit_transformation"));
	if (projectionFilter.containsProperty("lod4ImplicitRepresentation", genericsModule))
		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.GENERIC_CITYOBJECT);			
		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,
代码行数:49,
代码来源:DBGenericCityObject.java

示例11: visit

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void visit(GenericCityObject genericCityObject) {
	visit((AbstractCityObject)genericCityObject);
}
 

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

示例12: visit

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void visit(GenericCityObject genericCityObject) {
	visit((AbstractCityObject)genericCityObject);

	if (genericCityObject.isSetLod0Geometry())
		visit(genericCityObject.getLod0Geometry());

	if (genericCityObject.isSetLod1Geometry())
		visit(genericCityObject.getLod1Geometry());

	if (genericCityObject.isSetLod2Geometry())
		visit(genericCityObject.getLod2Geometry());

	if (genericCityObject.isSetLod3Geometry())
		visit(genericCityObject.getLod3Geometry());

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

	if (genericCityObject.isSetLod0TerrainIntersection())
		visit(genericCityObject.getLod0TerrainIntersection());

	if (genericCityObject.isSetLod1TerrainIntersection())
		visit(genericCityObject.getLod1TerrainIntersection());

	if (genericCityObject.isSetLod2TerrainIntersection())
		visit(genericCityObject.getLod2TerrainIntersection());

	if (genericCityObject.isSetLod3TerrainIntersection())
		visit(genericCityObject.getLod3TerrainIntersection());

	if (genericCityObject.isSetLod4TerrainIntersection())
		visit(genericCityObject.getLod4TerrainIntersection());

	if (genericCityObject.isSetLod0ImplicitRepresentation())
		visit(genericCityObject.getLod0ImplicitRepresentation());

	if (genericCityObject.isSetLod1ImplicitRepresentation())
		visit(genericCityObject.getLod1ImplicitRepresentation());

	if (genericCityObject.isSetLod2ImplicitRepresentation())
		visit(genericCityObject.getLod2ImplicitRepresentation());

	if (genericCityObject.isSetLod3ImplicitRepresentation())
		visit(genericCityObject.getLod3ImplicitRepresentation());

	if (genericCityObject.isSetLod4ImplicitRepresentation())
		visit(genericCityObject.getLod4ImplicitRepresentation());
}
 

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

示例13: marshalGenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void marshalGenericCityObject(GenericCityObject src, GenericCityObjectType 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.isSetLod0Geometry())
		dest.setLod0Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod0Geometry()));

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod3Geometry()));

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

	if (src.isSetLod0ImplicitRepresentation())
		dest.setLod0ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod0ImplicitRepresentation()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore200Marshaller().marshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

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

	if (src.isSetLod0TerrainIntersection())
		dest.setLod0TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod0TerrainIntersection()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod4TerrainIntersection()));
}
 

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

示例14: createGenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
private JAXBElement<?> createGenericCityObject(GenericCityObject src) {
	return gen.createGenericCityObject(marshalGenericCityObject(src));
}
 

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

示例15: marshalGenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void marshalGenericCityObject(GenericCityObject src, GenericCityObjectType 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.isSetLod0Geometry())
		dest.setLod0Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod0Geometry()));

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLMarshaller().marshalGeometryProperty(src.getLod3Geometry()));

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

	if (src.isSetLod0ImplicitRepresentation())
		dest.setLod0ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod0ImplicitRepresentation()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore100Marshaller().marshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

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

	if (src.isSetLod0TerrainIntersection())
		dest.setLod0TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod0TerrainIntersection()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLMarshaller().marshalMultiCurveProperty(src.getLod4TerrainIntersection()));
}
 

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

示例16: unmarshalGenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void unmarshalGenericCityObject(GenericCityObjectType src, GenericCityObject 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.isSetLod0Geometry())
		dest.setLod0Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod0Geometry()));

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod3Geometry()));

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

	if (src.isSetLod0ImplicitRepresentation())
		dest.setLod0ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod0ImplicitRepresentation()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore100Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

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

	if (src.isSetLod0TerrainIntersection())
		dest.setLod0TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod0TerrainIntersection()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod4TerrainIntersection()));
}
 

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

示例17: unmarshalGenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void unmarshalGenericCityObject(GenericCityObjectType src, GenericCityObject 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.isSetLod0Geometry())
		dest.setLod0Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod0Geometry()));

	if (src.isSetLod1Geometry())
		dest.setLod1Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod1Geometry()));

	if (src.isSetLod2Geometry())
		dest.setLod2Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod2Geometry()));

	if (src.isSetLod3Geometry())
		dest.setLod3Geometry(jaxb.getGMLUnmarshaller().unmarshalGeometryProperty(src.getLod3Geometry()));

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

	if (src.isSetLod0ImplicitRepresentation())
		dest.setLod0ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod0ImplicitRepresentation()));

	if (src.isSetLod1ImplicitRepresentation())
		dest.setLod1ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod1ImplicitRepresentation()));

	if (src.isSetLod2ImplicitRepresentation())
		dest.setLod2ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod2ImplicitRepresentation()));

	if (src.isSetLod3ImplicitRepresentation())
		dest.setLod3ImplicitRepresentation(citygml.getCore200Unmarshaller().unmarshalImplicitRepresentationProperty(src.getLod3ImplicitRepresentation()));

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

	if (src.isSetLod0TerrainIntersection())
		dest.setLod0TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod0TerrainIntersection()));

	if (src.isSetLod1TerrainIntersection())
		dest.setLod1TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod1TerrainIntersection()));

	if (src.isSetLod2TerrainIntersection())
		dest.setLod2TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod2TerrainIntersection()));

	if (src.isSetLod3TerrainIntersection())
		dest.setLod3TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod3TerrainIntersection()));

	if (src.isSetLod4TerrainIntersection())
		dest.setLod4TerrainIntersection(jaxb.getGMLUnmarshaller().unmarshalMultiCurveProperty(src.getLod4TerrainIntersection()));
}
 

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

示例18: marshal

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public List<AbstractCityObjectType> marshal(ModelObject src) {
	if (src instanceof GenericCityObject)
		return Collections.singletonList(marshalGenericCityObject((GenericCityObject)src));
	
	return Collections.emptyList();			
}
 

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

示例19: marshalGenericCityObject

点赞 2

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public GenericCityObjectType marshalGenericCityObject(GenericCityObject src) {
	GenericCityObjectType dest = new GenericCityObjectType(src.getId());
	marshalGenericCityObject(src, dest);
	
	return dest;
}
 

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

示例20: generateCityObject

点赞 1

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的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

示例21: visit

点赞 1

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public void visit(GenericCityObject genericCityObject); 

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

示例22: apply

点赞 1

import org.citygml4j.model.citygml.generics.GenericCityObject; //导入依赖的package包/类
public T apply(GenericCityObject genericCityObject); 

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


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