static String getFinalDefaultValue(XsdAbstractElement parent) {
        if (parent == null) return null;

        if (parent instanceof XsdSchema){
            return ((XsdSchema)parent).getFinalDefault();
        }

        return getFinalDefaultValue(parent.getParent());
    }
static String getFinalDefaultValue ( XsdAbstractElement parent ) { if ( parent == null ) return null ; if ( parent instanceof XsdSchema ) { return ( ( XsdSchema ) parent ) . getFinalDefault ( ) ; } return getFinalDefaultValue ( parent . getParent ( ) ) ; }
Obtains the default value of the {@link XsdSchema#finalDefault} attribute by iterating in the element tree by
going from {@link XsdAbstractElement#parent} to {@link XsdAbstractElement#parent} until reaching the top level
element.
@param parent The parent of the element requesting the default final value.
@return The default value for the final attribute.