本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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;
}
示例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);
}
}
}
示例9: CG_AbstractVegetationObject
import org.citygml4j.model.citygml.vegetation.AbstractVegetationObject; //导入依赖的package包/类
public CG_AbstractVegetationObject(AbstractVegetationObject aVO) {
super(aVO);
}
示例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;
}
示例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;
}