com.wewebu.ow.server.ecm
Enum OwObjectLinkRelation

java.lang.Object
  extended by java.lang.Enum<OwObjectLinkRelation>
      extended by com.wewebu.ow.server.ecm.OwObjectLinkRelation
All Implemented Interfaces:
Serializable, Comparable<OwObjectLinkRelation>

public enum OwObjectLinkRelation
extends Enum<OwObjectLinkRelation>

Enumeration of direction/relation types for an Link.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
4.1.1.0

Enum Constant Summary
BOTH
          object is both [rare cases]
INBOUND
          object is target of link (relation)
NONE
          Not part of link (relation)
OUTBOUND
          object is source of link (relation)
 
Method Summary
 OwString getDisplayName()
           
 boolean match(OwObjectLink link, OwObject object)
           
 boolean sameDirection(OwObjectLink link, OwObject object)
           
static OwObjectLinkRelation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OwObjectLinkRelation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final OwObjectLinkRelation NONE
Not part of link (relation)


INBOUND

public static final OwObjectLinkRelation INBOUND
object is target of link (relation)


OUTBOUND

public static final OwObjectLinkRelation OUTBOUND
object is source of link (relation)


BOTH

public static final OwObjectLinkRelation BOTH
object is both [rare cases]

Method Detail

values

public static OwObjectLinkRelation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OwObjectLinkRelation c : OwObjectLinkRelation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OwObjectLinkRelation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getDisplayName

public OwString getDisplayName()

match

public boolean match(OwObjectLink link,
                     OwObject object)

sameDirection

public boolean sameDirection(OwObjectLink link,
                             OwObject object)


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.