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
Enum Constant and Description |
---|
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)
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final OwObjectLinkRelation NONE
public static final OwObjectLinkRelation INBOUND
public static final OwObjectLinkRelation OUTBOUND
public static final OwObjectLinkRelation BOTH
public static OwObjectLinkRelation[] values()
for (OwObjectLinkRelation c : OwObjectLinkRelation.values()) System.out.println(c);
public static OwObjectLinkRelation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic OwString getDisplayName()
public boolean match(OwObjectLink link, OwObject object)
public boolean sameDirection(OwObjectLink link, OwObject object)
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.