Package gov.nist.secauto.oscal.lib.model
Class MappingResourceReference
java.lang.Object
gov.nist.secauto.oscal.lib.model.MappingResourceReference
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Mapped Resource Reference",
description="A reference to a resource that is either the source or the target of a mapping.",
name="mapping-resource-reference",
moduleClass=OscalMappingCommonModule.class)
public class MappingResourceReference
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A reference to a resource that is either the source or the target of a mapping.
-
Constructor Summary
ConstructorsConstructorDescriptionMappingResourceReference(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getHref()getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetNs()getProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetType()booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidvoidvoidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidtoString()
-
Constructor Details
-
MappingResourceReference
public MappingResourceReference() -
MappingResourceReference
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getNs
-
setNs
-
getType
-
setType
-
getHref
-
setHref
-
getProps
-
setProps
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
-
setLinks
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-