Module dev.metaschema.databind
Class MetapathContext
java.lang.Object
dev.metaschema.databind.model.metaschema.binding.MetapathContext
- All Implemented Interfaces:
IBoundObject
@MetaschemaAssembly(name="metapath-context",
moduleClass=MetaschemaModelModule.class)
public class MetapathContext
extends Object
implements IBoundObject
A binding class for the
metapath-context definition.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.model.metaschema.binding.MetapathContextinstance with no metadata.Constructs a newdev.metaschema.databind.model.metaschema.binding.MetapathContextinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContext(MetapathContext item) Add a newMetapathContextitem to the underlying collection.booleanAdd a newMetaschemaMetapathitem to the underlying collection.Get theconstraintsproperty.Get thecontextproperty.Get themetapathproperty.Get additional Metaschema-related information for the object (i.e., resource location).Get the remarks.booleanremoveContext(MetapathContext item) Remove the first matchingMetapathContextitem from the underlying collection.booleanRemove the first matchingMetaschemaMetapathitem from the underlying collection.voidSet theconstraintsproperty.voidsetContexts(List<MetapathContext> value) Set thecontextproperty.voidsetMetapaths(List<MetaschemaMetapath> value) Set themetapathproperty.voidsetRemarks(Remarks value) Set the remarks.toString()
-
Constructor Details
-
MetapathContext
public MetapathContext()Constructs a newdev.metaschema.databind.model.metaschema.binding.MetapathContextinstance with no metadata. -
MetapathContext
Constructs a newdev.metaschema.databind.model.metaschema.binding.MetapathContextinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
Description copied from interface:IBoundObjectGet additional Metaschema-related information for the object (i.e., resource location).- Specified by:
getMetaschemaDatain interfaceIBoundObject- Returns:
- the Metaschema-related information
-
getMetapaths
Get themetapathproperty.A Metapath expression identifying the model node that the constraints will be applied to.
- Returns:
- the metapath value
-
setMetapaths
Set themetapathproperty.A Metapath expression identifying the model node that the constraints will be applied to.
- Parameters:
value- the metapath value to set
-
addMetapath
Add a newMetaschemaMetapathitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMetapath
Remove the first matchingMetaschemaMetapathitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getConstraints
Get theconstraintsproperty.- Returns:
- the constraints value, or
nullif not set
-
setConstraints
Set theconstraintsproperty.- Parameters:
value- the constraints value to set, ornullto clear
-
getContexts
Get thecontextproperty.- Returns:
- the context value
-
setContexts
Set thecontextproperty.- Parameters:
value- the context value to set
-
addContext
Add a newMetapathContextitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeContext
Remove the first matchingMetapathContextitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
Get the remarks.Any explanatory or helpful information to be provided about the remarks parent.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the remarks.Any explanatory or helpful information to be provided about the remarks parent.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-