public class TimeDomainDefinition extends Object
| Constructor and Description |
|---|
TimeDomainDefinition(String label,
Resolution baseUnit,
long origin)
Construct a definition with the given label and properties.
|
TimeDomainDefinition(String label,
Resolution baseUnit,
long origin,
BasePeriodPattern basePattern)
Construct a definition with the given label and properties.
|
TimeDomainDefinition(String label,
Resolution baseUnit,
long origin,
BasePeriodPattern basePattern,
SubPeriodPattern subPattern)
Construct a definition with the given label and properties.
|
| Modifier and Type | Method and Description |
|---|---|
TimeDomain |
asTimeDomain()
Construct the time domain corresponding to this definition.
|
BasePeriodPattern |
getBasePeriodPattern()
Return the base period pattern.
|
Resolution |
getBaseUnit()
Return the resolution.
|
protected TimeDomain |
getCached()
For subclasses.
|
String |
getLabel()
Return the label.
|
long |
getOrigin()
Return the origin.
|
SubPeriodPattern |
getSubPeriodPattern()
Return the sub period pattern.
|
protected void |
setCached(TimeDomain cached)
For subclasses.
|
String |
toString() |
public TimeDomainDefinition(String label, Resolution baseUnit, long origin, BasePeriodPattern basePattern, SubPeriodPattern subPattern)
label - a string or nullbaseUnit - a resolutionorigin - a numberbasePattern - base period patternsubPattern - a sub period patternpublic TimeDomainDefinition(String label, Resolution baseUnit, long origin, BasePeriodPattern basePattern)
label - a string or nullbaseUnit - a resolutionorigin - a numberbasePattern - base period patternpublic TimeDomainDefinition(String label, Resolution baseUnit, long origin)
label - a string or nullbaseUnit - a resolutionorigin - a numberprotected TimeDomain getCached()
protected void setCached(TimeDomain cached)
cached - a time domainpublic TimeDomain asTimeDomain()
TimeFormatter and a default
TimeScanner. Any problem with the definition will be detected the
first time this method is executed.public String getLabel()
public long getOrigin()
public Resolution getBaseUnit()
public BasePeriodPattern getBasePeriodPattern()
public SubPeriodPattern getSubPeriodPattern()
Copyright © 2017. All rights reserved.