org.apache.xerces.impl.validation.datatypes.eTypes.Data.datime
Class ISOPeriod
java.lang.Object
|
+--org.apache.xerces.impl.validation.datatypes.eTypes.Models.AbstractProperty
|
+--org.apache.xerces.impl.validation.datatypes.eTypes.Models.PartialOrder
|
+--org.apache.xerces.impl.validation.datatypes.eTypes.Data.datime.ISODateTime
|
+--org.apache.xerces.impl.validation.datatypes.eTypes.Data.datime.ISOPeriod
- public class ISOPeriod
- extends ISODateTime
This matches the part of the ISO Standard which begins with 'P'
- Version:
- $Id: ISOPeriod.java,v 1.1.2.1 2000/10/28 00:04:46 jeffreyr Exp $
- Author:
- Leonard C. Berman, Jeffrey Rodriguez
Method Summary |
boolean |
isPeriod()
|
static void |
main(java.lang.String[] args)
|
Match |
matchPeriod(java.lang.String str)
Determines whether str is a valid ISO8601 period - using a 'P' |
boolean |
validate(java.lang.Object obj)
If 'T' does not occur in str, and str is not an ISODate, this checks
returns true if str is an ISOTime |
Methods inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Models.PartialOrder |
getBound,
getClosed,
glb,
gt,
isBounded,
isClosed,
lt,
lub,
merge,
merge,
setBound,
setClosed |
Methods inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Models.AbstractProperty |
accumulate,
add2Report,
clone,
getJClass,
getName,
getPossible,
getReport,
getSubProp,
getSubPropEval,
getSubPropMerge,
getSubPropName,
getSubPropNameIndex,
merge,
msg,
resetAccumulator,
resetConstraint,
resetInstance,
setJClass,
setName,
setPossible,
setRequired,
setSubProp,
setSubProp,
setSubPropEval,
setSubPropMerge,
setSubPropName,
toString,
twin |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ISOPeriod
public ISOPeriod()
ISOPeriod
public ISOPeriod(java.lang.String name)
isPeriod
public boolean isPeriod()
main
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException
matchPeriod
public Match matchPeriod(java.lang.String str)
- Determines whether str is a valid ISO8601 period - using a 'P'
validate
public boolean validate(java.lang.Object obj)
- Description copied from class: ISODateTime
- If 'T' does not occur in str, and str is not an ISODate, this checks
returns true if str is an ISOTime
- Overrides:
- validate in class ISODateTime
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.