Package edu.sc.seis.sod.validator.model
Interface Form
- All Superinterfaces:
FormProvider
- All Known Subinterfaces:
GenitorForm
,MultigenitorForm
- All Known Implementing Classes:
AbstractForm
,AbstractGenitorForm
,AbstractMultigenitorForm
,AnyXMLElement
,Attribute
,Choice
,Data
,DataList
,Empty
,Group
,Interleave
,NamedElement
,NotAllowed
,Text
,Value
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deref
(Form parent, Definition def) getDef()
getXPath()
boolean
isAncestorOf
(Form f) boolean
isAncestorOf
(Form f, Form root) boolean
Methods inherited from interface edu.sc.seis.sod.validator.model.FormProvider
copyWithNewParent, getForm, getMax, getMin, setAnnotation, setMax, setMin
-
Method Details
-
getXPath
String getXPath() -
getAnnotation
Annotation getAnnotation() -
getParent
Form getParent()- Returns:
- the Form containing this Form. Every Form has a parent except for the root which returns null
-
isFromDef
boolean isFromDef()- Returns:
- true if this From is originally from a Definition. If true, getDef() will return this Form's definition
-
getDef
Definition getDef()- Returns:
- the definition this form was originally contained in. Null if this form was not contained in a definition
-
getNamespace
String getNamespace()- Returns:
- the namespace of this form
-
isAncestorOf
- Returns:
- true if the passed in Form is directly descended from this Form
-
isAncestorOf
-
deref
- Returns:
- this form set with parent as its parent, isFromDef returns true and getDef returns def
-
accept
-