public class MetaModel extends Object
Constructor and Description |
---|
MetaModel(com.eviware.soapui.impl.wsdl.support.soap.SoapVersion soapVersion,
String name) |
MetaModel(com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext context,
String name) |
Modifier and Type | Method and Description |
---|---|
MetaModel |
addAnyAttribute(QName name)
Add an attribute that is not in the schema to this element.
|
MetaModel |
addAnyElement(QName name)
Add an element that is not in the schema to this element.
|
MetaModel |
addAttribute(QName name,
org.apache.xmlbeans.SchemaType stype)
Add an attribute to this element.
|
void |
addAttributeWildcard()
Indicate that attributes that are not in the schema can be added
dynamically.
|
MetaModel |
addElement(QName name) |
MetaModel |
addElement(String localpart) |
void |
addElementWildcard()
Indicate that elements that are not in the schema can be added
dynamically.
|
void |
addMetaModelListener(MetaModelListener listener) |
String |
buildTree() |
boolean |
canDiscardValues() |
boolean |
canSetDestination(Object object) |
boolean |
canSetSource(MetaModel sourceModel) |
boolean |
canSetValueForNewElements() |
MetaModel |
findAttribute(String attributeName) |
MetaModel |
findBestChild(QName aName) |
MetaModel |
findChild(QName aName) |
MetaModel |
findChild(String namespace,
String localName) |
MetaModel |
findElement(String namespaceURI,
String localName) |
MetaModel |
findLocalname(String localName) |
MetaModel |
getBody()
Find the metamodel for the Body, if this is the metamodel for the Request
or Response.
|
Collection<MetaModel> |
getChildren() |
Collection<MetaModel> |
getChildrenWithRecursion() |
MetaModel |
getDestination() |
String |
getEndTag() |
MetaModel |
getHeader()
Find the metamodel for the Header, if this is the metamodel for the
Request or Response.
|
String |
getLocalName() |
MetaModel |
getParent() |
String |
getPath() |
QName |
getQName()
This may be null for
|
org.apache.xmlbeans.SchemaType |
getSchemaType() |
MetaModel |
getSource() |
String |
getStartTag() |
String |
getValueForNewElements() |
boolean |
hasAttributeWildcard()
Check if this element can add any attribute dynamically.
|
boolean |
hasElementWildcard()
Check if this element can add any element dynamically.
|
boolean |
isAny()
Check if this attribute or element was added dynamically or from the
schema.
|
boolean |
isAttribute() |
boolean |
isCopyTransformation()
Is this whole tree a copy transformation?
|
boolean |
isDestinationComplete() |
boolean |
isDiscardValues() |
boolean |
isElement() |
boolean |
isHeader() |
boolean |
isReadOnly() |
boolean |
isSourceComplete() |
boolean |
isStandardNode()
Check if this is a standard attribute like "xmlns:.." or "xsi:..." or a
standard element like soapenv:Header.
|
boolean |
isVisible() |
boolean |
qnameIsHeader(QName qname) |
void |
removeMetaModelListener(MetaModelListener listener) |
void |
setDestination(MetaModel dest) |
void |
setDestinationTree(MetaModel dest) |
void |
setDestinationTreeDefaultTransformation(MetaModel dest) |
void |
setDiscardValues() |
void |
setReadOnly(boolean b) |
void |
setRecursiveParent(MetaModel recursive)
Set a recursive reference to the "same" element higher up in the
hierarchy.
|
void |
setSchemaType(org.apache.xmlbeans.SchemaType stype) |
void |
setValueForNewElements(String valueForNewElements) |
void |
setVisible(boolean visible) |
String |
toString() |
String |
transformXPath(String pathOrQuery)
Transform an xpath to the schema that is mapped by the current
transformation.
|
public MetaModel(com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext context, String name)
public MetaModel(com.eviware.soapui.impl.wsdl.support.soap.SoapVersion soapVersion, String name)
public void setVisible(boolean visible)
public boolean isVisible()
public void setReadOnly(boolean b)
public boolean isReadOnly()
public String getValueForNewElements()
public void setValueForNewElements(String valueForNewElements)
public boolean canSetValueForNewElements()
public String getStartTag()
public String getEndTag()
public void setSchemaType(org.apache.xmlbeans.SchemaType stype)
public org.apache.xmlbeans.SchemaType getSchemaType()
public QName getQName()
public String getLocalName()
public String buildTree()
public void addElementWildcard()
public boolean hasElementWildcard()
public void addAttributeWildcard()
public boolean hasAttributeWildcard()
public MetaModel addAnyElement(QName name)
public MetaModel addAnyAttribute(QName name)
public void setRecursiveParent(MetaModel recursive)
recursive
.recursive
- public MetaModel addAttribute(QName name, org.apache.xmlbeans.SchemaType stype)
public MetaModel getBody()
soapVersion
- public MetaModel getHeader()
soapVersion
- public MetaModel getParent()
public Collection<MetaModel> getChildren()
public Collection<MetaModel> getChildrenWithRecursion()
public boolean isAttribute()
public boolean isElement()
public boolean isAny()
true
if the node was found dynamically in a
request or response, false
if the node was found in
the schema.public boolean isHeader()
public boolean qnameIsHeader(QName qname)
public boolean isStandardNode()
public boolean canSetSource(MetaModel sourceModel)
public boolean canSetDestination(Object object)
public void setDestination(MetaModel dest)
public void setDiscardValues()
public boolean canDiscardValues()
public boolean isDiscardValues()
public MetaModel getSource()
public MetaModel getDestination()
public boolean isCopyTransformation()
public void setDestinationTreeDefaultTransformation(MetaModel dest)
public void setDestinationTree(MetaModel dest)
public boolean isDestinationComplete()
public boolean isSourceComplete()
public String transformXPath(String pathOrQuery)
pathOrQuery
- public String getPath()
public void addMetaModelListener(MetaModelListener listener)
public void removeMetaModelListener(MetaModelListener listener)
Copyright © 2019. All rights reserved.