本文整理汇总了Java中org.citygml4j.model.citygml.waterbody.WaterClosureSurface类的典型用法代码示例。如果您正苦于以下问题:Java WaterClosureSurface类的具体用法?Java WaterClosureSurface怎么用?Java WaterClosureSurface使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WaterClosureSurface类属于org.citygml4j.model.citygml.waterbody包,在下文中一共展示了WaterClosureSurface类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getElementMapper
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
private TypeMapper<JAXBElement<?>> getElementMapper() {
if (elementMapper == null) {
lock.lock();
try {
if (elementMapper == null) {
elementMapper = TypeMapper.<JAXBElement<?>>create()
.with(WaterBody.class, this::createWaterBody)
.with(WaterClosureSurface.class, this::createWaterClosureSurface)
.with(WaterGroundSurface.class, this::createWaterGroundSurface)
.with(WaterSurface.class, this::createWaterSurface);
}
} finally {
lock.unlock();
}
}
return elementMapper;
}
示例2: getTypeMapper
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = TypeMapper.create()
.with(BoundedByWaterSurfaceProperty.class, this::marshalBoundedByWaterSurfaceProperty)
.with(WaterBody.class, this::marshalWaterBody)
.with(WaterClosureSurface.class, this::marshalWaterClosureSurface)
.with(WaterGroundSurface.class, this::marshalWaterGroundSurface)
.with(WaterSurface.class, this::marshalWaterSurface);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
示例3: getTypeMapper
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = TypeMapper.create()
.with(BoundedByWaterSurfaceProperty.class, this::marshalBoundedByWaterSurfaceProperty)
.with(WaterBody.class, this::marshalWaterBody)
.with(WaterClosureSurface.class, this::marshalWaterClosureSurface)
.with(WaterGroundSurface.class, this::marshalWaterGroundSurface)
.with(WaterSurface.class, this::marshalWaterSurface);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
示例4: assignGenericProperty
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public boolean assignGenericProperty(ADEGenericElement genericProperty, QName substitutionGroup, CityGML dest) {
String name = substitutionGroup.getLocalPart();
boolean success = true;
if (dest instanceof AbstractWaterObject && name.equals("_GenericApplicationPropertyOfWaterObject"))
((AbstractWaterObject)dest).addGenericApplicationPropertyOfWaterObject(genericProperty);
else if (dest instanceof AbstractWaterBoundarySurface && name.equals("_GenericApplicationPropertyOfWaterBoundarySurface"))
((AbstractWaterBoundarySurface)dest).addGenericApplicationPropertyOfWaterBoundarySurface(genericProperty);
else if (dest instanceof WaterBody && name.equals("_GenericApplicationPropertyOfWaterBody"))
((WaterBody)dest).addGenericApplicationPropertyOfWaterBody(genericProperty);
else if (dest instanceof WaterClosureSurface && name.equals("_GenericApplicationPropertyOfWaterClosureSurface"))
((WaterClosureSurface)dest).addGenericApplicationPropertyOfWaterClosureSurface(genericProperty);
else if (dest instanceof WaterGroundSurface && name.equals("_GenericApplicationPropertyOfWaterGroundSurface"))
((WaterGroundSurface)dest).addGenericApplicationPropertyOfWaterGroundSurface(genericProperty);
else if (dest instanceof WaterSurface && name.equals("_GenericApplicationPropertyOfWaterSurface"))
((WaterSurface)dest).addGenericApplicationPropertyOfWaterSurface(genericProperty);
else
success = false;
return success;
}
示例5: marshalSemantics
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public SemanticsType marshalSemantics(AbstractCityObject cityObject) {
SemanticsType semantics = null;
if (cityObject instanceof WaterSurface) {
semantics = new SemanticsType(SemanticsTypeName.WATER_SURFACE);
marshalWaterSurface((WaterSurface)cityObject, semantics);
} else if (cityObject instanceof WaterGroundSurface)
semantics = new SemanticsType(SemanticsTypeName.WATER_GROUND_SURFACE);
else if (cityObject instanceof WaterClosureSurface)
semantics = new SemanticsType(SemanticsTypeName.WATER_CLOSURE_SURFACE);
if (semantics != null && cityObject.isSetGenericAttribute())
citygml.getGenericsMarshaller().marshalSemanticsAttributes(cityObject.getGenericAttribute(), semantics);
return semantics;
}
示例6: visit
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public void visit(WaterClosureSurface waterClosureSurface) {
visit((AbstractWaterBoundarySurface)waterClosureSurface);
if (waterClosureSurface.isSetGenericApplicationPropertyOfWaterClosureSurface())
for (ADEComponent ade : waterClosureSurface.getGenericApplicationPropertyOfWaterClosureSurface())
visit(ade);
}
示例7: apply
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public T apply(WaterClosureSurface waterClosureSurface) {
T object = apply((AbstractWaterBoundarySurface)waterClosureSurface);
if (object != null)
return object;
if (waterClosureSurface.isSetGenericApplicationPropertyOfWaterClosureSurface()) {
for (ADEComponent ade : new ArrayList<ADEComponent>(waterClosureSurface.getGenericApplicationPropertyOfWaterClosureSurface())) {
object = apply(ade);
if (object != null)
return object;
}
}
return null;
}
示例8: visit
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public void visit(WaterClosureSurface waterClosureSurface) {
visit((AbstractWaterBoundarySurface)waterClosureSurface);
if (waterClosureSurface.isSetGenericApplicationPropertyOfWaterClosureSurface())
for (ADEComponent ade : new ArrayList<ADEComponent>(waterClosureSurface.getGenericApplicationPropertyOfWaterClosureSurface()))
visit(ade);
}
示例9: marshalWaterClosureSurface
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public void marshalWaterClosureSurface(WaterClosureSurface src, WaterClosureSurfaceType dest) {
marshalAbstractWaterBoundarySurface(src, dest);
if (src.isSetGenericApplicationPropertyOfWaterClosureSurface()) {
for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfWaterClosureSurface()) {
JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
if (jaxbElement != null)
dest.get_GenericApplicationPropertyOfWaterClosureSurface().add(jaxbElement);
}
}
}
示例10: unmarshalWaterClosureSurface
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public void unmarshalWaterClosureSurface(WaterClosureSurfaceType src, WaterClosureSurface dest) throws MissingADESchemaException {
unmarshalAbstractWaterBoundarySurface(src, dest);
if (src.isSet_GenericApplicationPropertyOfWaterClosureSurface()) {
for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfWaterClosureSurface()) {
ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
if (ade != null)
dest.addGenericApplicationPropertyOfWaterClosureSurface(ade);
}
}
}
示例11: generateAbstractWaterBoundarySurface
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public static CG_WaterBoundarySurface generateAbstractWaterBoundarySurface(
AbstractWaterBoundarySurface wBS) {
if (wBS instanceof WaterGroundSurface) {
return new CG_WaterGroundSurface((WaterGroundSurface) wBS);
} else if (wBS instanceof WaterSurface) {
return new CG_WaterSurface((WaterSurface) wBS);
} else if (wBS instanceof WaterClosureSurface) {
return new CG_WaterClosureSurface((WaterClosureSurface) wBS);
} else {
System.out.println("Classe non gérée AbstractWaterBoundarySurfaceType"
+ wBS.getCityGMLClass());
}
return null;
}
示例12: CG_WaterClosureSurface
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public CG_WaterClosureSurface(WaterClosureSurface wCS) {
super(wCS);
}
示例13: createWaterClosureSurface
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
private JAXBElement<?> createWaterClosureSurface(WaterClosureSurface src) {
return wtr.createWaterClosureSurface(marshalWaterClosureSurface(src));
}
示例14: unmarshalWaterClosureSurface
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public WaterClosureSurface unmarshalWaterClosureSurface(SemanticsType src, List<AbstractSurface> surfaces, Number lod) {
WaterClosureSurface dest = new WaterClosureSurface();
unmarshalAbstractWaterBoundarySurface(src, dest, surfaces, lod);
return dest;
}
示例15: visit
import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public void visit(WaterClosureSurface waterClosureSurface);