本文整理汇总了Java中net.opengis.gml.TimePeriodType类的典型用法代码示例。如果您正苦于以下问题:Java TimePeriodType类的具体用法?Java TimePeriodType怎么用?Java TimePeriodType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TimePeriodType类属于net.opengis.gml包,在下文中一共展示了TimePeriodType类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: notifyChanged
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(TimePeriodType.class)) {
case GmlPackage.TIME_PERIOD_TYPE__DURATION:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case GmlPackage.TIME_PERIOD_TYPE__BEGIN_POSITION:
case GmlPackage.TIME_PERIOD_TYPE__BEGIN:
case GmlPackage.TIME_PERIOD_TYPE__END_POSITION:
case GmlPackage.TIME_PERIOD_TYPE__END:
case GmlPackage.TIME_PERIOD_TYPE__TIME_INTERVAL:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:26,代码来源:TimePeriodTypeItemProvider.java
示例2: getText
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((TimePeriodType)object).getId();
return label == null || label.length() == 0 ?
getString("_UI_TimePeriodType_type") :
getString("_UI_TimePeriodType_type") + " " + label;
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:14,代码来源:TimePeriodTypeItemProvider.java
示例3: basicSetTimePeriod
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetTimePeriod(TimePeriodType newTimePeriod, NotificationChain msgs) {
TimePeriodType oldTimePeriod = timePeriod;
timePeriod = newTimePeriod;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TIME_PERIOD, oldTimePeriod, newTimePeriod);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:15,代码来源:TimePeriodPropertyTypeImpl.java
示例4: setTimePeriod
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTimePeriod(TimePeriodType newTimePeriod) {
if (newTimePeriod != timePeriod) {
NotificationChain msgs = null;
if (timePeriod != null)
msgs = ((InternalEObject)timePeriod).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TIME_PERIOD, null, msgs);
if (newTimePeriod != null)
msgs = ((InternalEObject)newTimePeriod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TIME_PERIOD, null, msgs);
msgs = basicSetTimePeriod(newTimePeriod, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TIME_PERIOD, newTimePeriod, newTimePeriod));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:19,代码来源:TimePeriodPropertyTypeImpl.java
示例5: eSet
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TIME_PERIOD:
setTimePeriod((TimePeriodType)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__ACTUATE:
setActuate((ActuateType)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__ARCROLE:
setArcrole((String)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__HREF:
setHref((String)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__REMOTE_SCHEMA:
setRemoteSchema((String)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__ROLE:
setRole((String)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__SHOW:
setShow((ShowType)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TITLE:
setTitle((String)newValue);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TYPE:
setType((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:39,代码来源:TimePeriodPropertyTypeImpl.java
示例6: eUnset
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TIME_PERIOD:
setTimePeriod((TimePeriodType)null);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__ACTUATE:
unsetActuate();
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__ARCROLE:
setArcrole(ARCROLE_EDEFAULT);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__HREF:
setHref(HREF_EDEFAULT);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__REMOTE_SCHEMA:
setRemoteSchema(REMOTE_SCHEMA_EDEFAULT);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__ROLE:
setRole(ROLE_EDEFAULT);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__SHOW:
unsetShow();
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TITLE:
setTitle(TITLE_EDEFAULT);
return;
case GmlPackage.TIME_PERIOD_PROPERTY_TYPE__TYPE:
unsetType();
return;
}
super.eUnset(featureID);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:39,代码来源:TimePeriodPropertyTypeImpl.java
示例7: getTemporalExtent
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<TimePeriodType> getTemporalExtent() {
if (temporalExtent == null) {
temporalExtent = new EObjectContainmentEList<TimePeriodType>(TimePeriodType.class, this, GmlPackage.EXTENT_TYPE__TEMPORAL_EXTENT);
}
return temporalExtent;
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:12,代码来源:ExtentTypeImpl.java
示例8: eSet
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case GmlPackage.EXTENT_TYPE__DESCRIPTION:
setDescription((StringOrRefType)newValue);
return;
case GmlPackage.EXTENT_TYPE__BOUNDING_BOX:
getBoundingBox().clear();
getBoundingBox().addAll((Collection<? extends EnvelopeType>)newValue);
return;
case GmlPackage.EXTENT_TYPE__BOUNDING_POLYGON:
getBoundingPolygon().clear();
getBoundingPolygon().addAll((Collection<? extends PolygonType>)newValue);
return;
case GmlPackage.EXTENT_TYPE__VERTICAL_EXTENT:
getVerticalExtent().clear();
getVerticalExtent().addAll((Collection<? extends EnvelopeType>)newValue);
return;
case GmlPackage.EXTENT_TYPE__TEMPORAL_EXTENT:
getTemporalExtent().clear();
getTemporalExtent().addAll((Collection<? extends TimePeriodType>)newValue);
return;
}
super.eSet(featureID, newValue);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:32,代码来源:ExtentTypeImpl.java
示例9: shouldSetValidTime
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
@Test public void
shouldSetValidTime()
throws XmlException, IOException {
final TimePeriodType validTime = system.getValidTime().getTimePeriod();
assertThat(validTime.getBeginPosition().getObjectValue(),is(notNullValue()));
final long durationMillis = new Interval(new DateTime(validTime.getBeginPosition().getStringValue()).getMillis(), System.currentTimeMillis()).toDurationMillis();
assertThat(durationMillis,is(lessThanOrEqualTo(2000l)));
assertThat(validTime.getEndPosition().isSetIndeterminatePosition(),is(true));
assertThat(validTime.getEndPosition().getIndeterminatePosition().toString(),is("unknown"));
// test for valid time -> set by server
}
开发者ID:52North,项目名称:sos-importer,代码行数:12,代码来源:DescriptionBuilderTest.java
示例10: createGmlTimePeriodType
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
@Provides
@Override
public TimePeriodType createGmlTimePeriodType() {
return TimePeriodType.Factory.newInstance();
}
开发者ID:moosbusch,项目名称:xbLIDO,代码行数:6,代码来源:DefaultLidoModule.java
示例11: getTimePeriod
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TimePeriodType getTimePeriod() {
return timePeriod;
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:9,代码来源:TimePeriodPropertyTypeImpl.java
示例12: createGmlTimePeriodType
import net.opengis.gml.TimePeriodType; //导入依赖的package包/类
public TimePeriodType createGmlTimePeriodType();
开发者ID:moosbusch,项目名称:xbLIDO,代码行数:2,代码来源:GmlModule.java
注:本文中的net.opengis.gml.TimePeriodType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论