本文整理汇总了Java中org.w3c.dom.Node.getNodeName方法的典型用法代码示例。如果您正苦于以下问题:Java Node.getNodeName方法的具体用法?Java Node.getNodeName怎么用?Java Node.getNodeName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.w3c.dom.Node
的用法示例。
在下文中一共展示了Node.getNodeName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: KalturaYahooSyndicationFeed
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaYahooSyndicationFeed(Element node) throws KalturaApiException {
super(node);
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("category")) {
this.category = KalturaYahooSyndicationFeedCategories.get(ParseUtils.parseString(txt));
continue;
} else if (nodeName.equals("adultContent")) {
this.adultContent = KalturaYahooSyndicationFeedAdultValues.get(ParseUtils.parseString(txt));
continue;
} else if (nodeName.equals("feedDescription")) {
this.feedDescription = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("feedLandingPage")) {
this.feedLandingPage = ParseUtils.parseString(txt);
continue;
}
}
}
示例2: KalturaContentDistributionSearchItem
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaContentDistributionSearchItem(Element node) throws KalturaApiException {
super(node);
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("noDistributionProfiles")) {
this.noDistributionProfiles = ParseUtils.parseBool(txt);
continue;
} else if (nodeName.equals("distributionProfileId")) {
this.distributionProfileId = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("distributionSunStatus")) {
this.distributionSunStatus = KalturaEntryDistributionSunStatus.get(ParseUtils.parseInt(txt));
continue;
} else if (nodeName.equals("entryDistributionFlag")) {
this.entryDistributionFlag = KalturaEntryDistributionFlag.get(ParseUtils.parseInt(txt));
continue;
} else if (nodeName.equals("entryDistributionStatus")) {
this.entryDistributionStatus = KalturaEntryDistributionStatus.get(ParseUtils.parseInt(txt));
continue;
} else if (nodeName.equals("hasEntryDistributionValidationErrors")) {
this.hasEntryDistributionValidationErrors = ParseUtils.parseBool(txt);
continue;
} else if (nodeName.equals("entryDistributionValidationErrors")) {
this.entryDistributionValidationErrors = ParseUtils.parseString(txt);
continue;
}
}
}
示例3: KalturaFlavorParamsOutputBaseFilter
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaFlavorParamsOutputBaseFilter(Element node) throws KalturaApiException {
super(node);
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("flavorParamsIdEqual")) {
this.flavorParamsIdEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("flavorParamsVersionEqual")) {
this.flavorParamsVersionEqual = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("flavorAssetIdEqual")) {
this.flavorAssetIdEqual = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("flavorAssetVersionEqual")) {
this.flavorAssetVersionEqual = ParseUtils.parseString(txt);
continue;
}
}
}
示例4: getBean
import org.w3c.dom.Node; //导入方法依赖的package包/类
public static Node getBean(Node tag) {
if (tag == null) {
return null;
}
if (tag.getNodeName().equals(BeansElements.BEAN)) {
return tag;
}
if (tag.getNodeName().equals(BeansElements.LOOKUP_METHOD)
|| tag.getNodeName().equals(BeansElements.REPLACED_METHOD)
|| tag.getNodeName().equals(BeansElements.PROPERTY)) {
Node parent = tag.getParentNode();
if (parent != null // to prevent NPE in case the node has just been created and not yet added to the tree
&& parent.getNodeName() != null // in cases that parent node is without node name (see #202319)
&& parent.getNodeName().equals(BeansElements.BEAN)) { // NOI18N
return parent;
} else {
return null;
}
}
return null;
}
示例5: KalturaBaseSyndicationFeedListResponse
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaBaseSyndicationFeedListResponse(Element node) throws KalturaApiException {
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("objects")) {
this.objects = ParseUtils.parseArray(KalturaBaseSyndicationFeed.class, aNode);
continue;
} else if (nodeName.equals("totalCount")) {
this.totalCount = ParseUtils.parseInt(txt);
continue;
}
}
}
开发者ID:ITYug,项目名称:kaltura-ce-sakai-extension,代码行数:16,代码来源:KalturaBaseSyndicationFeedListResponse.java
示例6: Title
import org.w3c.dom.Node; //导入方法依赖的package包/类
Title(Node root) {
NodeList body = root.getChildNodes();
for (int item = 0; item < body.getLength(); item++) {
Node node = body.item(item);
switch (node.getNodeName()) {
case "p":
paragraphs.add(new P(node));
break;
}
}
}
示例7: KalturaAdCuePointBaseFilter
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaAdCuePointBaseFilter(Element node) throws KalturaApiException {
super(node);
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("protocolTypeEqual")) {
this.protocolTypeEqual = KalturaAdProtocolType.get(ParseUtils.parseString(txt));
continue;
} else if (nodeName.equals("protocolTypeIn")) {
this.protocolTypeIn = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("titleLike")) {
this.titleLike = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("titleMultiLikeOr")) {
this.titleMultiLikeOr = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("titleMultiLikeAnd")) {
this.titleMultiLikeAnd = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("endTimeGreaterThanOrEqual")) {
this.endTimeGreaterThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("endTimeLessThanOrEqual")) {
this.endTimeLessThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("durationGreaterThanOrEqual")) {
this.durationGreaterThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("durationLessThanOrEqual")) {
this.durationLessThanOrEqual = ParseUtils.parseInt(txt);
continue;
}
}
}
示例8: KalturaPermissionItem
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaPermissionItem(Element node) throws KalturaApiException {
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("id")) {
this.id = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("type")) {
this.type = KalturaPermissionItemType.get(ParseUtils.parseString(txt));
continue;
} else if (nodeName.equals("partnerId")) {
this.partnerId = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("tags")) {
this.tags = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("createdAt")) {
this.createdAt = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("updatedAt")) {
this.updatedAt = ParseUtils.parseInt(txt);
continue;
}
}
}
示例9: computeXPath
import org.w3c.dom.Node; //导入方法依赖的package包/类
private void computeXPath(Node node,XPathGridRow xPathGridRow,String computedXpath,List<GridRow> schemaRecords,String loopXPathQuery) {
org.w3c.dom.NodeList nodeList=node.getChildNodes();
if(!hasChild(node)){
xPathGridRow.setXPath(computedXpath+node.getNodeName());
if(StringUtils.isNotBlank(loopXPathQuery)){
xPathGridRow.setAbsolutexPath(loopXPathQuery+Path.SEPARATOR+xPathGridRow.getXPath());
}else{
xPathGridRow.setAbsolutexPath(xPathGridRow.getXPath());
}
schemaRecords.add(xPathGridRow);
}else{
computedXpath=computedXpath+node.getNodeName()+Path.SEPARATOR;
for(int i=0;i<nodeList.getLength();i++){
Node nod = nodeList.item(i);
if(nod.getNodeType()==Node.ELEMENT_NODE){
XPathGridRow xPathGridRowChild=new XPathGridRow();
String fieldName=nod.getNodeName();
if(fieldName.contains(":")){
fieldName=fieldName.split(":")[1];
}
xPathGridRowChild.setFieldName(fieldName);
addDataTypeToGridRow(nod,xPathGridRowChild);
xPathGridRowChild.setDateFormat("");
xPathGridRowChild.setPrecision("");
xPathGridRowChild.setScale("");
xPathGridRowChild.setScaleType(Integer.valueOf(Constants.DEFAULT_INDEX_VALUE_FOR_COMBOBOX));
xPathGridRowChild.setDescription("");
computeXPath(nod,xPathGridRowChild,computedXpath,schemaRecords,loopXPathQuery);
}
}
}
}
示例10: getLocalName
import org.w3c.dom.Node; //导入方法依赖的package包/类
/**
* Get the local name of the specified node.
* @param node node to check
* @return String local name
*/
public static String getLocalName(Node node) {
String localName = node.getLocalName();
if (localName != null) {
return localName;
}
String name = node.getNodeName();
int index = name.lastIndexOf(':');
return index < 0 ? name : name.substring(index + 1);
}
示例11: KalturaDistributionValidationErrorMissingThumbnail
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaDistributionValidationErrorMissingThumbnail(Element node) throws KalturaApiException {
super(node);
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
if (nodeName.equals("dimensions")) {
this.dimensions = ParseUtils.parseObject(KalturaDistributionThumbDimensions.class, aNode);
continue;
}
}
}
开发者ID:ITYug,项目名称:kaltura-ce-sakai-extension,代码行数:13,代码来源:KalturaDistributionValidationErrorMissingThumbnail.java
示例12: KalturaFeatureStatus
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaFeatureStatus(Element node) throws KalturaApiException {
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("type")) {
this.type = KalturaFeatureStatusType.get(ParseUtils.parseInt(txt));
continue;
} else if (nodeName.equals("value")) {
this.value = ParseUtils.parseInt(txt);
continue;
}
}
}
示例13: parseDimension
import org.w3c.dom.Node; //导入方法依赖的package包/类
private static void parseDimension(SvgTree avg, Node nNode) {
NamedNodeMap a = nNode.getAttributes();
int len = a.getLength();
for (int i = 0; i < len; i++) {
Node n = a.item(i);
String name = n.getNodeName();
String value = n.getNodeValue();
int subStringSize = value.length();
if (subStringSize > 2) {
if (value.endsWith("px")) {
subStringSize = subStringSize - 2;
}
}
if (SVG_WIDTH.equals(name)) {
avg.w = Float.parseFloat(value.substring(0, subStringSize));
} else if (SVG_HEIGHT.equals(name)) {
avg.h = Float.parseFloat(value.substring(0, subStringSize));
} else if (SVG_VIEW_BOX.equals(name)) {
avg.viewBox = new float[4];
String[] strbox = value.split(" ");
for (int j = 0; j < avg.viewBox.length; j++) {
avg.viewBox[j] = Float.parseFloat(strbox[j]);
}
}
}
if (avg.viewBox == null && avg.w != 0 && avg.h != 0) {
avg.viewBox = new float[4];
avg.viewBox[2] = avg.w;
avg.viewBox[3] = avg.h;
}
}
示例14: KalturaCEError
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaCEError(Element node) throws KalturaApiException {
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("id")) {
this.id = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("partnerId")) {
this.partnerId = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("browser")) {
this.browser = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("serverIp")) {
this.serverIp = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("serverOs")) {
this.serverOs = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("phpVersion")) {
this.phpVersion = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("ceAdminEmail")) {
this.ceAdminEmail = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("type")) {
this.type = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("description")) {
this.description = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("data")) {
this.data = ParseUtils.parseString(txt);
continue;
}
}
}
示例15: KalturaAssetBaseFilter
import org.w3c.dom.Node; //导入方法依赖的package包/类
public KalturaAssetBaseFilter(Element node) throws KalturaApiException {
super(node);
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node aNode = childNodes.item(i);
String nodeName = aNode.getNodeName();
String txt = aNode.getTextContent();
if (nodeName.equals("idEqual")) {
this.idEqual = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("idIn")) {
this.idIn = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("entryIdEqual")) {
this.entryIdEqual = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("entryIdIn")) {
this.entryIdIn = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("partnerIdEqual")) {
this.partnerIdEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("partnerIdIn")) {
this.partnerIdIn = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("sizeGreaterThanOrEqual")) {
this.sizeGreaterThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("sizeLessThanOrEqual")) {
this.sizeLessThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("tagsLike")) {
this.tagsLike = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("tagsMultiLikeOr")) {
this.tagsMultiLikeOr = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("tagsMultiLikeAnd")) {
this.tagsMultiLikeAnd = ParseUtils.parseString(txt);
continue;
} else if (nodeName.equals("createdAtGreaterThanOrEqual")) {
this.createdAtGreaterThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("createdAtLessThanOrEqual")) {
this.createdAtLessThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("updatedAtGreaterThanOrEqual")) {
this.updatedAtGreaterThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("updatedAtLessThanOrEqual")) {
this.updatedAtLessThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("deletedAtGreaterThanOrEqual")) {
this.deletedAtGreaterThanOrEqual = ParseUtils.parseInt(txt);
continue;
} else if (nodeName.equals("deletedAtLessThanOrEqual")) {
this.deletedAtLessThanOrEqual = ParseUtils.parseInt(txt);
continue;
}
}
}