当前位置: 首页>>代码示例>>Java>>正文


Java AbstractVegetationObject类代码示例

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


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

示例1: visit

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public void visit(AbstractVegetationObject abstractVegetationObject) {
	visit((AbstractCityObject)abstractVegetationObject);

	if (abstractVegetationObject.isSetGenericApplicationPropertyOfVegetationObject())
		for (ADEComponent ade : abstractVegetationObject.getGenericApplicationPropertyOfVegetationObject())
			visit(ade);
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:8,代码来源:ADEPropertyCollector.java

示例2: apply

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

	if (abstractVegetationObject.isSetGenericApplicationPropertyOfVegetationObject()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(abstractVegetationObject.getGenericApplicationPropertyOfVegetationObject())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}		

	return null;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:16,代码来源:GMLFunctionWalker.java

示例3: visit

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public void visit(AbstractVegetationObject abstractVegetationObject) {
	visit((AbstractCityObject)abstractVegetationObject);

	if (abstractVegetationObject.isSetGenericApplicationPropertyOfVegetationObject())
		for (ADEComponent ade : new ArrayList<ADEComponent>(abstractVegetationObject.getGenericApplicationPropertyOfVegetationObject()))
			visit(ade);
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:8,代码来源:GMLWalker.java

示例4: marshalVegetationObject

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public void marshalVegetationObject(AbstractVegetationObject src, AbstractVegetationObjectType dest) {
	citygml.getCore200Marshaller().marshalAbstractCityObject(src, dest);

	if (src.isSetGenericApplicationPropertyOfVegetationObject()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfVegetationObject()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfVegetationObject().add(jaxbElement);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:12,代码来源:Vegetation200Marshaller.java

示例5: marshalVegetationObject

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public void marshalVegetationObject(AbstractVegetationObject src, AbstractVegetationObjectType dest) {
	citygml.getCore100Marshaller().marshalAbstractCityObject(src, dest);

	if (src.isSetGenericApplicationPropertyOfVegetationObject()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfVegetationObject()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfVegetationObject().add(jaxbElement);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:12,代码来源:Vegetation100Marshaller.java

示例6: unmarshalAbstractVegetationObject

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public void unmarshalAbstractVegetationObject(AbstractVegetationObjectType src, AbstractVegetationObject dest) throws MissingADESchemaException {
	citygml.getCore100Unmarshaller().unmarshalAbstractCityObject(src, dest);

	if (src.isSet_GenericApplicationPropertyOfVegetationObject()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfVegetationObject()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfVegetationObject(ade);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:12,代码来源:Vegetation100Unmarshaller.java

示例7: assignGenericProperty

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

	if (dest instanceof AbstractVegetationObject && name.equals("_GenericApplicationPropertyOfVegetationObject"))
		((AbstractVegetationObject)dest).addGenericApplicationPropertyOfVegetationObject(genericProperty);		
	else if (dest instanceof PlantCover && name.equals("_GenericApplicationPropertyOfPlantCover"))
		((PlantCover)dest).addGenericApplicationPropertyOfPlantCover(genericProperty);		
	else if (dest instanceof SolitaryVegetationObject && name.equals("_GenericApplicationPropertyOfSolitaryVegetationObject"))
		((SolitaryVegetationObject)dest).addGenericApplicationPropertyOfSolitaryVegetationObject(genericProperty);		
	else
		success = false;

	return success;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:16,代码来源:Vegetation100Unmarshaller.java

示例8: unmarshalAbstractVegetationObject

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public void unmarshalAbstractVegetationObject(AbstractVegetationObjectType src, AbstractVegetationObject dest) throws MissingADESchemaException {
	citygml.getCore200Unmarshaller().unmarshalAbstractCityObject(src, dest);

	if (src.isSet_GenericApplicationPropertyOfVegetationObject()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfVegetationObject()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfVegetationObject(ade);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:12,代码来源:Vegetation200Unmarshaller.java

示例9: CG_AbstractVegetationObject

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public CG_AbstractVegetationObject(AbstractVegetationObject aVO) {
	super(aVO);
}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:4,代码来源:CG_AbstractVegetationObject.java

示例10: generateAbstractVegetationObject

import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public static CG_AbstractVegetationObject generateAbstractVegetationObject(AbstractVegetationObject vO) {

		if (vO instanceof SolitaryVegetationObject) {

			return new CG_SolitaryVegetationObject((SolitaryVegetationObject) vO);

		} else if (vO instanceof PlantCover) {
			return new CG_PlantCover((PlantCover) vO);
		}

		System.out.println("Class non reconnue : " + vO.getCityGMLClass());
		return null;
	}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:14,代码来源:CG_AbstractVegetationObject.java

示例11: generateCityObject

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


注:本文中的org.citygml4j.model.citygml.vegetation.AbstractVegetationObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。