edu.sc.seis.sod.validator.model
Class Ref
java.lang.Object
edu.sc.seis.sod.validator.model.Ref
- All Implemented Interfaces:
- FormProvider
public class Ref
- extends java.lang.Object
- implements FormProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Ref
public Ref(Grammar owner)
Ref
public Ref(Grammar owner,
java.lang.String name)
Ref
public Ref(Grammar owner,
java.lang.String name,
Form parent)
copyWithNewParent
public FormProvider copyWithNewParent(Form newParent)
- Specified by:
copyWithNewParent
in interface FormProvider
getForm
public Form getForm()
- Specified by:
getForm
in interface FormProvider
getName
public java.lang.String getName()
getDef
public Definition getDef()
getMin
public int getMin()
- Specified by:
getMin
in interface FormProvider
- Returns:
- the minimum number of times this Form can appear
setMin
public void setMin(int min)
- Specified by:
setMin
in interface FormProvider
getMax
public int getMax()
- Specified by:
getMax
in interface FormProvider
- Returns:
- the maximum number of times this Form can appear
setAnnotation
public void setAnnotation(Annotation ann)
- Specified by:
setAnnotation
in interface FormProvider
setMax
public void setMax(int max)
- Specified by:
setMax
in interface FormProvider
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object