public class PathAnnotations
extends java.lang.Object
Annotations that are associated with a CSDL target path that is a child of a CSDL model element.
Constructor and Description |
---|
PathAnnotations() |
Modifier and Type | Method and Description |
---|---|
Annotation |
getAnnotation(java.lang.String term)
Lookup an existing annotation by term name, or throw an exception if the annotation is not found.
|
AnnotationMap |
getAnnotations()
Return map of annotations for this model element.
|
DataPath |
getPath()
Return CSDL target path.
|
int |
getSourceLine()
Return source line number for this schema element within its defining schema.
|
void |
setPath(DataPath value)
Set CSDL target path.
|
void |
setSourceLine(int value)
Set source line number for this schema element within its defining schema.
|
java.lang.String |
toString() |
public Annotation getAnnotation(java.lang.String term)
Lookup an existing annotation by term name, or throw an exception if the annotation is not found.
PathAnnotations.annotations
and AnnotationMap.get
, for looking up annotations that might not exist.
term
- The term name.public AnnotationMap getAnnotations()
Return map of annotations for this model element. For annotations without qualifiers, the entry key is the annotation term name. For annotations with qualifiers, the entry key is the annotation term name, then "#", then the annotation qualifier.
public DataPath getPath()
Return CSDL target path.
public int getSourceLine()
Return source line number for this schema element within its defining schema.
public void setPath(DataPath value)
Set CSDL target path.
value
- CSDL target path.public void setSourceLine(int value)
Set source line number for this schema element within its defining schema.
value
- Source line number for this schema element within its defining schema.public java.lang.String toString()
toString
in class java.lang.Object