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

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

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

import com.enonic.xp.util.Link;

final class LinkValue
    extends Value
{
    LinkValue( final Link value )
    {
        super( ValueTypes.LINK, value );
    }

    LinkValue( final LinkValue source )
    {
        super( ValueTypes.LINK, source.getObject() );
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy