AssetRelationImpl.java
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* 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;
}
}