All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.data.BinaryReferenceValue Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.data;

import com.enonic.xp.util.BinaryReference;

final class BinaryReferenceValue
    extends Value
{
    BinaryReferenceValue( final BinaryReference value )
    {
        super( ValueTypes.BINARY_REFERENCE, value );
    }

    BinaryReferenceValue( final BinaryReferenceValue source )
    {
        super( ValueTypes.BINARY_REFERENCE, source.getObject() );
    }

    @Override
    Value copy( final PropertyTree tree )
    {
        return new BinaryReferenceValue( this );
    }

    @Override
    Object toJsonValue()
    {
        return asString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy