當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。