|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.core.domain.SourceInfo
public final class SourceInfo
Contains information about the source the property is defined in.
Field Summary | |
---|---|
static SourceInfo |
EMPTY Reference to the empty source information. |
Constructor Summary | |
---|---|
SourceInfo(String elementTypeName, String elementName, int lineNumber) Default constructor. |
|
SourceInfo(String elementTypeName, String elementName, String lineNumber) Convenience constructor to parse the line number. |
Method Summary | |
---|---|
String |
getElementId() Returns the element identifier that consists of the type and the element name. |
String |
getElementName() Returns the name of the element that defines the property. |
String |
getElementTypeName() Returns the name of the element's type. |
int |
getLineNumber() Returns the line number where the definition of the property begins. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SourceInfo EMPTY
Constructor Detail |
---|
public SourceInfo(String elementTypeName, String elementName, int lineNumber) throws de.smartics.util.lang.BlankArgumentException
elementTypeName
- the name of the element's type.
elementName
- the name of the element that defines the property.
lineNumber
- the line number where the definition of the property begins.
de.smartics.util.lang.BlankArgumentException
- if either
elementTypeName
or
elementName
is blank.
public SourceInfo(String elementTypeName, String elementName, String lineNumber) throws de.smartics.util.lang.BlankArgumentException
elementTypeName
- the name of the element's type.
elementName
- the name of the element that defines the property.
lineNumber
- the line number where the definition of the property begins. If this cannot be parsed as an integer number, the value is set to
-1
.
de.smartics.util.lang.BlankArgumentException
- if either
elementTypeName
or
elementName
is blank.
Method Detail |
---|
public String getElementTypeName()
public String getElementName()
public int getLineNumber()
public String getElementId()
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |