public abstract class ModelObject extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
END_COLUMN
The end column in the document at which the issue has been detected.
|
static String |
END_LINE
The end line in the document at which the issue has been detected.
|
static String |
END_POSITION
The end position in the document at which the issue has been detected.
|
static String |
RESOURCE_URL
The optional resource URL associated with the issue.
|
static String |
START_COLUMN
The start column in the document at which the issue has been detected.
|
static String |
START_LINE
The start line in the document at which the issue has been detected.
|
static String |
START_POSITION
The start position in the document at which the issue has been detected.
|
| Constructor and Description |
|---|
ModelObject()
This is the default constructor for the model object.
|
ModelObject(ModelObject obj)
This is the copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
derivedFrom(ModelObject modelObj)
This method establishes the necessary information to
indicate that the current model object is derived
from the supplied source model object.
|
Module |
getModule()
This method returns the protocol model in which this
object is contained.
|
ModelObject |
getParent()
This method returns the parent of this
model object.
|
<T extends ModelObject> |
getParent(Class<T> type)
This method returns the parent with the specified type.
|
Map<String,Object> |
getProperties()
This method returns the properties associated
with this model object.
|
protected static void |
indent(StringBuffer buf,
int level)
This method indents the text.
|
void |
setParent(ModelObject parent)
This method sets the parent model object.
|
abstract void |
toText(StringBuffer buf,
int level)
This method generates a text representation of the protocol component.
|
abstract void |
visit(Visitor visitor)
This method visits the model object using the supplied
visitor.
|
public static final String START_LINE
public static final String START_COLUMN
public static final String END_LINE
public static final String END_COLUMN
public static final String START_POSITION
public static final String END_POSITION
public static final String RESOURCE_URL
public ModelObject()
public ModelObject(ModelObject obj)
obj - The object to copypublic ModelObject getParent()
public <T extends ModelObject> T getParent(Class<T> type)
type - The class of the required parentpublic void setParent(ModelObject parent)
parent - The parentpublic void derivedFrom(ModelObject modelObj)
modelObj - The source model objectpublic Map<String,Object> getProperties()
public Module getModule()
public abstract void visit(Visitor visitor)
visitor - The visitorpublic abstract void toText(StringBuffer buf, int level)
buf - The text bufferlevel - The indentation level, if relevantprotected static void indent(StringBuffer buf, int level)
buf - The bufferlevel - The indentation levelCopyright © 2014. All Rights Reserved.