Package org.drools.io

Class BaseResource

    • Field Detail

      • bytes

        protected byte[] bytes
    • Constructor Detail

      • BaseResource

        public BaseResource()
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • getConfiguration

        public org.kie.api.io.ResourceConfiguration getConfiguration()
        Specified by:
        getConfiguration in interface InternalResource
        Specified by:
        getConfiguration in interface org.kie.api.io.Resource
      • setConfiguration

        public InternalResource setConfiguration​(org.kie.api.io.ResourceConfiguration conf)
        Specified by:
        setConfiguration in interface InternalResource
        Specified by:
        setConfiguration in interface org.kie.api.io.Resource
      • setResourceType

        public InternalResource setResourceType​(org.kie.api.io.ResourceType resourceType)
        Specified by:
        setResourceType in interface InternalResource
        Specified by:
        setResourceType in interface org.kie.api.io.Resource
      • getResourceType

        public org.kie.api.io.ResourceType getResourceType()
        Specified by:
        getResourceType in interface InternalResource
        Specified by:
        getResourceType in interface org.kie.api.io.Resource
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: InternalResource
        Returns the description of the resource. This is just a text description of the resource used to add more information about it. This is not a mandatory attribute
        Specified by:
        getDescription in interface InternalResource
        Returns:
        the name of the resource, or null if is not set.
      • getSourcePath

        public java.lang.String getSourcePath()
        Specified by:
        getSourcePath in interface org.kie.api.io.Resource
      • getTargetPath

        public java.lang.String getTargetPath()
        Specified by:
        getTargetPath in interface org.kie.api.io.Resource
      • setSourcePath

        public InternalResource setSourcePath​(java.lang.String path)
        Specified by:
        setSourcePath in interface org.kie.api.io.Resource
      • setTargetPath

        public InternalResource setTargetPath​(java.lang.String path)
        Specified by:
        setTargetPath in interface org.kie.api.io.Resource
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object