Class AbstractEffectiveSchemaNode<D extends DeclaredStatement<QName>>

    • Constructor Detail

      • AbstractEffectiveSchemaNode

        protected AbstractEffectiveSchemaNode​(StmtContext<QName,​D,​?> ctx)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getQName

        public final QName getQName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: SchemaNode
        Returns QName of the instance of the type SchemaNode.
        Specified by:
        getQName in interface SchemaNode
        Returns:
        QName with the name of the schema node
      • getPath

        public final SchemaPath getPath()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: SchemaNode
        Returns the schema path of the instance of the type SchemaNode.
        Specified by:
        getPath in interface SchemaNode
        Returns:
        schema path of the schema node
      • maskList

        protected static final @NonNull Object maskList​(ImmutableList<?> list)
        Utility method for squashing singleton lists into single objects. This is a CPU/mem trade-off, which we are usually willing to make: for the cost of an instanceof check we can save one object and re-create it when needed. The inverse operation is #unmaskSubstatements(Object)}.
        Parameters:
        list - list to mask
        Returns:
        Masked list
        Throws:
        NullPointerException - if list is null