static enum CreativeCommons.RequirementLiteral extends java.lang.Enum<CreativeCommons.RequirementLiteral> implements Literal
Enum Constant and Description |
---|
Attribution |
Copyleft |
LesserCopyleft |
Notice |
ShareAlike |
SourceCode |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.regex.Pattern |
discoveryPattern |
(package private) MultiProtocolURL |
subject |
(package private) java.lang.String |
terminal |
Modifier and Type | Method and Description |
---|---|
java.util.regex.Pattern |
getDiscoveryPattern()
if a resource is poorly annotated with metadata an it shall
be automatically annotated, then the terminal of a literal
may be too weak to discover literals in the resource.
|
MultiProtocolURL |
getSubject()
the subject of a literal is a reference to a resource that
explains the literal.
|
java.lang.String |
getTerminal()
the terminal is the actual content of the property and also
the visual representation of the content of a property if the
literal is assigned to that property.
|
static CreativeCommons.RequirementLiteral |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CreativeCommons.RequirementLiteral[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreativeCommons.RequirementLiteral Notice
public static final CreativeCommons.RequirementLiteral Attribution
public static final CreativeCommons.RequirementLiteral ShareAlike
public static final CreativeCommons.RequirementLiteral SourceCode
public static final CreativeCommons.RequirementLiteral Copyleft
public static final CreativeCommons.RequirementLiteral LesserCopyleft
java.lang.String terminal
MultiProtocolURL subject
java.util.regex.Pattern discoveryPattern
public static CreativeCommons.RequirementLiteral[] values()
for (CreativeCommons.RequirementLiteral c : CreativeCommons.RequirementLiteral.values()) System.out.println(c);
public static CreativeCommons.RequirementLiteral valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getTerminal()
Literal
getTerminal
in interface Literal
public MultiProtocolURL getSubject()
Literal
getSubject
in interface Literal
public java.util.regex.Pattern getDiscoveryPattern()
Literal
getDiscoveryPattern
in interface Literal