|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.model.xml.impl.ModelInstanceImpl
public class ModelInstanceImpl
An instance of a model
| Field Summary | |
|---|---|
protected DomDocument |
document
|
protected ModelImpl |
model
|
protected ModelBuilder |
modelBuilder
|
| Constructor Summary | |
|---|---|
ModelInstanceImpl(ModelImpl model,
ModelBuilder modelBuilder,
DomDocument document)
|
|
| Method Summary | ||
|---|---|---|
ModelInstance |
clone()
Copies the model instance but not the model. |
|
DomDocument |
getDocument()
Returns the wrapped DomDocument. |
|
ModelElementInstance |
getDocumentElement()
Returns the ModelElement corresponding to the document
element of this model or null if no document element exists. |
|
Model |
getModel()
Returns the underlying model. |
|
|
getModelElementById(String id)
Find a unique element of the model by id. |
|
|
getModelElementsByType(Class<T> referencingClass)
Find all elements of a type. |
|
Collection<ModelElementInstance> |
getModelElementsByType(ModelElementType type)
Find all elements of a type. |
|
|
newInstance(Class<T> type)
Creates a new instance of type class. |
|
|
newInstance(ModelElementType type)
Creates a new instance of type. |
|
ModelElementType |
registerGenericType(String namespaceUri,
String localName)
|
|
void |
setDocumentElement(ModelElementInstance modelElement)
Updates the document element. |
|
ValidationResults |
validate(Collection<ModelElementValidator<?>> validators)
Validate semantic properties of this model instance using a collection of validators. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final DomDocument document
protected ModelImpl model
protected final ModelBuilder modelBuilder
| Constructor Detail |
|---|
public ModelInstanceImpl(ModelImpl model,
ModelBuilder modelBuilder,
DomDocument document)
| Method Detail |
|---|
public DomDocument getDocument()
ModelInstanceDomDocument.
getDocument in interface ModelInstancepublic ModelElementInstance getDocumentElement()
ModelInstanceModelElement corresponding to the document
element of this model or null if no document element exists.
getDocumentElement in interface ModelInstancepublic void setDocumentElement(ModelElementInstance modelElement)
ModelInstance
setDocumentElement in interface ModelInstancemodelElement - the new document element to setpublic <T extends ModelElementInstance> T newInstance(Class<T> type)
ModelInstance
newInstance in interface ModelInstanceT - instance typetype - the class of the type to create
public <T extends ModelElementInstance> T newInstance(ModelElementType type)
ModelInstance
newInstance in interface ModelInstanceT - instance typetype - the type to create
public Model getModel()
ModelInstance
getModel in interface ModelInstance
public ModelElementType registerGenericType(String namespaceUri,
String localName)
public <T extends ModelElementInstance> T getModelElementById(String id)
ModelInstance
getModelElementById in interface ModelInstanceid - the id of the element
public Collection<ModelElementInstance> getModelElementsByType(ModelElementType type)
ModelInstance
getModelElementsByType in interface ModelInstancetype - the type of the elements
public <T extends ModelElementInstance> Collection<T> getModelElementsByType(Class<T> referencingClass)
ModelInstance
getModelElementsByType in interface ModelInstancereferencingClass - the type class of the elements
public ModelInstance clone()
ModelInstance
clone in interface ModelInstanceclone in class Objectpublic ValidationResults validate(Collection<ModelElementValidator<?>> validators)
ModelInstanceValidationResults
object which is returned by this method.
validate in interface ModelInstancevalidators - the validators to execute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||