本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
}
}
示例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);
}
}
}
示例9: CG_Track
import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public CG_Track(Track tO) {
super(tO);
}
示例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;
}
示例11: createTrack
import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
private JAXBElement<?> createTrack(Track src) {
return tran.createTrack(marshalTrack(src));
}
示例12: visit
import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public void visit(Track track);
示例13: apply
import org.citygml4j.model.citygml.transportation.Track; //導入依賴的package包/類
public T apply(Track track);