src/main/java/org/xmlet/xsdparser/xsdelements/AttributeValidations.java
static String getBlockDefaultValue(XsdAbstractElement parent) {
        if (parent == null) return null;

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

        return getBlockDefaultValue(parent.getParent());
    }
static String getBlockDefaultValue(XsdAbstractElement parent) {
        if (parent == null) return null;

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

        return getBlockDefaultValue(parent.getParent());
    }
static String getBlockDefaultValue ( XsdAbstractElement parent ) { if ( parent == null ) return null ; if ( parent instanceof XsdSchema ) { return ( ( XsdSchema ) parent ) . getBlockDefault ( ) ; } return getBlockDefaultValue ( parent . getParent ( ) ) ; }
Obtains the default value of the {@link XsdSchema#blockDefault} 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 block value.
@return The default value for the block attribute.
Obtains the default value of the {