Class AttributeBase

    • Field Detail

      • m_owner

        private final SchemaBase m_owner
        Owning element.
    • Constructor Detail

      • AttributeBase

        protected AttributeBase​(SchemaBase owner)
        Constructor.
        Parameters:
        owner - owning element
    • Method Detail

      • getOwner

        public final SchemaBase getOwner()
        Get owning element.
        Returns:
        owning element (cannot be null)
      • prevalidate

        public void prevalidate​(ValidationContext vctx)
        Prevalidate component information. The prevalidation step is used to check isolated aspects of a component, such as the settings for enumerated values. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.
        Specified by:
        prevalidate in interface IComponent
        Parameters:
        vctx - validation context
      • validate

        public void validate​(ValidationContext vctx)
        Validate component information. The validation step is used for checking the interactions between components, such as name references to other components. The prevalidate(org.jibx.schema.validation.ValidationContext) method will always be called for every component in the schema definition before this method is called for any component. This empty base class implementation should be overridden by each subclass that requires validation handling.
        Specified by:
        validate in interface IComponent
        Parameters:
        vctx - validation context