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 java.lang.Object


Constructor Summary
License(java.lang.String name, java.lang.String url, java.lang.String text)
          Constructs an License.
 
Method Summary
 java.lang.String getName()
          Getter for the name of the License
 java.lang.String getText()
          Getter for the text of the License
 java.lang.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(java.lang.String name,
               java.lang.String url,
               java.lang.String text)
        throws java.lang.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:
java.lang.IllegalArgumentException - if all three parameters are null or empty strings
Method Detail

getName

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

Returns:

getUrl

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

Returns:

getText

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

Returns:


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