AssetRelationImpl.java 1.09 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.granite.asset.api.Asset
 *  com.adobe.granite.asset.api.AssetRelation
 *  org.apache.sling.api.resource.ModifiableValueMap
 */
package com.adobe.granite.asset.core.impl;

import com.adobe.granite.asset.api.Asset;
import com.adobe.granite.asset.api.AssetRelation;
import org.apache.sling.api.resource.ModifiableValueMap;

public class AssetRelationImpl
implements AssetRelation {
    private Asset relatedAsset = null;
    private ModifiableValueMap properties = null;
    private String relationName = null;

    public AssetRelationImpl(String name, Asset asset, ModifiableValueMap props) {
        this.relatedAsset = asset;
        this.properties = props;
        this.relationName = name;
    }

    public AssetRelationImpl(String name, Asset asset) {
        this(name, asset, null);
    }

    public Asset getAsset() {
        return this.relatedAsset;
    }

    public ModifiableValueMap getProperties() {
        return this.properties;
    }

    public String getName() {
        return this.relationName;
    }
}