use of org.geotoolkit.temporal.object.DefaultTemporalNode in project geotoolkit by Geomatys.
the class DefaultOrdinalEra method getEndd.
/**
* Returns a {@link TemporalNode} create from {@link #end} object, use for XML binding.
*
* @return a {@link TemporalNode} create from {@link #end} object, use for XML binding.
*/
@XmlElement(name = "end")
private DefaultTemporalNode getEndd() {
final Identifier iden = getName();
final Map<String, Object> instantProp = new HashMap<>();
instantProp.put(NAME_KEY, new NamedIdentifier(null, iden.getCode() + "_end instant"));
final Map<String, Object> nodeProp = new HashMap<>();
nodeProp.put(NAME_KEY, new NamedIdentifier(null, iden.getCode() + "_end node"));
final DefaultTemporalNode start = new DefaultTemporalNode(nodeProp, new DefaultInstant(instantProp, begin), null, null);
return start;
}
use of org.geotoolkit.temporal.object.DefaultTemporalNode in project geotoolkit by Geomatys.
the class DefaultOrdinalEra method getStart.
/**
* Returns a {@link TemporalNode} create from {@link #begin} object, use for XML binding.
*
* @return a {@link TemporalNode} create from {@link #begin} object, use for XML binding.
*/
@XmlElement(name = "start")
private DefaultTemporalNode getStart() {
final Identifier iden = getName();
final Map<String, Object> instantProp = new HashMap<>();
instantProp.put(NAME_KEY, new NamedIdentifier(null, iden.getCode() + "_begin instant"));
final Map<String, Object> nodeProp = new HashMap<>();
nodeProp.put(NAME_KEY, new NamedIdentifier(null, iden.getCode() + "_start node"));
final DefaultTemporalNode start = new DefaultTemporalNode(nodeProp, new DefaultInstant(instantProp, begin), null, null);
return start;
}
Aggregations