com.altova.mapforce.MFProcessingInstruction Maven / Gradle / Ivy
/**
* MFElement.java
*
* This file was generated by MapForce 2017sp2.
*
* YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
* OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
*
* Refer to the MapForce Documentation for further details.
* http://www.altova.com/mapforce
*/
package com.altova.mapforce;
import javax.xml.namespace.QName;
public class MFProcessingInstruction implements IMFNode
{
private String content;
private String name;
public MFProcessingInstruction(String content, String name)
{
this.content = content;
this.name = name;
}
public int getNodeKind() { return MFNodeKind_ProcessingInstruction; }
public String getLocalName() {return name; }
public String getNamespaceURI() { return ""; }
public String getPrefix() { return ""; }
public String getNodeName() { return "ProcessingInstruction"; }
public QName getQName() { return new QName("", ""); }
public IEnumerable select(int mfQueryKind, Object query) { return new MFSingletonSequence(content); }
public String value() throws Exception { return content; }
public QName qnameValue() { return null; }
public Object typedValue() throws Exception
{
return MFNode.collectTypedValue(select(IMFNode.MFQueryKind_AllChildren, null));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy