org.apache.xmlbeans.XmlNCName类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(9.7k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中org.apache.xmlbeans.XmlNCName类的一些代码示例,展示了XmlNCName类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlNCName类的具体详情如下:
包路径:org.apache.xmlbeans.XmlNCName
类名称:XmlNCName

XmlNCName介绍

[英]Corresponds to the XML Schema xs:Name type. One of the derived types based on xs:string.

This kind of string is the same as the non-colonized strings that are used for XML localnames and prefixes, "my-href.2". It is just a physical string, however, and it should NOT be confused with XmlQName, which is a logical combination of localname and namespace URI.

Convertible to String.
[中]对应于XML模式xs:Name类型。基于xs:string的派生类型之一。
这种字符串与用于XML localname和前缀“my href.2”的非殖民化字符串相同。不过,它只是一个物理字符串,不应与XmlQName混淆,后者是localname和命名空间URI的逻辑组合。
可转换为字符串。

代码示例

代码示例来源:origin: org.n52.security/52n-security-xml-saml2

  1. /**
  2. * Sets (as xml) ith "AssertionIDRef" element
  3. */
  4. public void xsetAssertionIDRefArray(int i, org.apache.xmlbeans.XmlNCName assertionIDRef)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(ASSERTIONIDREF$0, i);
  11. if (target == null)
  12. {
  13. throw new IndexOutOfBoundsException();
  14. }
  15. target.set(assertionIDRef);
  16. }
  17. }

代码示例来源:origin: net.sf.wsag4j/wsag4j-client

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getName() throws ResourceUnavailableException
  5. {
  6. try
  7. {
  8. Element body =
  9. XmlUtils.createElement( WsagConstants.WSRF_GET_RESOURCE_PROPERTY_QNAME, "wsag:Name" );
  10. body.setAttribute( WsagConstants.WSAG_PREFIX_DECLARATION, WsagConstants.NAMESPACE_URI );
  11. Element response = client.invoke( WsagConstants.WSRF_GET_RESOURCE_PROPERTY_ACTION, body );
  12. XmlNCName respDoc =
  13. XmlNCName.Factory.parse( response, new XmlOptions().setLoadReplaceDocumentElement( null ) );
  14. return respDoc.getStringValue();
  15. }
  16. catch ( SoapFault e )
  17. {
  18. throw new ResourceUnavailableException( e );
  19. }
  20. catch ( XmlException e )
  21. {
  22. throw new ResourceUnavailableException( e );
  23. }
  24. }

代码示例来源:origin: org.n52.security/52n-security-xml-saml2

  1. /**
  2. * Sets (as xml) ith "AssertionIDRef" element
  3. */
  4. public void xsetAssertionIDRefArray(int i, org.apache.xmlbeans.XmlNCName assertionIDRef)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(ASSERTIONIDREF$0, i);
  11. if (target == null)
  12. {
  13. throw new IndexOutOfBoundsException();
  14. }
  15. target.set(assertionIDRef);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xb

  1. /**
  2. * Sets (as xml) ith "AssertionIDRef" element
  3. */
  4. public void xsetAssertionIDRefArray(int i, org.apache.xmlbeans.XmlNCName assertionIDRef)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(ASSERTIONIDREF$0, i);
  11. if (target == null)
  12. {
  13. throw new IndexOutOfBoundsException();
  14. }
  15. target.set(assertionIDRef);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xb

  1. /**
  2. * Sets (as xml) ith "AssertionIDRef" element
  3. */
  4. public void xsetAssertionIDRefArray(int i, org.apache.xmlbeans.XmlNCName assertionIDRef)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(ASSERTIONIDREF$0, i);
  11. if (target == null)
  12. {
  13. throw new IndexOutOfBoundsException();
  14. }
  15. target.set(assertionIDRef);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xb

  1. /**
  2. * Sets (as xml) ith "AssertionIDRef" element
  3. */
  4. public void xsetAssertionIDRefArray(int i, org.apache.xmlbeans.XmlNCName assertionIDRef)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(ASSERTIONIDREF$0, i);
  11. if (target == null)
  12. {
  13. throw new IndexOutOfBoundsException();
  14. }
  15. target.set(assertionIDRef);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xml-saml2

  1. /**
  2. * Sets (as xml) ith "AssertionIDRef" element
  3. */
  4. public void xsetAssertionIDRefArray(int i, org.apache.xmlbeans.XmlNCName assertionIDRef)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(ASSERTIONIDREF$0, i);
  11. if (target == null)
  12. {
  13. throw new IndexOutOfBoundsException();
  14. }
  15. target.set(assertionIDRef);
  16. }
  17. }

代码示例来源:origin: net.open-esb.core/wsdl

  1. /**
  2. * Sets (as xml) the "messageLabel" attribute
  3. */
  4. public void xsetMessageLabel(org.apache.xmlbeans.XmlNCName messageLabel)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(MESSAGELABEL$2);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(MESSAGELABEL$2);
  14. }
  15. target.set(messageLabel);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xml-saml2

  1. /**
  2. * Sets (as xml) the "InResponseTo" attribute
  3. */
  4. public void xsetInResponseTo(org.apache.xmlbeans.XmlNCName inResponseTo)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(INRESPONSETO$6);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(INRESPONSETO$6);
  14. }
  15. target.set(inResponseTo);
  16. }
  17. }

代码示例来源:origin: net.open-esb.core/wsdl

  1. /**
  2. * Sets (as xml) the "name" attribute
  3. */
  4. public void xsetName(org.apache.xmlbeans.XmlNCName name)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$4);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$4);
  14. }
  15. target.set(name);
  16. }
  17. }

代码示例来源:origin: net.open-esb.core/wsdl

  1. /**
  2. * Sets (as xml) the "name" attribute
  3. */
  4. public void xsetName(org.apache.xmlbeans.XmlNCName name)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
  14. }
  15. target.set(name);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xml-saml2

  1. /**
  2. * Sets (as xml) the "InResponseTo" attribute
  3. */
  4. public void xsetInResponseTo(org.apache.xmlbeans.XmlNCName inResponseTo)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(INRESPONSETO$10);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(INRESPONSETO$10);
  14. }
  15. target.set(inResponseTo);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xml-secconfig

  1. /**
  2. * Sets (as xml) the "initMethod" attribute
  3. */
  4. public void xsetInitMethod(org.apache.xmlbeans.XmlNCName initMethod)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(INITMETHOD$12);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(INITMETHOD$12);
  14. }
  15. target.set(initMethod);
  16. }
  17. }

代码示例来源:origin: org.n52.security/52n-security-xb

  1. /**
  2. * Sets (as xml) the "class" attribute
  3. */
  4. public void xsetClass1(org.apache.xmlbeans.XmlNCName class1)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(CLASS1$2);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(CLASS1$2);
  14. }
  15. target.set(class1);
  16. }
  17. }

代码示例来源:origin: org.wso2.bpel/ode-bpel-schemas

  1. /**
  2. * Sets (as xml) the "port" attribute
  3. */
  4. public void xsetPort(org.apache.xmlbeans.XmlNCName port)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(PORT$2);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(PORT$2);
  14. }
  15. target.set(port);
  16. }
  17. }
  18. }

代码示例来源:origin: org.n52.sensorweb/52n-xml-sensorML-v20

  1. /**
  2. * Sets (as xml) the "name" attribute
  3. */
  4. public void xsetName(org.apache.xmlbeans.XmlNCName name)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
  14. }
  15. target.set(name);
  16. }
  17. }
  18. }

代码示例来源:origin: org.n52.sensorweb/52n-xml-sensorML-v20

  1. /**
  2. * Sets (as xml) the "name" attribute
  3. */
  4. public void xsetName(org.apache.xmlbeans.XmlNCName name)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
  14. }
  15. target.set(name);
  16. }
  17. }
  18. }

代码示例来源:origin: org.n52.sensorweb/52n-xml-sensorML-v20

  1. /**
  2. * Sets (as xml) the "name" attribute
  3. */
  4. public void xsetName(org.apache.xmlbeans.XmlNCName name)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
  14. }
  15. target.set(name);
  16. }
  17. }
  18. }

代码示例来源:origin: org.n52.sensorweb/52n-xml-sweCommon-v20

  1. /**
  2. * Sets (as xml) the "name" attribute
  3. */
  4. public void xsetName(org.apache.xmlbeans.XmlNCName name)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
  14. }
  15. target.set(name);
  16. }
  17. }
  18. }

代码示例来源:origin: org.n52.sensorweb/52n-xml-sensorML-v20

  1. /**
  2. * Sets (as xml) the "name" attribute
  3. */
  4. public void xsetName(org.apache.xmlbeans.XmlNCName name)
  5. {
  6. synchronized (monitor())
  7. {
  8. check_orphaned();
  9. org.apache.xmlbeans.XmlNCName target = null;
  10. target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$0);
  11. if (target == null)
  12. {
  13. target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$0);
  14. }
  15. target.set(name);
  16. }
  17. }
  18. }

相关文章

XmlNCName类方法