congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BwEvent.getCategories
Code IndexAdd Tabnine to your IDE (free)

How to use
getCategories
method
in
org.bedework.calfacade.BwEvent

Best Java code snippets using org.bedework.calfacade.BwEvent.getCategories (Showing top 16 results out of 315)

origin: org.bedework.caleng/bw-calendar-engine-facade

public Set<BwCategory> getCategories() {
 return entity.getCategories();
}
origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
@NoProxy
public boolean hasCategory(final BwCategory val) {
 Set cats = getCategories();
 if (cats == null) {
  return false;
 }
 return cats.contains(val);
}
origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
@NoProxy
public boolean removeCategory(final BwCategory val) {
 Set cats = getCategories();
 if (cats == null) {
  return false;
 }
 return cats.remove(val);
}
origin: org.bedework.caleng/bw-calendar-engine-facade

 public Set<BwCategory> getMasterCollection() {
  return getTarget().getCategories();
 }
};
origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
@NoProxy
@NoDump
public int getNumCategories() {
 Set<BwCategory> c = getCategories();
 if (c == null) {
  return 0;
 }
 return c.size();
}
origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
@NoProxy
public Set<BwCategory> copyCategories() {
 if (getNumCategories() == 0) {
  return null;
 }
 TreeSet<BwCategory> ts = new TreeSet<BwCategory>();
 for (BwCategory cat: getCategories()) {
  ts.add(cat);
 }
 return ts;
}
origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
@NoProxy
public Set<BwCategory> cloneCategories() {
 if (getNumCategories() == 0) {
  return null;
 }
 TreeSet<BwCategory> ts = new TreeSet<BwCategory>();
 for (BwCategory cat: getCategories()) {
  ts.add((BwCategory)cat.clone());
 }
 return ts;
}
origin: org.bedework.caleng/bw-calendar-engine-facade

@Override
@NoProxy
public boolean addCategory(final BwCategory val) {
 if (val == null) {
  throw new RuntimeException("Attempting to store null");
 }
 Set<BwCategory> cats = getCategories();
 if (cats == null) {
  cats = new TreeSet<>();
  setCategories(cats);
 }
 if (!cats.contains(val)) {
  cats.add(val);
  return true;
 }
 
 return false;
}
origin: org.bedework.caleng/bw-calendar-engine-facade

public Set<BwCategory> getCategories() {
 Set<BwCategory> c = super.getCategories();
 if (c == null) {
  c = new OverrideSet<BwCategory>(BwEvent.ProxiedFieldIndex.pfiCategories,
                 ref, this) {
   public void setOverrideCollection(Set<BwCategory> val) {
    ref.setCategories(val);
    setChangeFlag(true);
   }
   public Set<BwCategory> getOverrideCollection() {
    return ref.getCategories();
   }
   public void copyIntoOverrideCollection() {
    Set<BwCategory> mstr = getMasterCollection();
    if (mstr != null) {
     Set<BwCategory> over = getOverrideCollection();
     over.addAll(mstr);
    }
   }
   public Set<BwCategory> getMasterCollection() {
    return getTarget().getCategories();
   }
  };
  super.setCategories(c);
 }
 return c;
}
origin: org.bedework.caleng/bw-calendar-engine-facade

public void setCategories(Set<BwCategory> val) {
 if (val instanceof OverrideSet) {
  val = ((OverrideSet<BwCategory>)val).getOverrideCollection();
 }
 int res = doSet(ProxiedFieldIndex.pfiCategories, false,
         getTarget().getCategories(),
         ref.getCategories(), val);
 if (res == setRefNull) {
  ref.setCategories(null);
 }
 if (res == setRefVal) {
  ref.setCategories(val);
 }
}
origin: org.bedework.caleng/bw-calendar-engine-ical

private static boolean checkCategory(final IcalCallback cb,
                   final ChangeTable chg,
                   final BwEvent ev,
                   final String lang,
                   final String val) throws CalFacadeException {
 final BwString sval = new BwString(lang, val);
 final BwCategory cat = cb.findCategory(sval);
 if (cat == null) {
  return false;
 }
 final Set<BwCategory> cats = ev.getCategories();
 if (cats != null) {
  for (final BwCategory c : cats) {
   if (c.getWord().equals(sval)) {
    // Already present
    return true;
   }
  }
 }
 ev.addCategory(cat);
 chg.addValue(PropertyIndex.PropertyInfoIndex.CATEGORIES,
        cat);
 return true;
}
origin: org.bedework.caleng/bw-calendar-engine-ical

for (BwCategory cat: val.getCategories()) {
 CategoriesPropType c = new CategoriesPropType();
origin: org.bedework.caleng/bw-calendar-engine-ical

for (BwCategory cat: val.getCategories()) {
 prop = new Categories();
 TextList cl = ((Categories)prop).getCategories();
origin: org.bedework.caleng/bw-calendar-engine-facade

for (BwCategory cat: ev.getCategories()) {
 if (stringMatch(cat.getWordVal(), val)) {
  return true;
origin: org.bedework.caleng/bw-calendar-engine-facade

originalVals = ev.getCategories();
if (checkMulti(ent, originalVals, update)) {
 ev.setCategories((Set)ent.getAddedValues());
origin: org.bedework.caleng/bw-calendar-engine-facade

ts.append("categories", getCategories());
org.bedework.calfacadeBwEventgetCategories

Popular methods of BwEvent

  • addAttendee
  • addAvailableUid
    Add as available uid
  • addCategory
  • addComment
  • addContact
  • addFreeBusyPeriod
    Add a free/busy component
  • addPollItem
    Add vpoll item
  • addRdate
  • addVvoter
    Add vpoll vvoter
  • clearPollItems
    Clear the vpoll items
  • clearVvoters
    Clear the vpoll voters
  • compare
  • clearVvoters,
  • compare,
  • findDescription,
  • findSummary,
  • getAlarms,
  • getAttachments,
  • getAttendees,
  • getBusyType,
  • getClassification

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JTextField (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now