@Test public void testSetDomainOfValidity() { Extent result = temporalReferenceSystem1.getDomainOfValidity(); ExtentImpl domainOfValidity = new ExtentImpl(); domainOfValidity.setDescription(new SimpleInternationalString("Western Europe")); Calendar cal = Calendar.getInstance(); cal.set(0, 0, 0); TemporalExtentImpl temporalExt = new TemporalExtentImpl(cal.getTime(), new Date()); Collection<TemporalExtent> collection = new ArrayList<TemporalExtent>(); collection.add(temporalExt); domainOfValidity.setTemporalElements(collection); ((DefaultTemporalReferenceSystem) temporalReferenceSystem1).setDomainOfValidity(domainOfValidity); assertFalse(temporalReferenceSystem1.getDomainOfValidity().equals(result)); }
public void setDomainOfValidity(Extent domainOfValidity) { this.domainOfValidity = domainOfValidity; }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { public void setDomainOfValidity(Extent domainOfValidity) { this.domainOfValidity = domainOfValidity; } }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { public void setDomainOfValidity(Extent domainOfValidity) { this.domainOfValidity = domainOfValidity; } DefaultTemporalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity); }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { public void setDomainOfValidity(Extent domainOfValidity) { this.domainOfValidity = domainOfValidity; } DefaultTemporalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity); ReferenceIdentifier getName(); Extent getDomainOfValidity(); @Deprecated Extent getValidArea(); InternationalString getScope(); Collection<GenericName> getAlias(); Set<ReferenceIdentifier> getIdentifiers(); InternationalString getRemarks(); String toWKT(); void setName(ReferenceIdentifier name); void setDomainOfValidity(Extent domainOfValidity); void setValidArea(Extent validArea); void setScope(InternationalString scope); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultTemporalReferenceSystem implements TemporalReferenceSystem { public void setDomainOfValidity(Extent domainOfValidity) { this.domainOfValidity = domainOfValidity; } DefaultTemporalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity); ReferenceIdentifier getName(); Extent getDomainOfValidity(); @Deprecated Extent getValidArea(); InternationalString getScope(); Collection<GenericName> getAlias(); Set<ReferenceIdentifier> getIdentifiers(); InternationalString getRemarks(); String toWKT(); void setName(ReferenceIdentifier name); void setDomainOfValidity(Extent domainOfValidity); void setValidArea(Extent validArea); void setScope(InternationalString scope); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }