Class Metadata.Location
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEmailAddress(String item) Add a newStringitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newTelephoneNumberitem to the underlying collection.booleanAdd a newURIitem to the underlying collection.Get the "Address".Get the "Email Address".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Telephone Number".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Location Title".getUrls()Get the "Location URL".getUuid()Get the "Location Universally Unique Identifier".booleanremoveEmailAddress(String item) Remove the first matchingStringitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingTelephoneNumberitem from the underlying collection.booleanRemove the first matchingURIitem from the underlying collection.voidsetAddress(Address value) Set the "Address".voidsetEmailAddresses(List<String> value) Set the "Email Address".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetTelephoneNumbers(List<TelephoneNumber> value) Set the "Telephone Number".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Location Title".voidSet the "Location URL".voidSet the "Location Universally Unique Identifier".toString()
-
Constructor Details
-
Location
public Location()Constructs a newdev.metaschema.oscal.lib.model.Metadata.Locationinstance with no metadata. -
Location
Constructs a newdev.metaschema.oscal.lib.model.Metadata.Locationinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Location Universally Unique Identifier".A unique ID for the location, for reference.
- Returns:
- the uuid value
-
setUuid
Set the "Location Universally Unique Identifier".A unique ID for the location, for reference.
- Parameters:
value- the uuid value to set
-
getTitle
Get the "Location Title".A name given to the location, which may be used by a tool for display and navigation.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Location Title".A name given to the location, which may be used by a tool for display and navigation.
- Parameters:
value- the title value to set, ornullto clear
-
getAddress
Get the "Address".A postal address for the location.
- Returns:
- the address value, or
nullif not set
-
setAddress
Set the "Address".A postal address for the location.
- Parameters:
value- the address value to set, ornullto clear
-
getEmailAddresses
Get the "Email Address".An email address as defined by RFC 5322 Section 3.4.1.
- Returns:
- the email-address value
-
setEmailAddresses
Set the "Email Address".An email address as defined by RFC 5322 Section 3.4.1.
- Parameters:
value- the email-address value to set
-
addEmailAddress
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeEmailAddress
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTelephoneNumbers
Get the "Telephone Number".A telephone service number as defined by ITU-T E.164.
- Returns:
- the telephone-number value
-
setTelephoneNumbers
Set the "Telephone Number".A telephone service number as defined by ITU-T E.164.
- Parameters:
value- the telephone-number value to set
-
addTelephoneNumber
Add a newTelephoneNumberitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTelephoneNumber
Remove the first matchingTelephoneNumberitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getUrls
Get the "Location URL".The uniform resource locator (URL) for a web site or other resource associated with the location.
- Returns:
- the url value
-
setUrls
Set the "Location URL".The uniform resource locator (URL) for a web site or other resource associated with the location.
- Parameters:
value- the url value to set
-
addUrl
Add a newURIitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeUrl
Remove the first matchingURIitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-