public class NonPersistentMetaData extends Object implements Comparable, SourceTracker, Commentable, MetaDataContext, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_NON_MAPPED_INTERFACE |
static int |
TYPE_PERSISTENCE_AWARE |
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML
EMPTY_COMMENTS
Modifier | Constructor and Description |
---|---|
protected |
NonPersistentMetaData(Class cls,
MetaDataRepository repos,
int type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
int |
getColNumber()
Return the column number in the line of the file at which this
instance was parsed.
|
String[] |
getComments()
Return comments, or empty array if none.
|
Class |
getDescribedType()
Persistence-aware type.
|
int |
getLineNumber()
Return the line number of the file at which this instance was parsed.
|
int |
getListingIndex()
The index in which this class was listed in the metadata.
|
MetaDataRepository |
getRepository()
Owning repository.
|
String |
getResourceName()
Return the domain-meaningful name of the resource that was loaded
from this source.
|
File |
getSourceFile()
Return the file from which this instance was parsed.
|
Object |
getSourceScope()
Return the domain-dependent scope of this instance within its file.
|
int |
getSourceType()
Return the type of source.
|
int |
getType()
The type of metadata.
|
void |
setColNumber(int colNum) |
void |
setComments(String[] comments)
Set comments.
|
void |
setLineNumber(int lineNum) |
void |
setListingIndex(int index)
The index in which this field was listed in the metadata.
|
void |
setSource(File file,
int srcType) |
public static final int TYPE_PERSISTENCE_AWARE
public static final int TYPE_NON_MAPPED_INTERFACE
protected NonPersistentMetaData(Class cls, MetaDataRepository repos, int type)
public MetaDataRepository getRepository()
getRepository
in interface MetaDataContext
public Class getDescribedType()
public int getType()
public int getListingIndex()
-1
if this class was not listed in the metadata.public void setListingIndex(int index)
-1
if this class was not listed in the metadata.public File getSourceFile()
SourceTracker
getSourceFile
in interface SourceTracker
public Object getSourceScope()
SourceTracker
getSourceScope
in interface SourceTracker
public int getSourceType()
SourceTracker
getSourceType
in interface SourceTracker
public void setSource(File file, int srcType)
public int getLineNumber()
SourceTracker
getLineNumber
in interface SourceTracker
public void setLineNumber(int lineNum)
public int getColNumber()
SourceTracker
getColNumber
in interface SourceTracker
public void setColNumber(int colNum)
public String getResourceName()
SourceTracker
getResourceName
in interface SourceTracker
public String[] getComments()
Commentable
getComments
in interface Commentable
public void setComments(String[] comments)
Commentable
setComments
in interface Commentable
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.