本文整理汇总了Java中net.opengis.gml.FeaturePropertyType类的典型用法代码示例。如果您正苦于以下问题:Java FeaturePropertyType类的具体用法?Java FeaturePropertyType怎么用?Java FeaturePropertyType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FeaturePropertyType类属于net.opengis.gml包,在下文中一共展示了FeaturePropertyType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: notifyChanged
import net.opengis.gml.FeaturePropertyType; //导入依赖的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(FeaturePropertyType.class)) {
case GmlPackage.FEATURE_PROPERTY_TYPE__ACTUATE:
case GmlPackage.FEATURE_PROPERTY_TYPE__ARCROLE:
case GmlPackage.FEATURE_PROPERTY_TYPE__HREF:
case GmlPackage.FEATURE_PROPERTY_TYPE__REMOTE_SCHEMA:
case GmlPackage.FEATURE_PROPERTY_TYPE__ROLE:
case GmlPackage.FEATURE_PROPERTY_TYPE__SHOW:
case GmlPackage.FEATURE_PROPERTY_TYPE__TITLE:
case GmlPackage.FEATURE_PROPERTY_TYPE__TYPE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case GmlPackage.FEATURE_PROPERTY_TYPE__FEATURE_GROUP:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:29,代码来源:FeaturePropertyTypeItemProvider.java
示例2: eSet
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case GmlPackage.ABSTRACT_FEATURE_COLLECTION_TYPE__FEATURE_MEMBER_GROUP:
((FeatureMap.Internal)getFeatureMemberGroup()).set(newValue);
return;
case GmlPackage.ABSTRACT_FEATURE_COLLECTION_TYPE__FEATURE_MEMBER:
getFeatureMember().clear();
getFeatureMember().addAll((Collection<? extends FeaturePropertyType>)newValue);
return;
case GmlPackage.ABSTRACT_FEATURE_COLLECTION_TYPE__FEATURE_MEMBERS:
setFeatureMembers((FeatureArrayPropertyType)newValue);
return;
}
super.eSet(featureID, newValue);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:23,代码来源:AbstractFeatureCollectionTypeImpl.java
示例3: eSet
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case GmlPackage.OBSERVATION_TYPE__VALID_TIME:
setValidTime((TimePrimitivePropertyType)newValue);
return;
case GmlPackage.OBSERVATION_TYPE__USING:
setUsing((FeaturePropertyType)newValue);
return;
case GmlPackage.OBSERVATION_TYPE__TARGET_GROUP:
((FeatureMap.Internal)getTargetGroup()).set(newValue);
return;
case GmlPackage.OBSERVATION_TYPE__TARGET:
setTarget((TargetPropertyType)newValue);
return;
case GmlPackage.OBSERVATION_TYPE__RESULT_OF:
setResultOf((AssociationType)newValue);
return;
}
super.eSet(featureID, newValue);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:27,代码来源:ObservationTypeImpl.java
示例4: eUnset
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case GmlPackage.OBSERVATION_TYPE__VALID_TIME:
setValidTime((TimePrimitivePropertyType)null);
return;
case GmlPackage.OBSERVATION_TYPE__USING:
setUsing((FeaturePropertyType)null);
return;
case GmlPackage.OBSERVATION_TYPE__TARGET_GROUP:
getTargetGroup().clear();
return;
case GmlPackage.OBSERVATION_TYPE__TARGET:
setTarget((TargetPropertyType)null);
return;
case GmlPackage.OBSERVATION_TYPE__RESULT_OF:
setResultOf((AssociationType)null);
return;
}
super.eUnset(featureID);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:27,代码来源:ObservationTypeImpl.java
示例5: getTypeMapper
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
private CheckedTypeMapper<CityGML> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = CheckedTypeMapper.<CityGML>create()
.with(AddressType.class, this::unmarshalAddress)
.with(AddressPropertyType.class, this::unmarshalAddressProperty)
.with(CityModelType.class, this::unmarshalCityModel)
.with(ExternalObjectReferenceType.class, this::unmarshalExternalObject)
.with(ExternalReferenceType.class, this::unmarshalExternalReference)
.with(GeneralizationRelationType.class, this::unmarshalGeneralizationRelation)
.with(ImplicitGeometryType.class, this::unmarshalImplicitGeometry)
.with(ImplicitRepresentationPropertyType.class, this::unmarshalImplicitRepresentationProperty)
.with(XalAddressPropertyType.class, this::unmarshalXalAddressProperty)
.with(FeaturePropertyType.class, this::unmarshalCityObjectMember)
.with(JAXBElement.class, this::unmarshal);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
开发者ID:citygml4j,项目名称:citygml4j,代码行数:26,代码来源:Core100Unmarshaller.java
示例6: createFeatureCollectionWithSamplingFeature
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
private void createFeatureCollectionWithSamplingFeature() {
FeatureCollectionDocument doc = FeatureCollectionDocument.Factory.newInstance();
FeaturePropertyType member = doc.addNewFeatureCollection().addNewFeatureMember();
SamplingFeatureDocument samplingFeature = SamplingFeatureDocument.Factory.newInstance();
SamplingFeatureType feature2 = samplingFeature.addNewSamplingFeature();
StringOrRefType desc = feature2.addNewDescription();
desc.setStringValue("test");
member.setFeature(feature2);
logger.debug(doc.xmlText(options));
XmlObject xo = XmlUtil.qualifySubstitutionGroup(member.getFeature(), SamplingFeatureDocument.type.getDocumentElementName(), SamplingFeatureType.type);
if (xo == null) {
logger.debug("Disconnected object.");
}
logger.debug(doc.xmlText(options));
XmlUtil.qualifySubstitutionGroup(doc.getFeatureCollection(), SamplingFeatureCollectionDocument.type.getDocumentElementName());
logger.debug(doc.xmlText(options));
assertTrue(XMLBeansParser.validate(doc).isEmpty());
}
开发者ID:52North,项目名称:SES,代码行数:23,代码来源:SubstitutionGroupsTest.java
示例7: getText
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
ActuateType labelValue = ((FeaturePropertyType)object).getActuate();
String label = labelValue == null ? null : labelValue.toString();
return label == null || label.length() == 0 ?
getString("_UI_FeaturePropertyType_type") :
getString("_UI_FeaturePropertyType_type") + " " + label;
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:15,代码来源:FeaturePropertyTypeItemProvider.java
示例8: eSet
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case CitygmlPackage.DOCUMENT_ROOT__MIXED:
((FeatureMap.Internal)getMixed()).set(newValue);
return;
case CitygmlPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
return;
case CitygmlPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
return;
case CitygmlPackage.DOCUMENT_ROOT__ADDRESS:
setAddress((AddressType)newValue);
return;
case CitygmlPackage.DOCUMENT_ROOT__CITY_MODEL:
setCityModel((CityModelType)newValue);
return;
case CitygmlPackage.DOCUMENT_ROOT__CITY_OBJECT_MEMBER:
setCityObjectMember((FeaturePropertyType)newValue);
return;
case CitygmlPackage.DOCUMENT_ROOT__IMPLICIT_GEOMETRY:
setImplicitGeometry((ImplicitGeometryType)newValue);
return;
}
super.eSet(featureID, newValue);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:33,代码来源:DocumentRootImpl.java
示例9: eUnset
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case CitygmlPackage.DOCUMENT_ROOT__MIXED:
getMixed().clear();
return;
case CitygmlPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
getXMLNSPrefixMap().clear();
return;
case CitygmlPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
getXSISchemaLocation().clear();
return;
case CitygmlPackage.DOCUMENT_ROOT__ADDRESS:
setAddress((AddressType)null);
return;
case CitygmlPackage.DOCUMENT_ROOT__CITY_MODEL:
setCityModel((CityModelType)null);
return;
case CitygmlPackage.DOCUMENT_ROOT__CITY_OBJECT_MEMBER:
setCityObjectMember((FeaturePropertyType)null);
return;
case CitygmlPackage.DOCUMENT_ROOT__IMPLICIT_GEOMETRY:
setImplicitGeometry((ImplicitGeometryType)null);
return;
}
super.eUnset(featureID);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:33,代码来源:DocumentRootImpl.java
示例10: basicSetUsing
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetUsing(FeaturePropertyType newUsing, NotificationChain msgs) {
FeaturePropertyType oldUsing = using;
using = newUsing;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GmlPackage.OBSERVATION_TYPE__USING, oldUsing, newUsing);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:15,代码来源:ObservationTypeImpl.java
示例11: setUsing
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUsing(FeaturePropertyType newUsing) {
if (newUsing != using) {
NotificationChain msgs = null;
if (using != null)
msgs = ((InternalEObject)using).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GmlPackage.OBSERVATION_TYPE__USING, null, msgs);
if (newUsing != null)
msgs = ((InternalEObject)newUsing).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GmlPackage.OBSERVATION_TYPE__USING, null, msgs);
msgs = basicSetUsing(newUsing, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GmlPackage.OBSERVATION_TYPE__USING, newUsing, newUsing));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:19,代码来源:ObservationTypeImpl.java
示例12: getTypeMapper
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
private CheckedTypeMapper<CityGML> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = CheckedTypeMapper.<CityGML>create()
.with(AppearanceType.class, this::unmarshalAppearance)
.with(AppearancePropertyType.class, this::unmarshalAppearanceProperty)
.with(AppearancePropertyElement.class, this::unmarshalAppearanceProperty)
.with(GeoreferencedTextureType.class, this::unmarshalGeoreferencedTexture)
.with(ParameterizedTextureType.class, this::unmarshalParameterizedTexture)
.with(SurfaceDataPropertyType.class, this::unmarshalSurfaceDataProperty)
.with(TexCoordGenType.class, this::unmarshalTexCoordGen)
.with(TexCoordListType.class, this::unmarshalTexCoordList)
.with(TextureAssociationType.class, this::unmarshalTextureAssociation)
.with(TexCoordListType.TextureCoordinates.class, this::unmarshalTextureCoordinates)
.with(TextureTypeType.class, this::unmarshalTextureType)
.with(TexCoordGenType.WorldToTexture.class, this::unmarshalWorldToTexture)
.with(WrapModeType.class, this::unmarshalWrapMode)
.with(X3DMaterialType.class, this::unmarshalX3DMaterial)
.with(FeaturePropertyType.class, this::unmarshalAppearanceProperty)
.with(JAXBElement.class, this::unmarshal);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
开发者ID:citygml4j,项目名称:citygml4j,代码行数:31,代码来源:Appearance200Unmarshaller.java
示例13: unmarshalAppearanceMember
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
public AppearanceMember unmarshalAppearanceMember(FeaturePropertyType src) throws MissingADESchemaException {
AppearanceMember dest = new AppearanceMember(module);
jaxb.getGMLUnmarshaller().unmarshalFeatureProperty(src, dest);
if (src.isSet_Feature()) {
ModelObject abstractFeature = jaxb.unmarshal(src.get_Feature());
if (abstractFeature instanceof Appearance)
dest.setAppearance((Appearance)abstractFeature);
}
return dest;
}
开发者ID:citygml4j,项目名称:citygml4j,代码行数:13,代码来源:Appearance200Unmarshaller.java
示例14: unmarshalAppearanceProperty
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
public AppearanceProperty unmarshalAppearanceProperty(FeaturePropertyType src) throws MissingADESchemaException {
AppearanceProperty dest = new AppearanceProperty(module);
jaxb.getGMLUnmarshaller().unmarshalFeatureProperty(src, dest);
if (src.isSet_Feature()) {
ModelObject abstractFeature = jaxb.unmarshal(src.get_Feature());
if (abstractFeature instanceof Appearance)
dest.setAppearance((Appearance)abstractFeature);
}
return dest;
}
开发者ID:citygml4j,项目名称:citygml4j,代码行数:13,代码来源:Appearance200Unmarshaller.java
示例15: getTypeMapper
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
private CheckedTypeMapper<CityGML> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = CheckedTypeMapper.<CityGML>create()
.with(AddressType.class, this::unmarshalAddress)
.with(AddressPropertyType.class, this::unmarshalAddressProperty)
.with(CityModelType.class, this::unmarshalCityModel)
.with(ExternalObjectReferenceType.class, this::unmarshalExternalObject)
.with(ExternalReferenceType.class, this::unmarshalExternalReference)
.with(GeneralizationRelationType.class, this::unmarshalGeneralizationRelation)
.with(ImplicitGeometryType.class, this::unmarshalImplicitGeometry)
.with(ImplicitRepresentationPropertyType.class, this::unmarshalImplicitRepresentationProperty)
.with(RelativeToTerrainType.class, this::unmarshalRelativeToTerrain)
.with(RelativeToWaterType.class, this::unmarshalRelativeToWater)
.with(XalAddressPropertyType.class, this::unmarshalXalAddressProperty)
.with(FeaturePropertyType.class, this::unmarshalCityObjectMember)
.with(JAXBElement.class, this::unmarshal);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
开发者ID:citygml4j,项目名称:citygml4j,代码行数:28,代码来源:Core200Unmarshaller.java
示例16: unmarshalCityObjectMember
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
public CityObjectMember unmarshalCityObjectMember(FeaturePropertyType src) throws MissingADESchemaException {
CityObjectMember dest = new CityObjectMember(module);
jaxb.getGMLUnmarshaller().unmarshalFeatureProperty(src, dest);
if (src.isSet_Feature()) {
ModelObject abstractFeature = jaxb.unmarshal(src.get_Feature());
if (abstractFeature instanceof AbstractCityObject)
dest.setFeature((AbstractCityObject)abstractFeature);
}
return dest;
}
开发者ID:citygml4j,项目名称:citygml4j,代码行数:13,代码来源:Core200Unmarshaller.java
示例17: createFeatureCollectionWithGridCoverage
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
private void createFeatureCollectionWithGridCoverage() {
FeatureCollectionDocument doc = FeatureCollectionDocument.Factory.newInstance();
FeaturePropertyType member = doc.addNewFeatureCollection().addNewFeatureMember();
XmlUtil.qualifySubstitutionGroup(member.addNewFeature(), GridCoverageDocument.type.getDocumentElementName(), GridCoverageType.type);
XmlUtil.qualifySubstitutionGroup(doc.getFeatureCollection(), SamplingFeatureCollectionDocument.type.getDocumentElementName());
logger.debug(doc.xmlText(options));
assertTrue(XMLBeansParser.validate(doc).isEmpty());
}
开发者ID:52North,项目名称:SES,代码行数:10,代码来源:SubstitutionGroupsTest.java
示例18: testGetObservationIoosSweEncoding
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
@Test
public void testGetObservationIoosSweEncoding() throws OwsExceptionReport, XmlException {
XmlObject getObsResponse = sendGetObservation1RequestViaPox(NETWORK_OFFERING, IoosSosConstants.OM_PROFILE_M10,
ImmutableList.of(STATION_ASSET.getAssetId()), ImmutableList.of(OBS_PROP),null).asXmlObject();
assertNotNull(getObsResponse);
assertThat(getObsResponse, is(instanceOf(ObservationCollectionDocument.class)));
ObservationCollectionDocument obsCollectionDoc = (ObservationCollectionDocument) getObsResponse;
ObservationCollectionType obsCollection = obsCollectionDoc.getObservationCollection();
//TODO verify
BoundingShapeType boundedBy = obsCollection.getBoundedBy();
//TODO verify
LocationPropertyType location = obsCollection.getLocation();
assertThat(obsCollection.getMemberArray().length, is(1));
ObservationPropertyType observationProperty = obsCollection.getMemberArray()[0];
ObservationType observation = observationProperty.getObservation();
assertThat(observation, notNullValue());
//TODO verify
FeaturePropertyType featureOfInterest = observation.getFeatureOfInterest();
AbstractFeatureType feature = featureOfInterest.getFeature();
//TODO verify
ProcessPropertyType procedure = observation.getProcedure();
AbstractProcessType process = procedure.getProcess();
XmlObject result = observation.getResult();
assertThat(result, notNullValue());
//TODO verify
DataRecordDocument swe2DataRecordDocument = castXmlAnyToClass(result, DataRecordDocument.class);
DataRecordType swe2DataRecord = swe2DataRecordDocument.getDataRecord();
//observationRecord definition
assertThat(swe2DataRecord.getDefinition(), is(IoosSweConstants.OBSERVATION_RECORD_DEF));
Field[] fields = swe2DataRecord.getFieldArray();
Field stationsField = fields[0];
assertThat(stationsField.getName(), is(IoosSweConstants.STATIONS));
AbstractDataComponentType stationsAbstractDataComponent = stationsField.getAbstractDataComponent();
assertThat(stationsAbstractDataComponent, is(instanceOf(DataRecordType.class)));
DataRecordType stationsDataRecord = (DataRecordType) stationsAbstractDataComponent;
assertThat(stationsDataRecord.getDefinition(), is(IoosSweConstants.STATIONS_DEF));
}
开发者ID:ioos,项目名称:i52n-sos,代码行数:48,代码来源:IoosGetObservationIntegrationTest.java
示例19: caseFeaturePropertyType
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
@Override
public Adapter caseFeaturePropertyType(FeaturePropertyType object) {
return createFeaturePropertyTypeAdapter();
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:5,代码来源:AppearanceAdapterFactory.java
示例20: marshalAppearanceMember
import net.opengis.gml.FeaturePropertyType; //导入依赖的package包/类
public FeaturePropertyType marshalAppearanceMember(AppearanceMember src) {
return jaxb.getGMLMarshaller().marshalFeatureProperty(src);
}
开发者ID:citygml4j,项目名称:citygml4j,代码行数:4,代码来源:Appearance200Marshaller.java
注:本文中的net.opengis.gml.FeaturePropertyType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论