當前位置: 首頁>>代碼示例>>Java>>正文


Java Track類代碼示例

本文整理匯總了Java中org.citygml4j.model.citygml.transportation.Track的典型用法代碼示例。如果您正苦於以下問題:Java Track類的具體用法?Java Track怎麽用?Java Track使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Track類屬於org.citygml4j.model.citygml.transportation包,在下文中一共展示了Track類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getElementMapper

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
private TypeMapper<JAXBElement<?>> getElementMapper() {
	if (elementMapper == null) {
		lock.lock();
		try {
			if (elementMapper == null) {
				elementMapper = TypeMapper.<JAXBElement<?>>create()
						.with(AuxiliaryTrafficArea.class, this::createAuxiliaryTrafficArea)
						.with(Railway.class, this::createRailway)
						.with(Road.class, this::createRoad)
						.with(Square.class, this::createSquare)
						.with(Track.class, this::createTrack)
						.with(TrafficArea.class, this::createTrafficArea)
						.with(TransportationComplex.class, this::createTransportationComplex);
			}
		} finally {
			lock.unlock();
		}
	}

	return elementMapper;
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:22,代碼來源:Transportation200Marshaller.java

示例2: getTypeMapper

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
private TypeMapper<Object> getTypeMapper() {
	if (typeMapper == null) {
		lock.lock();
		try {
			if (typeMapper == null) {
				typeMapper = TypeMapper.create()
						.with(AuxiliaryTrafficArea.class, this::marshalAuxiliaryTrafficArea)
						.with(AuxiliaryTrafficAreaProperty.class, this::marshalAuxiliaryTrafficAreaProperty)
						.with(Railway.class, this::marshalRailway)
						.with(Road.class, this::marshalRoad)
						.with(Square.class, this::marshalSquare)
						.with(Track.class, this::marshalTrack)
						.with(TrafficArea.class, this::marshalTrafficArea)
						.with(TrafficAreaProperty.class, this::marshalTrafficAreaProperty)
						.with(TransportationComplex.class, this::marshalTransportationComplex);
			}
		} finally {
			lock.unlock();
		}
	}

	return typeMapper;
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:24,代碼來源:Transportation200Marshaller.java

示例3: assignGenericProperty

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public boolean assignGenericProperty(ADEGenericElement genericProperty, QName substitutionGroup, CityGML dest) {
	String name = substitutionGroup.getLocalPart();
	boolean success = true;

	if (dest instanceof AbstractTransportationObject && name.equals("_GenericApplicationPropertyOfTransportationObject"))
		((AbstractTransportationObject)dest).addGenericApplicationPropertyOfTransportationObject(genericProperty);
	else if (dest instanceof AuxiliaryTrafficArea && name.equals("_GenericApplicationPropertyOfAuxiliaryTrafficArea"))
		((AuxiliaryTrafficArea)dest).addGenericApplicationPropertyOfAuxiliaryTrafficArea(genericProperty);
	else if (dest instanceof TransportationComplex && name.equals("_GenericApplicationPropertyOfTransportationComplex"))
		((TransportationComplex)dest).addGenericApplicationPropertyOfTransportationComplex(genericProperty);
	else if (dest instanceof Railway && name.equals("_GenericApplicationPropertyOfRailway"))
		((Railway)dest).addGenericApplicationPropertyOfRailway(genericProperty);
	else if (dest instanceof Road && name.equals("_GenericApplicationPropertyOfRoad"))
		((Road)dest).addGenericApplicationPropertyOfRoad(genericProperty);
	else if (dest instanceof Square && name.equals("_GenericApplicationPropertyOfSquare"))
		((Square)dest).addGenericApplicationPropertyOfSquare(genericProperty);
	else if (dest instanceof Track && name.equals("_GenericApplicationPropertyOfTrack"))
		((Track)dest).addGenericApplicationPropertyOfTrack(genericProperty);
	else if (dest instanceof TrafficArea && name.equals("_GenericApplicationPropertyOfTrafficArea"))
		((TrafficArea)dest).addGenericApplicationPropertyOfTrafficArea(genericProperty);
	else 
		success = false;

	return success;
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:26,代碼來源:Transportation200Unmarshaller.java

示例4: visit

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public void visit(Track track) {
	visit((TransportationComplex)track);

	if (track.isSetGenericApplicationPropertyOfTrack())
		for (ADEComponent ade : track.getGenericApplicationPropertyOfTrack())
			visit(ade);
}
 
開發者ID:3dcitydb,項目名稱:importer-exporter,代碼行數:8,代碼來源:ADEPropertyCollector.java

示例5: apply

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public T apply(Track track) {
	T object = apply((TransportationComplex)track);
	if (object != null)
		return object;

	if (track.isSetGenericApplicationPropertyOfTrack()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(track.getGenericApplicationPropertyOfTrack())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}

	return null;
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:16,代碼來源:GMLFunctionWalker.java

示例6: visit

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public void visit(Track track) {
	visit((TransportationComplex)track);

	if (track.isSetGenericApplicationPropertyOfTrack())
		for (ADEComponent ade : new ArrayList<ADEComponent>(track.getGenericApplicationPropertyOfTrack()))
			visit(ade);
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:8,代碼來源:GMLWalker.java

示例7: marshalTrack

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public void marshalTrack(Track src, TrackType dest) {
	marshalTransportationComplex(src, dest);

	if (src.isSetGenericApplicationPropertyOfTrack()) {
		for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfTrack()) {
			JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
			if (jaxbElement != null)
				dest.get_GenericApplicationPropertyOfTrack().add(jaxbElement);
		}
	}
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:12,代碼來源:Transportation200Marshaller.java

示例8: unmarshalTrack

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public void unmarshalTrack(TrackType src, Track dest) throws MissingADESchemaException {
	unmarshalTransportationComplex(src, dest);

	if (src.isSet_GenericApplicationPropertyOfTrack()) {
		for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfTrack()) {
			ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
			if (ade != null)
				dest.addGenericApplicationPropertyOfTrack(ade);
		}
	}
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:12,代碼來源:Transportation200Unmarshaller.java

示例9: CG_Track

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public CG_Track(Track tO) {
  super(tO);
}
 
開發者ID:IGNF,項目名稱:geoxygene,代碼行數:4,代碼來源:CG_Track.java

示例10: generateTransportationComplex

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public static CG_TransportationComplex generateTransportationComplex(
    TransportationComplex tO) {

  if (tO instanceof Track) {

    return new CG_Track((Track) tO);

  } else if (tO instanceof Road) {

    return new CG_Road((Road) tO);

  } else if (tO instanceof Railway) {
    return new CG_Railway((Railway) tO);

  } else if (tO instanceof Square) {
    return new CG_Square((Square) tO);

  }

  System.out.println("Classe nongérée" + tO.getCityGMLClass());
  return null;

}
 
開發者ID:IGNF,項目名稱:geoxygene,代碼行數:24,代碼來源:CG_TransportationComplex.java

示例11: createTrack

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
private JAXBElement<?> createTrack(Track src) {
	return tran.createTrack(marshalTrack(src));
}
 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:4,代碼來源:Transportation200Marshaller.java

示例12: visit

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public void visit(Track track); 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:2,代碼來源:FeatureVisitor.java

示例13: apply

import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public T apply(Track track); 
開發者ID:citygml4j,項目名稱:citygml4j,代碼行數:2,代碼來源:FeatureFunctor.java


注:本文中的org.citygml4j.model.citygml.transportation.Track類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。