Table of Contents

Class Duration

Namespace
Javax.Xml.Datatype
Assembly
MASES.JNet.dll
public class Duration : JVMBridgeBase<Duration>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Duration>
Duration
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Duration>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Duration>.IsAssignableFrom<T>()
JVMBridgeBase<Duration>.Execute<T>(params T[])
JVMBridgeBase<Duration>.DynBridgeClazz
JVMBridgeBase<Duration>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Duration()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Duration class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Duration()

Duration(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Duration class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Duration(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Days

public int Days { get; }

Property Value

int

Hours

public int Hours { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Minutes

public int Minutes { get; }

Property Value

int

Months

public int Months { get; }

Property Value

int

Seconds

public int Seconds { get; }

Property Value

int

Sign

public int Sign { get; }

Property Value

int

XMLSchemaType

public QName XMLSchemaType { get; }

Property Value

QName

Years

public int Years { get; }

Property Value

int

Methods

Add(Duration)

public Duration Add(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Duration

Duration

AddTo(Calendar)

public void AddTo(Calendar arg0)

Parameters

arg0 Calendar

Calendar

AddTo(Date)

public void AddTo(Date arg0)

Parameters

arg0 Date

Date

Compare(Duration)

public int Compare(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

int

int

GetField(Field)

public Number GetField(DatatypeConstants.Field arg0)

Parameters

arg0 DatatypeConstants.Field

DatatypeConstants.Field

Returns

Number

Number

GetTimeInMillis(Calendar)

public long GetTimeInMillis(Calendar arg0)

Parameters

arg0 Calendar

Calendar

Returns

long

long

GetTimeInMillis(Date)

public long GetTimeInMillis(Date arg0)

Parameters

arg0 Date

Date

Returns

long

long

IsLongerThan(Duration)

public bool IsLongerThan(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

bool

bool

IsSet(Field)

public bool IsSet(DatatypeConstants.Field arg0)

Parameters

arg0 DatatypeConstants.Field

DatatypeConstants.Field

Returns

bool

bool

IsShorterThan(Duration)

public bool IsShorterThan(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

bool

bool

Multiply(BigDecimal)

public Duration Multiply(BigDecimal arg0)

Parameters

arg0 BigDecimal

BigDecimal

Returns

Duration

Duration

Multiply(int)

public Duration Multiply(int arg0)

Parameters

arg0 int

int

Returns

Duration

Duration

Negate()

public Duration Negate()

Returns

Duration

Duration

NormalizeWith(Calendar)

public Duration NormalizeWith(Calendar arg0)

Parameters

arg0 Calendar

Calendar

Returns

Duration

Duration

Subtract(Duration)

public Duration Subtract(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Duration

Duration