Class Link
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,ILink
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.metaschema.oscal.lib.model.metadata.AbstractLink
AbstractLink.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHref()Get the "Hypertext Reference".Get the "Link Media Type".dev.metaschema.core.model.IMetaschemaDatagetRel()Get the "Link Relation Type".Get the "Resource Fragment".dev.metaschema.core.datatype.markup.MarkupLinegetText()Get the "Link Text".voidSet the "Hypertext Reference".voidsetMediaType(String value) Set the "Link Media Type".voidSet the "Link Relation Type".voidsetResourceFragment(String value) Set the "Resource Fragment".voidsetText(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Link Text".toString()Methods inherited from class dev.metaschema.oscal.lib.model.metadata.AbstractLink
builder, merge
-
Constructor Details
-
Link
public Link()Constructs a newdev.metaschema.oscal.lib.model.Linkinstance with no metadata. -
Link
Constructs a newdev.metaschema.oscal.lib.model.Linkinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getHref
Get the "Hypertext Reference".A resolvable URL reference to a resource.
- Returns:
- the href value
-
setHref
Set the "Hypertext Reference".A resolvable URL reference to a resource.
- Parameters:
value- the href value to set
-
getRel
Get the "Link Relation Type".Describes the type of relationship provided by the link's hypertext reference. This can be an indicator of the link's purpose.
- Returns:
- the rel value, or
nullif not set
-
setRel
Set the "Link Relation Type".Describes the type of relationship provided by the link's hypertext reference. This can be an indicator of the link's purpose.
- Parameters:
value- the rel value to set, ornullto clear
-
getMediaType
Get the "Link Media Type".A label that indicates the nature of a resource, as a data serialization or format.
- Returns:
- the media-type value, or
nullif not set
-
setMediaType
Set the "Link Media Type".A label that indicates the nature of a resource, as a data serialization or format.
- Parameters:
value- the media-type value to set, ornullto clear
-
getResourceFragment
Get the "Resource Fragment".In case where the
hrefpoints to aback-matter/resource, this value will indicate the URI fragment to append to anyrlinkassociated with the resource. This value MUST be URI encoded.- Returns:
- the resource-fragment value, or
nullif not set
-
setResourceFragment
Set the "Resource Fragment".In case where the
hrefpoints to aback-matter/resource, this value will indicate the URI fragment to append to anyrlinkassociated with the resource. This value MUST be URI encoded.- Parameters:
value- the resource-fragment value to set, ornullto clear
-
getText
Get the "Link Text".A textual label to associate with the link, which may be used for presentation in a tool.
- Returns:
- the text value, or
nullif not set
-
setText
Set the "Link Text".A textual label to associate with the link, which may be used for presentation in a tool.
- Parameters:
value- the text value to set, ornullto clear
-
toString
-