org.apache.stanbol.entityhub.servicesapi.site
Class License

java.lang.Object
  extended by org.apache.stanbol.entityhub.servicesapi.site.License

public final class License
extends Object


Constructor Summary
License(String name, String url, String text)
          Constructs an License.
 
Method Summary
 String getName()
          Getter for the name of the License
 String getText()
          Getter for the text of the License
 String getUrl()
          Getter for the Url of the License
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

License

public License(String name,
               String url,
               String text)
        throws IllegalArgumentException
Constructs an License. At least one of the three parameters MUST NOT be null otherwise an IllegalArgumentException is thrown

Parameters:
name - the name of the license
url - the link to the page about the license
text - the natural language text defining the license
Throws:
IllegalArgumentException - if all three parameters are null or empty strings
Method Detail

getName

public final String getName()
Getter for the name of the License

Returns:

getUrl

public final String getUrl()
Getter for the Url of the License

Returns:

getText

public final String getText()
Getter for the text of the License

Returns:


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.