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


Java WaterClosureSurface类代码示例

本文整理汇总了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;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:19,代码来源:WaterBody200Marshaller.java

示例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;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:20,代码来源:WaterBody200Marshaller.java

示例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;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:20,代码来源:WaterBody100Marshaller.java

示例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;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:22,代码来源:WaterBody100Unmarshaller.java

示例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;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:17,代码来源:WaterBodyMarshaller.java

示例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);
}
 
开发者ID:3dcitydb,项目名称:importer-exporter,代码行数:8,代码来源:ADEPropertyCollector.java

示例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;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:16,代码来源:GMLFunctionWalker.java

示例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);
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:8,代码来源:GMLWalker.java

示例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);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:12,代码来源:WaterBody200Marshaller.java

示例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);
		}
	}
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:12,代码来源:WaterBody100Unmarshaller.java

示例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;

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

示例12: CG_WaterClosureSurface

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

示例13: createWaterClosureSurface

import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
private JAXBElement<?> createWaterClosureSurface(WaterClosureSurface src) {
	return wtr.createWaterClosureSurface(marshalWaterClosureSurface(src));
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:4,代码来源:WaterBody200Marshaller.java

示例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;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:7,代码来源:WaterBodyUnmarshaller.java

示例15: visit

import org.citygml4j.model.citygml.waterbody.WaterClosureSurface; //导入依赖的package包/类
public void visit(WaterClosureSurface waterClosureSurface); 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:2,代码来源:FeatureVisitor.java


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