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

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

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.data;

import com.enonic.xp.util.Reference;

final class ReferenceValue
    extends Value
{
    ReferenceValue( final Reference value )
    {
        super( ValueTypes.REFERENCE, value );
    }

    ReferenceValue( final ReferenceValue source )
    {
        super( ValueTypes.REFERENCE, source.getObject() );
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy