org.apache.abdera.ext.license
Class LicenseHelper

java.lang.Object
  extended by org.apache.abdera.ext.license.LicenseHelper

public final class LicenseHelper
extends Object

Implementation of the Atom License Extension, RFC 4946


Field Summary
static String UNSPECIFIED_LICENSE
           
 
Method Summary
static Link addLicense(Base base, String iri)
           
static Link addLicense(Base base, String iri, String title)
           
static Link addLicense(Base base, String iri, String type, String title, String hreflang)
           
static Link addUnspecifiedLicense(Base base)
           
static List<Link> getLicense(Base base)
           
static List<Link> getLicense(Base base, boolean inherited)
           
static boolean hasLicense(Base base)
           
static boolean hasLicense(Base base, boolean inherited)
           
static boolean hasLicense(Base base, String iri)
           
static boolean hasLicense(Base base, String iri, boolean inherited)
           
static boolean hasUnspecifiedLicense(Base base)
           
static boolean hasUnspecifiedLicense(Base base, boolean inherited)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSPECIFIED_LICENSE

public static final String UNSPECIFIED_LICENSE
See Also:
Constant Field Values
Method Detail

getLicense

public static List<Link> getLicense(Base base,
                                    boolean inherited)

getLicense

public static List<Link> getLicense(Base base)

hasUnspecifiedLicense

public static boolean hasUnspecifiedLicense(Base base,
                                            boolean inherited)

hasUnspecifiedLicense

public static boolean hasUnspecifiedLicense(Base base)

hasLicense

public static boolean hasLicense(Base base,
                                 String iri,
                                 boolean inherited)

hasLicense

public static boolean hasLicense(Base base,
                                 String iri)

hasLicense

public static boolean hasLicense(Base base,
                                 boolean inherited)

hasLicense

public static boolean hasLicense(Base base)

addUnspecifiedLicense

public static Link addUnspecifiedLicense(Base base)

addLicense

public static Link addLicense(Base base,
                              String iri)

addLicense

public static Link addLicense(Base base,
                              String iri,
                              String title)

addLicense

public static Link addLicense(Base base,
                              String iri,
                              String type,
                              String title,
                              String hreflang)


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.