Class MappingResourceReference
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.MappingResourceReferenceinstance with no metadata.MappingResourceReference(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.MappingResourceReferenceinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getHref()Get the "Catalog or Profile Reference".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetNs()Get the "Resource Type Namespace".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".getType()Get the "Resource Type".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidSet the "Catalog or Profile Reference".voidSet the "Link".voidSet the "Resource Type Namespace".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Resource Type".toString()
-
Constructor Details
-
MappingResourceReference
public MappingResourceReference()Constructs a newdev.metaschema.oscal.lib.model.MappingResourceReferenceinstance with no metadata. -
MappingResourceReference
Constructs a newdev.metaschema.oscal.lib.model.MappingResourceReferenceinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getNs
Get the "Resource Type Namespace".An optional namespace qualifying the resource's
type.- Returns:
- the ns value, or
nullif not set
-
setNs
Set the "Resource Type Namespace".An optional namespace qualifying the resource's
type.- Parameters:
value- the ns value to set, ornullto clear
-
getType
Get the "Resource Type".The semantic type of the resource.
- Returns:
- the type value
-
setType
Set the "Resource Type".The semantic type of the resource.
- Parameters:
value- the type value to set
-
getHref
Get the "Catalog or Profile Reference".A resolvable URL reference to the base catalog or profile that this profile is tailoring.
- Returns:
- the href value
-
setHref
Set the "Catalog or Profile Reference".A resolvable URL reference to the base catalog or profile that this profile is tailoring.
- Parameters:
value- the href value to set
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
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
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
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
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-