public class AnnotationMapping
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationMapping.FromDataModel |
Modifier and Type | Field and Description |
---|---|
java.util.List<AnnotationTarget> |
annotationTarget |
java.lang.String |
context |
java.lang.String |
dataModelClass |
java.lang.String |
dataModelProperty |
java.lang.String |
dataModelState |
static boolean |
DEFAULT_PATTERN_MATCH |
protected AnnotationMapping.FromDataModel |
fromDataModel |
java.lang.String |
name |
boolean |
patternMatch |
Constructor and Description |
---|
AnnotationMapping() |
AnnotationMapping(AnnotationMapping o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this AnnotationMapping.
|
static AnnotationMapping |
fromString(java.lang.String s)
String representation of this AnnotationMapping.
|
java.util.List<AnnotationTarget> |
getAnnotationTarget() |
java.lang.String |
getContext()
Optional input context restricting the mapping from the annotations coming from a specific context.
|
java.lang.String |
getDataModelClass()
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelClass that generated this annotation mapping. |
java.lang.String |
getDataModelProperty()
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelProperty that generated this annotation mapping. |
java.lang.String |
getDataModelState()
Is this annotation target managed by a data model?
|
AnnotationMapping.FromDataModel |
getFromDataModel() |
java.lang.String |
getName()
Name of the SemanticAnnotation to map.
|
boolean |
isPatternMatch()
Matches all annotations matching this pattern (must be a valid regular expression).
|
AnnotationMapping |
makeCopy()
Creates and returns a deep copy of this AnnotationMapping.
|
static AnnotationMapping |
readFrom(java.io.InputStream is)
Read this AnnotationMapping from an XML fragment.
|
void |
setContext(java.lang.String context)
Optional input context restricting the mapping from the annotations coming from a specific context.
|
void |
setDataModelClass(java.lang.String dataModelClass)
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelClass that generated this annotation mapping. |
void |
setDataModelProperty(java.lang.String dataModelProperty)
If dataModelState is "auto" or "customized", you will find here the
name of the DataModelProperty that generated this annotation mapping. |
void |
setDataModelState(java.lang.String dataModelState)
Is this annotation target managed by a data model?
|
void |
setFromDataModel(AnnotationMapping.FromDataModel __value) |
void |
setName(java.lang.String name)
Name of the SemanticAnnotation to map.
|
void |
setPatternMatch(boolean patternMatch)
Matches all annotations matching this pattern (must be a valid regular expression).
|
java.lang.String |
toString()
String representation of this AnnotationMapping.
|
AnnotationMapping |
withAnnotationTarget(AnnotationTarget... __values) |
AnnotationMapping |
withAnnotationTarget(java.util.Collection<AnnotationTarget> __values) |
AnnotationMapping |
withContext(java.lang.String context) |
AnnotationMapping |
withDataModelClass(java.lang.String dataModelClass) |
AnnotationMapping |
withDataModelProperty(java.lang.String dataModelProperty) |
AnnotationMapping |
withDataModelState(java.lang.String dataModelState) |
AnnotationMapping |
withName(java.lang.String name) |
AnnotationMapping |
withPatternMatch(boolean patternMatch) |
AnnotationMapping |
withPatternMatch(java.lang.Boolean patternMatch) |
void |
writeTo(java.io.OutputStream os)
Write this AnnotationMapping as an XML fragment
|
public java.util.List<AnnotationTarget> annotationTarget
public java.lang.String name
public java.lang.String context
public boolean patternMatch
public static final boolean DEFAULT_PATTERN_MATCH
public java.lang.String dataModelState
protected AnnotationMapping.FromDataModel fromDataModel
public java.lang.String dataModelClass
public java.lang.String dataModelProperty
public AnnotationMapping()
public AnnotationMapping(AnnotationMapping o)
public java.util.List<AnnotationTarget> getAnnotationTarget()
public AnnotationMapping withAnnotationTarget(AnnotationTarget... __values)
public AnnotationMapping withAnnotationTarget(java.util.Collection<AnnotationTarget> __values)
public void setName(java.lang.String name)
public java.lang.String getName()
public AnnotationMapping withName(java.lang.String name)
public void setContext(java.lang.String context)
public java.lang.String getContext()
public AnnotationMapping withContext(java.lang.String context)
public void setPatternMatch(boolean patternMatch)
public boolean isPatternMatch()
public AnnotationMapping withPatternMatch(boolean patternMatch)
public AnnotationMapping withPatternMatch(java.lang.Boolean patternMatch)
public void setDataModelState(java.lang.String dataModelState)
public java.lang.String getDataModelState()
public AnnotationMapping withDataModelState(java.lang.String dataModelState)
public AnnotationMapping.FromDataModel getFromDataModel()
public void setFromDataModel(AnnotationMapping.FromDataModel __value)
public void setDataModelClass(java.lang.String dataModelClass)
public java.lang.String getDataModelClass()
public AnnotationMapping withDataModelClass(java.lang.String dataModelClass)
public void setDataModelProperty(java.lang.String dataModelProperty)
public java.lang.String getDataModelProperty()
public AnnotationMapping withDataModelProperty(java.lang.String dataModelProperty)
public AnnotationMapping makeCopy()
public static AnnotationMapping readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static AnnotationMapping fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.