Package gov.nist.secauto.oscal.lib.model
Class Diagram
java.lang.Object
gov.nist.secauto.oscal.lib.model.Diagram
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Diagram",
description="A graphic that provides a visual representation the system, or some aspect of it.",
name="diagram",
moduleClass=OscalSspModule.class,
remarks="A diagram must include a `link` with a rel value of \"diagram\", who\'s href references a remote URI or an internal reference within this document containing the diagram.",
valueConstraints=@ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="link/@rel",allowOthers=true,values=@AllowedValue(value="diagram",description="A reference to the diagram image.")),indexHasKey=@IndexHasKey(level=ERROR,target="link[@rel=\'diagram\' and starts-with(@href,\'#\')]",indexName="index-back-matter-resource",keyFields=@KeyField(target="@href",pattern="#(.*)")),matches={@Matches(level=ERROR,target="link[@rel=\'diagram\']/@href[starts-with(.,\'#\')]",typeAdapter=gov.nist.secauto.metaschema.core.datatype.adapter.UriReferenceAdapter.class),@Matches(level=ERROR,target="link[@rel=\'diagram\']/@href[not(starts-with(.,\'#\'))]",typeAdapter=gov.nist.secauto.metaschema.core.datatype.adapter.UriAdapter.class)}))
public class Diagram
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A graphic that provides a visual representation the system, or some aspect of it.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newLink
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getUuid()
boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.void
setCaption
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
setDescription
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
toString()
-
Constructor Details
-
Diagram
public Diagram() -
Diagram
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getDescription
-
setDescription
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getCaption
-
setCaption
-
getRemarks
-
setRemarks
-
toString
-