本文整理汇总了C#中org类的典型用法代码示例。如果您正苦于以下问题:C# org类的具体用法?C# org怎么用?C# org使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
org类属于命名空间,在下文中一共展示了org类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: frmResult
public frmResult(IITTrackCollection selectedTracks, org.lyricwiki.LyricWiki lyricsWiki, Boolean overwrite)
: this()
{
this.m_selectedTracks = selectedTracks;
this.m_lyricsWiki = lyricsWiki;
this.m_overwrite = overwrite;
}
示例2: asAttributeSet
public static global::android.util.AttributeSet asAttributeSet(org.xmlpull.v1.XmlPullParser arg0)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::android.util.Xml._m6.native == global::System.IntPtr.Zero)
global::android.util.Xml._m6 = @__env.GetStaticMethodIDNoThrow(global::android.util.Xml.staticClass, "asAttributeSet", "(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;");
return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::android.util.AttributeSet>(@__env.CallStaticObjectMethod(android.util.Xml.staticClass, global::android.util.Xml._m6, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as android.util.AttributeSet;
}
示例3: inflate
public override void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser
parser, android.util.AttributeSet attrs)
{
base.inflate(r, parser, attrs);
int type;
android.content.res.TypedArray a = r.obtainAttributes(attrs, [email protected]
styleable.ClipDrawable);
int orientation = a.getInt([email protected]_clipOrientation
, HORIZONTAL);
int g = a.getInt([email protected]_gravity, android.view.Gravity
.LEFT);
android.graphics.drawable.Drawable dr = a.getDrawable([email protected]
.ClipDrawable_drawable);
a.recycle();
int outerDepth = parser.getDepth();
while ((type = parser.next()) != org.xmlpull.v1.XmlPullParserClass.END_DOCUMENT &&
(type != org.xmlpull.v1.XmlPullParserClass.END_TAG || parser.getDepth() > outerDepth
))
{
if (type != org.xmlpull.v1.XmlPullParserClass.START_TAG)
{
continue;
}
dr = android.graphics.drawable.Drawable.createFromXmlInner(r, parser, attrs);
}
if (dr == null)
{
throw new System.ArgumentException("No drawable specified for <clip>");
}
mClipState.mDrawable = dr;
mClipState.mOrientation = orientation;
mClipState.mGravity = g;
dr.setCallback(this);
}
示例4: CompletarWS
public void CompletarWS(org.dyndns.cedweb.consulta.ConsultarResult lc)
{
if (lc.comprobante[0].resumen.impuestos != null)
{
impuestos = new System.Collections.Generic.List<FeaEntidades.InterFacturas.resumenImpuestos>();
foreach (org.dyndns.cedweb.consulta.ConsultarResultComprobanteResumenImpuestos imp in lc.comprobante[0].resumen.impuestos)
{
if (imp.importe_impuesto_moneda_origenSpecified)
{
imp.importe_impuesto = imp.importe_impuesto_moneda_origen;
}
FeaEntidades.InterFacturas.resumenImpuestos ri = new FeaEntidades.InterFacturas.resumenImpuestos();
ri.codigo_impuesto = imp.codigo_impuesto;
ri.codigo_jurisdiccion = imp.codigo_jurisdiccion;
ri.codigo_jurisdiccionSpecified = imp.codigo_jurisdiccionSpecified;
ri.descripcion = imp.descripcion;
ri.importe_impuesto = imp.importe_impuesto;
ri.importe_impuesto_moneda_origen = imp.importe_impuesto_moneda_origen;
ri.importe_impuesto_moneda_origenSpecified = imp.importe_impuesto_moneda_origenSpecified;
ri.jurisdiccion_municipal = imp.jurisdiccion_municipal;
ri.porcentaje_impuesto = imp.porcentaje_impuesto;
ri.porcentaje_impuestoSpecified = imp.porcentaje_impuestoSpecified;
impuestos.Add(ri);
}
if (impuestos.Count.Equals(0))
{
impuestos.Add(new FeaEntidades.InterFacturas.resumenImpuestos());
}
impuestosGridView.DataSource = impuestos;
impuestosGridView.DataBind();
ViewState["impuestos"] = impuestos;
}
}
示例5: add
public virtual void add(org.openrdf.model.Statement s, params org.openrdf.model.Resource[] rarr)
{
IEnumerable<Uri> contexts = rarr.ToContexts(this._mapping);
Graph g = new Graph();
g.Assert(SesameConverter.FromSesame(s, this._mapping));
this.AddInternal(g, contexts);
}
示例6: xdrEncode
/// <summary>
/// Encodes -- that is: serializes -- the result of a PMAP_DUMP operationg
/// into a XDR stream.
/// </summary>
/// <remarks>
/// Encodes -- that is: serializes -- the result of a PMAP_DUMP operationg
/// into a XDR stream.
/// </remarks>
/// <exception cref="OncRpcException">if an ONC/RPC error occurs.</exception>
/// <exception cref="System.IO.IOException">if an I/O error occurs.</exception>
/// <exception cref="org.acplt.oncrpc.OncRpcException"></exception>
public virtual void xdrEncode(org.acplt.oncrpc.XdrEncodingStream xdr)
{
if (servers == null)
{
xdr.xdrEncodeBoolean(false);
}
else
{
//
// Now encode all server ident objects into the xdr stream. Each
// object is preceeded by a boolan, which indicates to the receiver
// whether an object follows. After the last object has been
// encoded the receiver will find a boolean false in the stream.
//
int count = servers.Count;
int index = 0;
while (count > 0)
{
xdr.xdrEncodeBoolean(true);
((org.acplt.oncrpc.XdrAble)servers[index]).xdrEncode(xdr);
index++;
count--;
}
xdr.xdrEncodeBoolean(false);
}
}
示例7: xdrDecodeCredVerf
/// <summary>
/// Decodes -- that is: deserializes -- an ONC/RPC authentication object
/// (credential & verifier) on the server side.
/// </summary>
/// <remarks>
/// Decodes -- that is: deserializes -- an ONC/RPC authentication object
/// (credential & verifier) on the server side.
/// </remarks>
/// <exception cref="org.acplt.oncrpc.OncRpcException">if an ONC/RPC error occurs.</exception>
/// <exception cref="System.IO.IOException">if an I/O error occurs.</exception>
public override sealed void xdrDecodeCredVerf(org.acplt.oncrpc.XdrDecodingStream
xdr)
{
//
// As the authentication type has already been pulled off the XDR
// stream, we only need to make sure that really no opaque data follows.
//
if (xdr.xdrDecodeInt() != 0)
{
throw (new org.acplt.oncrpc.OncRpcAuthenticationException(org.acplt.oncrpc.OncRpcAuthStatus
.ONCRPC_AUTH_BADCRED));
}
//
// We also need to decode the verifier. This must be of type
// AUTH_NONE too. For some obscure historical reasons, we have to
// deal with credentials and verifiers, although they belong together,
// according to Sun's specification.
//
if ((xdr.xdrDecodeInt() != org.acplt.oncrpc.OncRpcAuthType.ONCRPC_AUTH_NONE) || (
xdr.xdrDecodeInt() != 0))
{
throw (new org.acplt.oncrpc.OncRpcAuthenticationException(org.acplt.oncrpc.OncRpcAuthStatus
.ONCRPC_AUTH_BADVERF));
}
}
示例8: SendOne
// No array gathering support so one by one
private void SendOne(org.objectfabric.Queue buffs)
{
org.objectfabric.CLRBuff buff = (org.objectfabric.CLRBuff) buffs.poll();
if (buff == null)
WriteComplete();
else
{
try
{
ArraySegment<byte> buffer = new ArraySegment<byte>(buff.array(), buff.position(), buff.limit() - buff.position());
Task task = _socket.SendAsync(buffer, WebSocketMessageType.Binary, false, CancellationToken.None);
task.ContinueWith(_ =>
{
Recycle(buff);
SendOne(buffs);
});
}
catch (Exception ex)
{
Recycle(buff);
OnError(ex);
}
}
}
示例9: OncRpcServerAcceptedCallMessage
/// <summary>
/// Constructs an <code>OncRpcServerAcceptedCallMessage</code> object which
/// represents an accepted call, which was also successfully executed,
/// so the reply will contain information from the remote procedure call.
/// </summary>
/// <remarks>
/// Constructs an <code>OncRpcServerAcceptedCallMessage</code> object which
/// represents an accepted call, which was also successfully executed,
/// so the reply will contain information from the remote procedure call.
/// </remarks>
/// <param name="call">
/// The call message header, which is used to construct the
/// matching reply message header from.
/// </param>
public OncRpcServerAcceptedCallMessage(org.acplt.oncrpc.server.OncRpcServerCallMessage
call) : base(call, org.acplt.oncrpc.OncRpcReplyStatus.ONCRPC_MSG_ACCEPTED, org.acplt.oncrpc.OncRpcAcceptStatus
.ONCRPC_SUCCESS, org.acplt.oncrpc.OncRpcReplyMessage.UNUSED_PARAMETER, org.acplt.oncrpc.OncRpcReplyMessage
.UNUSED_PARAMETER, org.acplt.oncrpc.OncRpcReplyMessage.UNUSED_PARAMETER, org.acplt.oncrpc.OncRpcAuthStatus
.ONCRPC_AUTH_OK)
{
}
示例10: Broker
public Broker(org.apache.qpid.console.Session session, BrokerURL url)
{
log.Debug("Creating a new Broker for url " + url) ;
this.url = url;
consoleSession = session ;
this.TryToConnect() ;
}
示例11: JrpcgenUnion
/// <summary>
/// Constructs a <code>JrpcgenUnion</code> and sets the identifier, the
/// descrimant element as well as all attribute elements.
/// </summary>
/// <remarks>
/// Constructs a <code>JrpcgenUnion</code> and sets the identifier, the
/// descrimant element as well as all attribute elements.
/// </remarks>
/// <param name="identifier">Identifier to be declared.</param>
/// <param name="descriminant">
/// Descriminant element of class
/// <see cref="JrpcgenDeclaration">JrpcgenDeclaration</see>
/// .
/// </param>
/// <param name="elements">
/// Vector of atrribute elements of class
/// <see cref="JrpcgenDeclaration">JrpcgenDeclaration</see>
/// .
/// </param>
public JrpcgenUnion(string identifier, org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration
descriminant, System.Collections.ArrayList elements)
{
this.identifier = identifier;
this.descriminant = descriminant;
this.elements = elements;
}
示例12: assertCComplexObject
//protected java.io.InputStream loadFromClasspath(String adl)
//{
// return (java.lang.Object)this.getClass().getClassLoader().getResourceAsStream(adl);
//}
// assert CComplexObject object has expected values
public void assertCComplexObject(org.openehr.am.archetype.constraintmodel.CComplexObject obj, String rmTypeName,
String nodeID, org.openehr.rm.support.basic.Interval occurrences,
int attributes)
{
assertCObject(obj, rmTypeName, nodeID, occurrences);
Assert.AreEqual(attributes, obj.getAttributes().size(), "attributes.size");
}
示例13: createFromXml
public static global::android.content.res.ColorStateList createFromXml(android.content.res.Resources arg0, org.xmlpull.v1.XmlPullParser arg1)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::android.content.res.ColorStateList._m5.native == global::System.IntPtr.Zero)
global::android.content.res.ColorStateList._m5 = @__env.GetStaticMethodIDNoThrow(global::android.content.res.ColorStateList.staticClass, "createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;)Landroid/content/res/ColorStateList;");
return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallStaticObjectMethod(android.content.res.ColorStateList.staticClass, global::android.content.res.ColorStateList._m5, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1))) as android.content.res.ColorStateList;
}
示例14: CompletarDetallesWS
public void CompletarDetallesWS(org.dyndns.cedweb.consulta.ConsultarResult lc)
{
lineas = new System.Collections.Generic.List<FeaEntidades.InterFacturas.linea>();
foreach (org.dyndns.cedweb.consulta.ConsultarResultComprobanteDetalleLinea l in lc.comprobante[0].detalle.linea)
{
FeaEntidades.InterFacturas.linea linea = new FeaEntidades.InterFacturas.linea();
//Compatibilidad con archivos xml viejos. Verificar si la descripcion está en Hexa.
if (l.descripcion != "" && l.descripcion.Substring(0, 1) == "%")
{
linea.descripcion = RN.Funciones.HexToString(l.descripcion).Replace("<br>", System.Environment.NewLine);
}
else
{
linea.descripcion = l.descripcion.Replace("<br>", System.Environment.NewLine);
}
if (l.alicuota_ivaSpecified)
{
linea.alicuota_iva = l.alicuota_iva;
}
else
{
linea.alicuota_iva = new FeaEntidades.IVA.SinInformar().Codigo;
}
linea.alicuota_ivaSpecified = l.alicuota_ivaSpecified;
linea.importe_ivaSpecified = l.importe_ivaSpecified;
if (l.unidad != null)
{
linea.unidad = l.unidad;
}
else
{
linea.unidad = Convert.ToString(new FeaEntidades.CodigosUnidad.SinInformar().Codigo);
}
linea.cantidad = l.cantidad;
linea.cantidadSpecified = l.cantidadSpecified;
linea.codigo_producto_comprador = l.codigo_producto_comprador;
linea.codigo_producto_vendedor = l.codigo_producto_vendedor;
linea.indicacion_exento_gravado = l.indicacion_exento_gravado;
if (l.importes_moneda_origen == null)
{
linea.importe_total_articulo = l.importe_total_articulo;
linea.importe_iva = l.importe_iva;
linea.precio_unitario = l.precio_unitario;
linea.precio_unitarioSpecified = l.precio_unitarioSpecified;
}
else
{
linea.importe_total_articulo = l.importes_moneda_origen.importe_total_articulo;
linea.importe_iva = l.importes_moneda_origen.importe_iva;
linea.precio_unitario = l.importes_moneda_origen.precio_unitario;
linea.precio_unitarioSpecified = l.importes_moneda_origen.precio_unitarioSpecified;
}
lineas.Add(linea);
}
detalleGridView.DataSource = lineas;
detalleGridView.DataBind();
BindearDropDownLists();
ViewState["lineas"] = lineas;
}
示例15: DOMStructure
/**
* Creates a <code>DOMStructure</code> containing the specified node.
*
* @param node the node
* @throws NullPointerException if <code>node</code> is <code>null</code>
*/
public DOMStructure(org.w3c.dom.Node node)
{
if (node == null) {
throw new java.lang.NullPointerException("node cannot be null");
}
this.node = node;
}