本文整理汇总了Java中net.opengis.gml.MetaDataPropertyType类的典型用法代码示例。如果您正苦于以下问题:Java MetaDataPropertyType类的具体用法?Java MetaDataPropertyType怎么用?Java MetaDataPropertyType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MetaDataPropertyType类属于net.opengis.gml包,在下文中一共展示了MetaDataPropertyType类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getVersionMetaData
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
public static MetaDataPropertyType getVersionMetaData(String title, String definition, String version){
MetaDataPropertyType xb_versionMetadataProperty = MetaDataPropertyType.Factory.newInstance();
if (title != null) {
xb_versionMetadataProperty.setTitle( title );
}
if (definition != null) {
xb_versionMetadataProperty.setHref( definition );
}
if (version == null) {
version = "unknown";
}
VersionDocument xb_versionDoc = VersionDocument.Factory.newInstance();
xb_versionDoc.setVersion( version );
XmlHelper.append( xb_versionMetadataProperty, xb_versionDoc );
return xb_versionMetadataProperty;
}
示例2: notifyChanged
import net.opengis.gml.MetaDataPropertyType; //导入依赖的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(MetaDataPropertyType.class)) {
case GmlPackage.META_DATA_PROPERTY_TYPE__ABOUT:
case GmlPackage.META_DATA_PROPERTY_TYPE__ACTUATE:
case GmlPackage.META_DATA_PROPERTY_TYPE__ARCROLE:
case GmlPackage.META_DATA_PROPERTY_TYPE__HREF:
case GmlPackage.META_DATA_PROPERTY_TYPE__REMOTE_SCHEMA:
case GmlPackage.META_DATA_PROPERTY_TYPE__ROLE:
case GmlPackage.META_DATA_PROPERTY_TYPE__SHOW:
case GmlPackage.META_DATA_PROPERTY_TYPE__TITLE:
case GmlPackage.META_DATA_PROPERTY_TYPE__TYPE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case GmlPackage.META_DATA_PROPERTY_TYPE__ANY:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
示例3: eSet
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case GmlPackage.ABSTRACT_GML_TYPE__META_DATA_PROPERTY:
getMetaDataProperty().clear();
getMetaDataProperty().addAll((Collection<? extends MetaDataPropertyType>)newValue);
return;
case GmlPackage.ABSTRACT_GML_TYPE__DESCRIPTION:
setDescription((StringOrRefType)newValue);
return;
case GmlPackage.ABSTRACT_GML_TYPE__NAME_GROUP:
((FeatureMap.Internal)getNameGroup()).set(newValue);
return;
case GmlPackage.ABSTRACT_GML_TYPE__NAME:
getName().clear();
getName().addAll((Collection<? extends CodeType>)newValue);
return;
case GmlPackage.ABSTRACT_GML_TYPE__ID:
setId((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
示例4: getText
import net.opengis.gml.MetaDataPropertyType; //导入依赖的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 = ((MetaDataPropertyType)object).getAbout();
return label == null || label.length() == 0 ?
getString("_UI_MetaDataPropertyType_type") :
getString("_UI_MetaDataPropertyType_type") + " " + label;
}
示例5: getMetaDataProperty
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<MetaDataPropertyType> getMetaDataProperty() {
if (metaDataProperty == null) {
metaDataProperty = new EObjectContainmentEList<MetaDataPropertyType>(MetaDataPropertyType.class, this, GmlPackage.ABSTRACT_GML_TYPE__META_DATA_PROPERTY);
}
return metaDataProperty;
}
示例6: getIoosVersionMetaData
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
public static MetaDataPropertyType getIoosVersionMetaData(){
return getVersionMetaData(IoosSosConstants.IOOS_TEMPLATE_VERSION,
IoosSosConstants.IOOS_VERSION_DEFINITION, IoosSosConstants.IOOS_VERSION_M10);
}
示例7: getSoftwareVersionMetaData
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
public static MetaDataPropertyType getSoftwareVersionMetaData(){
return getVersionMetaData(IoosSosConstants.SOFTWARE_VERSION, null,
Ioos52nSosVersionHandler.getIoosVersion());
}
示例8: addVersionMetadata
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
private void addVersionMetadata(XmlObject xbExtendedCapabilities, MetaDataPropertyType mdpt){
MetaDataPropertyDocument xbIoosMilestoneMetaDoc = MetaDataPropertyDocument.Factory.newInstance();
xbIoosMilestoneMetaDoc.addNewMetaDataProperty().set(mdpt);
XmlHelper.append(xbExtendedCapabilities, xbIoosMilestoneMetaDoc);
}
示例9: createGmlMetaDataPropertyType
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
@Provides
@Override
public MetaDataPropertyType createGmlMetaDataPropertyType() {
return MetaDataPropertyType.Factory.newInstance();
}
示例10: createGmlMetaDataPropertyType
import net.opengis.gml.MetaDataPropertyType; //导入依赖的package包/类
public MetaDataPropertyType createGmlMetaDataPropertyType();