Search in sources :

Example 21 with ChildDefinition

use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.

the class AppSchemaMappingTest method getFirstObservationDateTargetProperty.

private ListMultimap<String, Property> getFirstObservationDateTargetProperty() {
    ChildDefinition<?> lcvObsChildDef = DefinitionUtil.getChild(landCoverUnitType, new QName(LANDCOVER_NS, "landCoverObservation"));
    assertNotNull(lcvObsChildDef);
    ChildDefinition<?> lcvObsFeatureTypeChildDef = DefinitionUtil.getChild(lcvObsChildDef, new QName(LANDCOVER_NS, "LandCoverObservation"));
    assertNotNull(lcvObsFeatureTypeChildDef);
    ChildDefinition<?> obsDateChildDef = DefinitionUtil.getChild(lcvObsFeatureTypeChildDef, new QName(LANDCOVER_NS, "observationDate"));
    assertNotNull(obsDateChildDef);
    List<ChildDefinition<?>> childDefs = Arrays.asList(lcvObsChildDef, lcvObsFeatureTypeChildDef, obsDateChildDef);
    List<Integer> contextNames = Arrays.asList(0);
    return createTargetProperty(landCoverUnitType, childDefs, contextNames, null);
}
Also used : QName(javax.xml.namespace.QName) ChildDefinition(eu.esdihumboldt.hale.common.schema.model.ChildDefinition)

Example 22 with ChildDefinition

use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.

the class AppSchemaMappingTest method getDescriptionNilReasonTargetProperty.

private ListMultimap<String, Property> getDescriptionNilReasonTargetProperty() {
    ChildDefinition<?> description = DefinitionUtil.getChild(landCoverUnitType, new QName(GML_NS, "description"));
    assertNotNull(description);
    ChildDefinition<?> nilReason = DefinitionUtil.getChild(description, new QName(GML_NIL_REASON));
    assertNotNull(nilReason);
    List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
    childDefs.add(description);
    childDefs.add(nilReason);
    return createTargetProperty(childDefs);
}
Also used : QName(javax.xml.namespace.QName) ChildDefinition(eu.esdihumboldt.hale.common.schema.model.ChildDefinition) ArrayList(java.util.ArrayList)

Example 23 with ChildDefinition

use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.

the class AppSchemaMappingTest method getGmlIdTargetProperty.

private ListMultimap<String, Property> getGmlIdTargetProperty() {
    ChildDefinition<?> gmlIdChildDef = DefinitionUtil.getChild(landCoverUnitType, new QName(GML_NS, "id"));
    List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
    childDefs.add(gmlIdChildDef);
    return createTargetProperty(childDefs);
}
Also used : QName(javax.xml.namespace.QName) ChildDefinition(eu.esdihumboldt.hale.common.schema.model.ChildDefinition) ArrayList(java.util.ArrayList)

Example 24 with ChildDefinition

use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.

the class AppSchemaMappingTest method getBeginLifespanTargetProperty.

private ListMultimap<String, Property> getBeginLifespanTargetProperty() {
    ChildDefinition<?> beginLifeSpan = DefinitionUtil.getChild(landCoverUnitType, new QName(LANDCOVER_NS, "beginLifespanVersion"));
    assertNotNull(beginLifeSpan);
    List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
    childDefs.add(beginLifeSpan);
    return createTargetProperty(childDefs);
}
Also used : QName(javax.xml.namespace.QName) ChildDefinition(eu.esdihumboldt.hale.common.schema.model.ChildDefinition) ArrayList(java.util.ArrayList)

Example 25 with ChildDefinition

use of eu.esdihumboldt.hale.common.schema.model.ChildDefinition in project hale by halestudio.

the class AppSchemaMappingTest method getDescriptionTargetProperty.

private ListMultimap<String, Property> getDescriptionTargetProperty() {
    ChildDefinition<?> descriptionChildDef = DefinitionUtil.getChild(landCoverUnitType, new QName(GML_NS, "description"));
    List<ChildDefinition<?>> childDefs = new ArrayList<ChildDefinition<?>>();
    childDefs.add(descriptionChildDef);
    return createTargetProperty(childDefs);
}
Also used : QName(javax.xml.namespace.QName) ChildDefinition(eu.esdihumboldt.hale.common.schema.model.ChildDefinition) ArrayList(java.util.ArrayList)

Aggregations

ChildDefinition (eu.esdihumboldt.hale.common.schema.model.ChildDefinition)32 ArrayList (java.util.ArrayList)20 QName (javax.xml.namespace.QName)19 TypeDefinition (eu.esdihumboldt.hale.common.schema.model.TypeDefinition)11 ChildContext (eu.esdihumboldt.hale.common.align.model.ChildContext)6 Definition (eu.esdihumboldt.hale.common.schema.model.Definition)6 EntityDefinition (eu.esdihumboldt.hale.common.align.model.EntityDefinition)5 PropertyEntityDefinition (eu.esdihumboldt.hale.common.align.model.impl.PropertyEntityDefinition)5 DefinitionGroup (eu.esdihumboldt.hale.common.schema.model.DefinitionGroup)5 List (java.util.List)5 PropertyDefinition (eu.esdihumboldt.hale.common.schema.model.PropertyDefinition)4 Pair (eu.esdihumboldt.util.Pair)3 LinkedList (java.util.LinkedList)3 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)3 TreePath (org.eclipse.jface.viewers.TreePath)3 TypeEntityDefinition (eu.esdihumboldt.hale.common.align.model.impl.TypeEntityDefinition)2 InstanceValidationMessage (eu.esdihumboldt.hale.common.instance.extension.validation.report.InstanceValidationMessage)2 InstanceValidationReport (eu.esdihumboldt.hale.common.instance.extension.validation.report.InstanceValidationReport)2 Group (eu.esdihumboldt.hale.common.instance.model.Group)2 Instance (eu.esdihumboldt.hale.common.instance.model.Instance)2