public class NodeImportXmlHandler.ImportElement extends Object
NodeImportXmlHandler.startElement(String, String, String, Attributes)
and a
NodeImportXmlHandler.endElement(String, String, String)
event.Type | Property and Description |
---|---|
protected boolean |
looksLike
Returns whether this element entry looks (at this point) like a property element: either it has no properties or has
just one
NodeImportXmlHandler.propertyTypeAttribute type attribute. |
Modifier | Constructor and Description |
---|---|
protected |
ImportElement(NodeImportXmlHandler.ImportElement parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
addProperty(String propertyName,
String propertyValue,
PropertyType jcrPropertyType) |
List<String> |
getMixins()
Returns the list of mixins of the import element, which should translate to the mixins of a jcr node.
|
String |
getName()
Returns the name of the import element, which should translate to the name of a jcr node.
|
Path |
getPath()
Returns the path of this import element, which translates to the path of the jcr node.
|
Multimap<String,String> |
getProperties()
Returns the imported element's properties.
|
PropertyType |
getPropertyType(String propertyName)
Returns the JCR property type of the property with the given name.
|
String |
getType()
Returns the name of the import element, which should translate to the type of a jcr node.
|
protected boolean |
looksLikeProperty()
Returns whether this element entry looks (at this point) like a property element: either it has no properties or has
just one
NodeImportXmlHandler.propertyTypeAttribute type attribute. |
protected void |
setName(String name) |
protected void |
setPropertyOnParent(String value) |
protected void |
setType(String type) |
String |
toString() |
protected final boolean looksLikeProperty
NodeImportXmlHandler.propertyTypeAttribute
type attribute.protected ImportElement(NodeImportXmlHandler.ImportElement parent)
protected final boolean looksLikeProperty()
NodeImportXmlHandler.propertyTypeAttribute
type attribute.protected void setName(String name)
protected void setType(String type)
protected void addProperty(String propertyName, String propertyValue, PropertyType jcrPropertyType)
protected void setPropertyOnParent(String value)
public String getName()
String
public String getType()
String
public List<String> getMixins()
List
public Multimap<String,String> getProperties()
Multimap
public PropertyType getPropertyType(String propertyName)
propertyName
- a String
the name of a property; never nullPropertyType
representing the JCR type of the property or null
if the no property with the given name was parsed.public Path getPath()
Path
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.